int renameat2(int, const char*, int, const char*, unsigned int)' was declared 'extern' and later 'static' [-fpermissive] BUILDSTDERR: static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags) BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6391, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/include/QtCore/../../src/corelib/tools/qbytearray.h:52, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/include/QtCore/qbytearray.h:1, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/include/QtCore/../../src/corelib/tools/qstring.h:49, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/include/QtCore/qstring.h:1, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/include/QtCore/../../src/corelib/io/qiodevice.h:50, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/include/QtCore/qiodevice.h:1, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/include/QtCore/../../src/corelib/io/qfiledevice.h:43, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/include/QtCore/qfiledevice.h:1, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/src/corelib/io/qfile.h:44, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_p.h:54, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:43: BUILDSTDERR: /usr/include/stdio.h:164:12: note: previous declaration of 'int renameat2(int, const char*, int, const char*, unsigned int)' BUILDSTDERR: extern int renameat2 (int __oldfd, const char *__old, int __newfd, BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:115:12: error: 'int statx(int, const char*, int, unsigned int, statx*)' was declared 'extern' and later 'static' [-fpermissive] BUILDSTDERR: static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf) BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/sys/stat.h:446, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h:75, BUILDSTDERR: from /builddir/build/BUILD/qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:42: BUILDSTDERR: /usr/include/bits/statx.h:87:5: note: previous declaration of 'int statx(int, const char*, int, unsigned int, statx*)' BUILDSTDERR: int statx (int __dirfd, const char *__restrict __path, int __flags, BUILDSTDERR: ^~~~~ BUILDSTDERR: gmake: *** [Makefile:423: qfilesystemengine_unix.o] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.jni5lM (%build) BUILDSTDERR: Macro expanded in comment on line 15: (c=%{commit}; echo ${c:0:7}) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.jni5lM (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/mingw-qt5-qtbase.spec