d-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c++11 -DNDEBUG -fPIC -std=gnu++11 -o CMakeFiles/subsurface_corelib.dir/subsurface_corelib_autogen/mocs_compilation.cpp.o -c /builddir/build/BUILD/Subsurface-4.6.2/riscv64-redhat-linux-gnu/core/subsurface_corelib_autogen/mocs_compilation.cpp BUILDSTDERR: In file included from /usr/include/qt5/QtCore/qnamespace.h:43, BUILDSTDERR: from /usr/include/qt5/QtCore/qobjectdefs.h:48, BUILDSTDERR: from /usr/include/qt5/QtCore/qobject.h:46, BUILDSTDERR: from /usr/include/qt5/QtCore/QObject:1, BUILDSTDERR: from /builddir/build/BUILD/Subsurface-4.6.2/core/subsurface-qt/SettingsObjectWrapper.h:4, BUILDSTDERR: from /builddir/build/BUILD/Subsurface-4.6.2/core/subsurface-qt/SettingsObjectWrapper.cpp:1: BUILDSTDERR: /builddir/build/BUILD/Subsurface-4.6.2/core/subsurface-qt/SettingsObjectWrapper.cpp: In member function 'void LanguageSettingsObjectWrapper::setUseSystemLanguage(bool)': BUILDSTDERR: /builddir/build/BUILD/Subsurface-4.6.2/core/subsurface-qt/SettingsObjectWrapper.cpp:1944:49: error: no matching function for call to 'asString(bool&)' BUILDSTDERR: prefs.locale.use_system_language = copy_string(qPrintable(value)); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/qt5/QtCore/qobject.h:47, BUILDSTDERR: from /usr/include/qt5/QtCore/QObject:1, BUILDSTDERR: from /builddir/build/BUILD/Subsurface-4.6.2/core/subsurface-qt/SettingsObjectWrapper.h:4, BUILDSTDERR: from /builddir/build/BUILD/Subsurface-4.6.2/core/subsurface-qt/SettingsObjectWrapper.cpp:1: BUILDSTDERR: /usr/include/qt5/QtCore/qstring.h:1862:23: note: candidate: 'const QString& QtPrivate::asString(const QString&)' BUILDSTDERR: inline const QString &asString(const QString &s) { return s; } BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /usr/include/qt5/QtCore/qstring.h:1862:23: note: no known conversion for argument 1 from 'bool' to 'const QString&' BUILDSTDERR: /usr/include/qt5/QtCore/qstring.h:1863:18: note: candidate: 'QString&& QtPrivate::asString(QString&&)' BUILDSTDERR: inline QString &&asString(QString &&s) { return std::move(s); } BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /usr/include/qt5/QtCore/qstring.h:1863:18: note: no known conversion for argument 1 from 'bool' to 'QString&&' BUILDSTDERR: make[2]: *** [core/CMakeFiles/subsurface_corelib.dir/build.make:807: core/CMakeFiles/subsurface_corelib.dir/subsurface-qt/SettingsObjectWrapper.cpp.o] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/Subsurface-4.6.2/riscv64-redhat-linux-gnu' make[1]: Leaving directory '/builddir/build/BUILD/Subsurface-4.6.2/riscv64-redhat-linux-gnu' BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:521: core/CMakeFiles/subsurface_corelib.dir/all] Error 2 BUILDSTDERR: make: *** [Makefile:133: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.vDDjtV (%build) BUILDSTDERR: Macro expanded in comment on line 2: %global snaphash 5d07303 BUILDSTDERR: Macro expanded in comment on line 7: %{?dist} BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.vDDjtV (%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/subsurface.spec