Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/deepin-system-monitor.spec'], chrootPath='/var/lib/mock/f33-build-217744-48451/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/deepin-system-monitor.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1580169600 Wrote: /builddir/build/SRPMS/deepin-system-monitor-5.0.0-2.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/deepin-system-monitor.spec'], chrootPath='/var/lib/mock/f33-build-217744-48451/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/deepin-system-monitor.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1580169600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.N3nBQB + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf deepin-system-monitor-5.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/deepin-system-monitor-5.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd deepin-system-monitor-5.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's|lrelease|lrelease-qt5|' translations/translate_generation.sh + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NGdL3C + umask 022 + cd /builddir/build/BUILD + cd deepin-system-monitor-5.0.0 + /usr/lib64/qt5/bin/qmake 'QMAKE_CFLAGS_DEBUG=-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 ' 'QMAKE_CFLAGS_RELEASE=-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 ' 'QMAKE_CXXFLAGS_DEBUG=-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 ' 'QMAKE_CXXFLAGS_RELEASE=-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 ' 'QMAKE_LFLAGS_DEBUG=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'QMAKE_LFLAGS_RELEASE=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' QMAKE_STRIP= PREFIX=/usr Info: creating stash file /builddir/build/BUILD/deepin-system-monitor-5.0.0/.qmake.stash make -C src -f MakeLib.mk all make[1]: Entering directory '/builddir/build/BUILD/deepin-system-monitor-5.0.0/nethogs/src' g++ -Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC -fvisibility=hidden -o obj/lib/release/libnethogs.o -c libnethogs.cpp -DVERSION=\"\" g++ -Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC -fvisibility=hidden -o obj/lib/release/packet.o -c packet.cpp g++ -Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC -fvisibility=hidden -o obj/lib/release/connection.o -c connection.cpp g++ -Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC -fvisibility=hidden -o obj/lib/release/process.o -c process.cpp cc -Wall -Wextra -O3 -fPIC -fvisibility=hidden -o obj/lib/release/decpcap.o -c decpcap.c g++ -Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC -fvisibility=hidden -o obj/lib/release/inode2prog.o -c inode2prog.cpp g++ -Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC -fvisibility=hidden -o obj/lib/release/conninode.o -c conninode.cpp g++ -Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC -fvisibility=hidden -o obj/lib/release/devices.o -c devices.cpp g++ -Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC -fvisibility=hidden -shared -Wl,-soname,libnethogs.so. obj/lib/release/libnethogs.o obj/lib/release/packet.o obj/lib/release/connection.o obj/lib/release/process.o obj/lib/release/decpcap.o obj/lib/release/inode2prog.o obj/lib/release/conninode.o obj/lib/release/devices.o -o libnethogs.so. -lpcap ar rcs libnethogs.a obj/lib/release/libnethogs.o obj/lib/release/packet.o obj/lib/release/connection.o obj/lib/release/process.o obj/lib/release/decpcap.o obj/lib/release/inode2prog.o obj/lib/release/conninode.o obj/lib/release/devices.o make[1]: Leaving directory '/builddir/build/BUILD/deepin-system-monitor-5.0.0/nethogs/src' Project MESSAGE: OS: fedora, Version: 33 Project WARNING: No value of the --deepin-type in the process /usr/libexec/dtk2/deepin-os-release process translations/deepin-system-monitor.ts Updating 'translations/deepin-system-monitor.qm'... Generated 0 translation(s) (0 finished and 0 unfinished) Ignored 107 untranslated source text(s) process translations/deepin-system-monitor_am_ET.ts Updating 'translations/deepin-system-monitor_am_ET.qm'... Generated 90 translation(s) (90 finished and 0 unfinished) Ignored 17 untranslated source text(s) process translations/deepin-system-monitor_ar.ts Updating 'translations/deepin-system-monitor_ar.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_ast.ts Updating 'translations/deepin-system-monitor_ast.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_bg.ts Updating 'translations/deepin-system-monitor_bg.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_ca.ts Updating 'translations/deepin-system-monitor_ca.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_cs.ts Updating 'translations/deepin-system-monitor_cs.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_da.ts Updating 'translations/deepin-system-monitor_da.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_de.ts Updating 'translations/deepin-system-monitor_de.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_es.ts Updating 'translations/deepin-system-monitor_es.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_es_419.ts Updating 'translations/deepin-system-monitor_es_419.qm'... Generated 90 translation(s) (90 finished and 0 unfinished) Ignored 17 untranslated source text(s) process translations/deepin-system-monitor_fi.ts Updating 'translations/deepin-system-monitor_fi.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_fr.ts Updating 'translations/deepin-system-monitor_fr.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_gl_ES.ts Updating 'translations/deepin-system-monitor_gl_ES.qm'... Generated 54 translation(s) (54 finished and 0 unfinished) Ignored 53 untranslated source text(s) process translations/deepin-system-monitor_he.ts Updating 'translations/deepin-system-monitor_he.qm'... Generated 88 translation(s) (88 finished and 0 unfinished) Ignored 19 untranslated source text(s) process translations/deepin-system-monitor_hr.ts Updating 'translations/deepin-system-monitor_hr.qm'... Generated 45 translation(s) (45 finished and 0 unfinished) Ignored 62 untranslated source text(s) process translations/deepin-system-monitor_hu.ts Updating 'translations/deepin-system-monitor_hu.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_id.ts Updating 'translations/deepin-system-monitor_id.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_it.ts Updating 'translations/deepin-system-monitor_it.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_ja.ts Updating 'translations/deepin-system-monitor_ja.qm'... Generated 52 translation(s) (52 finished and 0 unfinished) Ignored 55 untranslated source text(s) process translations/deepin-system-monitor_lt.ts Updating 'translations/deepin-system-monitor_lt.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_mn.ts Updating 'translations/deepin-system-monitor_mn.qm'... Generated 59 translation(s) (59 finished and 0 unfinished) Ignored 48 untranslated source text(s) process translations/deepin-system-monitor_ms.ts Updating 'translations/deepin-system-monitor_ms.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_nb.ts Updating 'translations/deepin-system-monitor_nb.qm'... Generated 31 translation(s) (31 finished and 0 unfinished) Ignored 76 untranslated source text(s) process translations/deepin-system-monitor_ne.ts Updating 'translations/deepin-system-monitor_ne.qm'... Generated 7 translation(s) (7 finished and 0 unfinished) Ignored 100 untranslated source text(s) process translations/deepin-system-monitor_nl.ts Updating 'translations/deepin-system-monitor_nl.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_pl.ts Updating 'translations/deepin-system-monitor_pl.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_pt.ts Updating 'translations/deepin-system-monitor_pt.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_pt_BR.ts Updating 'translations/deepin-system-monitor_pt_BR.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_ro.ts Updating 'translations/deepin-system-monitor_ro.qm'... Generated 90 translation(s) (90 finished and 0 unfinished) Ignored 17 untranslated source text(s) process translations/deepin-system-monitor_ru.ts Updating 'translations/deepin-system-monitor_ru.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_sk.ts Updating 'translations/deepin-system-monitor_sk.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_sl.ts Updating 'translations/deepin-system-monitor_sl.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) process translations/deepin-system-monitor_sr.ts Updating 'translations/deepin-system-monitor_sr.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_tr.ts Updating 'translations/deepin-system-monitor_tr.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_uk.ts Updating 'translations/deepin-system-monitor_uk.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_zh_CN.ts Updating 'translations/deepin-system-monitor_zh_CN.qm'... Generated 107 translation(s) (107 finished and 0 unfinished) process translations/deepin-system-monitor_zh_TW.ts Updating 'translations/deepin-system-monitor_zh_TW.qm'... Generated 105 translation(s) (105 finished and 0 unfinished) Ignored 2 untranslated source text(s) + /usr/bin/make -O -j4 V=1 VERBOSE=1 g++ -c -pipe -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=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQ_HOST_NAME=\"riscv64\" -DQ_HOST_RISCV64 -DQ_OS_FEDORA -DQ_OS_VERSION=\"33\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Inethogs/src -isystem /usr/include/libdtk-2.1.1/DWidget -isystem /usr/include/libdtk-2.1.1/DCore -isystem /usr/include/libdtk-2.1.1/DWm -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtCore -Iout -I/usr/lib64/qt5/mkspecs/linux-g++ -o out/cpu_monitor.o src/cpu_monitor.cpp In file included from src/utils.h:26, from src/cpu_monitor.cpp:28: src/hashqstring.h:31:23: error: redefinition of 'struct std::hash' 31 | template<> struct hash | ^~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qlist.h:47, from /usr/include/qt5/QtCore/QList:1, from src/cpu_monitor.h:27, from src/cpu_monitor.cpp:25: /usr/include/qt5/QtCore/qhashfunctions.h:204:1: note: previous definition of 'struct std::hash' 204 | QT_SPECIALIZE_STD_HASH_TO_CALL_QHASH_BY_CREF(QString) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/cpu_monitor.cpp: In member function 'virtual void CpuMonitor::paintEvent(QPaintEvent*)': src/cpu_monitor.cpp:152:40: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] 152 | int titleWidth = fm.width(tr("CPU")); | ^ In file included from /usr/include/qt5/QtWidgets/qwidget.h:50, from /usr/include/qt5/QtWidgets/QWidget:1, from src/cpu_monitor.h:31, from src/cpu_monitor.cpp:25: /usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here 106 | int width(const QString &, int len = -1) const; | ^~~~~ make: *** [Makefile:771: out/cpu_monitor.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -c -pipe -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=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQ_HOST_NAME=\"riscv64\" -DQ_HOST_RISCV64 -DQ_OS_FEDORA -DQ_OS_VERSION=\"33\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Inethogs/src -isystem /usr/include/libdtk-2.1.1/DWidget -isystem /usr/include/libdtk-2.1.1/DCore -isystem /usr/include/libdtk-2.1.1/DWm -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtCore -Iout -I/usr/lib64/qt5/mkspecs/linux-g++ -o out/toolbar.o src/toolbar.cpp In file included from src/utils.h:26, from src/toolbar.cpp:26: src/hashqstring.h:31:23: error: redefinition of 'struct std::hash' 31 | template<> struct hash | ^~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qlist.h:47, from /usr/include/qt5/QtCore/qobject.h:49, from /usr/include/qt5/QtWidgets/qlayout.h:44, from /usr/include/qt5/QtWidgets/qboxlayout.h:44, from /usr/include/qt5/QtWidgets/QHBoxLayout:1, from src/toolbar.h:27, from src/toolbar.cpp:25: /usr/include/qt5/QtCore/qhashfunctions.h:204:1: note: previous definition of 'struct std::hash' 204 | QT_SPECIALIZE_STD_HASH_TO_CALL_QHASH_BY_CREF(QString) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:763: out/toolbar.o] Error 1 g++ -c -pipe -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=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQ_HOST_NAME=\"riscv64\" -DQ_HOST_RISCV64 -DQ_OS_FEDORA -DQ_OS_VERSION=\"33\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Inethogs/src -isystem /usr/include/libdtk-2.1.1/DWidget -isystem /usr/include/libdtk-2.1.1/DCore -isystem /usr/include/libdtk-2.1.1/DWm -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtCore -Iout -I/usr/lib64/qt5/mkspecs/linux-g++ -o out/main.o src/main.cpp In file included from src/utils.h:26, from src/status_monitor.h:28, from src/main_window.h:32, from src/main.cpp:25: src/hashqstring.h:31:23: error: redefinition of 'struct std::hash' 31 | template<> struct hash | ^~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qlist.h:47, from /usr/include/qt5/QtGui/qicon.h:45, from /usr/include/qt5/QtGui/QIcon:1, from /usr/include/libdtk-2.1.1/DWidget/ddialog.h:21, from src/main_window.h:27, from src/main.cpp:25: /usr/include/qt5/QtCore/qhashfunctions.h:204:1: note: previous definition of 'struct std::hash' 204 | QT_SPECIALIZE_STD_HASH_TO_CALL_QHASH_BY_CREF(QString) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:751: out/main.o] Error 1 g++ -c -pipe -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=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQ_HOST_NAME=\"riscv64\" -DQ_HOST_RISCV64 -DQ_OS_FEDORA -DQ_OS_VERSION=\"33\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Inethogs/src -isystem /usr/include/libdtk-2.1.1/DWidget -isystem /usr/include/libdtk-2.1.1/DCore -isystem /usr/include/libdtk-2.1.1/DWm -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtCore -Iout -I/usr/lib64/qt5/mkspecs/linux-g++ -o out/utils.o src/utils.cpp In file included from /usr/include/qt5/QtCore/qlist.h:47, from /usr/include/qt5/QtCore/qobject.h:49, from /usr/include/qt5/QtCore/QObject:1, from /usr/include/libdtk-2.1.1/DWm/dwindowmanager.h:25, from src/find_window_title.h:27, from src/utils.h:27, from src/utils.cpp:25: /usr/include/qt5/QtCore/qhashfunctions.h:204:1: error: redefinition of 'struct std::hash' 204 | QT_SPECIALIZE_STD_HASH_TO_CALL_QHASH_BY_CREF(QString) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/utils.cpp:24: src/hashqstring.h:31:23: note: previous definition of 'struct std::hash' 31 | template<> struct hash | ^~~~~~~~~~~~~ src/utils.cpp: In function 'QSize Utils::getRenderSize(int, QString)': src/utils.cpp:265:42: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] 265 | int lineWidth = fm.width(line); | ^ In file included from /usr/include/qt5/QtGui/qpainter.h:59, from /usr/include/qt5/QtGui/QPainter:1, from src/utils.h:32, from src/utils.cpp:25: /usr/include/qt5/QtGui/qfontmetrics.h:106:9: note: declared here 106 | int width(const QString &, int len = -1) const; | ^~~~~ src/utils.cpp: In function 'QString Utils::getProcessEnvironmentVariable(pid_t, QString)': src/utils.cpp:382:40: warning: catching polymorphic type 'class std::ios_base::failure' by value [-Wcatch-value=] 382 | } catch(std::ifstream::failure e) { | ^ src/utils.cpp: In function 'QString Utils::getProcessCmdline(pid_t)': src/utils.cpp:410:40: warning: catching polymorphic type 'class std::ios_base::failure' by value [-Wcatch-value=] 410 | } catch(std::ifstream::failure e) { | ^ src/utils.cpp: In function 'void Utils::getNetworkBandWidth(long long unsigned int&, long long unsigned int&)': src/utils.cpp:890:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 890 | fgets(buf, bufsize, devfd); | ~~~~~^~~~~~~~~~~~~~~~~~~~~ src/utils.cpp:891:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 891 | fgets(buf, bufsize, devfd); | ~~~~~^~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:756: out/utils.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.NGdL3C (%build) Bad exit status from /var/tmp/rpm-tmp.NGdL3C (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status 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/deepin-system-monitor.spec