tem /usr/include/KF5/KIOFileWidgets -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KService -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KBookmarks -isystem /usr/include/KF5/KItemViews -isystem /usr/include/KF5/KXmlGui -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/Solid -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KTextWidgets -isystem /usr/include/KF5/SonnetUi -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-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++0x -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -fexceptions -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=gnu++11 -o CMakeFiles/kxstitch.dir/src/LibraryTreeWidgetItem.cpp.o -c /builddir/build/BUILD/kxstitch-2.0.0/src/LibraryTreeWidgetItem.cpp BUILDSTDERR: /builddir/build/BUILD/kxstitch-2.0.0/src/LibraryPatternPropertiesDlg.cpp: In constructor 'LibraryPatternPropertiesDlg::LibraryPatternPropertiesDlg(QWidget*, qint32, Qt::KeyboardModifiers, qint16, const QString&, int, int, const QIcon&)': BUILDSTDERR: /builddir/build/BUILD/kxstitch-2.0.0/src/LibraryPatternPropertiesDlg.cpp:31:24: error: invalid use of incomplete type 'const class QIcon' BUILDSTDERR: ui.Icon->setPixmap(icon.pixmap(ui.Icon->size())); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/qt5/QtCore/qobject.h:54, BUILDSTDERR: from /usr/include/qt5/QtWidgets/qwidget.h:45, BUILDSTDERR: from /usr/include/qt5/QtWidgets/qdialog.h:44, BUILDSTDERR: from /usr/include/qt5/QtWidgets/QDialog:1, BUILDSTDERR: from /builddir/build/BUILD/kxstitch-2.0.0/src/LibraryPatternPropertiesDlg.h:16, BUILDSTDERR: from /builddir/build/BUILD/kxstitch-2.0.0/src/LibraryPatternPropertiesDlg.cpp:12: BUILDSTDERR: /usr/include/qt5/QtCore/qmetatype.h:1943:1: note: forward declaration of 'class QIcon' BUILDSTDERR: QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER) BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: make[2]: *** [CMakeFiles/kxstitch.dir/build.make:790: CMakeFiles/kxstitch.dir/src/LibraryPatternPropertiesDlg.cpp.o] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/kxstitch-2.0.0/riscv64-redhat-linux-gnu' make[1]: Leaving directory '/builddir/build/BUILD/kxstitch-2.0.0/riscv64-redhat-linux-gnu' BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:574: CMakeFiles/kxstitch.dir/all] Error 2 BUILDSTDERR: make: *** [Makefile:133: all] Error 2 make: Leaving directory '/builddir/build/BUILD/kxstitch-2.0.0/riscv64-redhat-linux-gnu' BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.QuJniN (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.QuJniN (%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/kxstitch.spec