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/thinkfan.spec'], chrootPath='/var/lib/mock/f33-build-528619-64711/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/thinkfan.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=1595980800 Wrote: /builddir/build/SRPMS/thinkfan-1.2.1-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/thinkfan.spec'], chrootPath='/var/lib/mock/f33-build-528619-64711/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/thinkfan.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=1595980800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fJUwHT + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf thinkfan-1.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/thinkfan-1.2.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd thinkfan-1.2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/thinkfan_systemd.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pc8J4U + umask 022 + cd /builddir/build/BUILD + cd thinkfan-1.2.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -S . -B riscv64-redhat-linux-gnu -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DUSE_ATASMART:BOOL=ON . -- The C compiler identification is GNU 10.2.1 -- The CXX compiler identification is GNU 10.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Checking for module 'systemd' -- Found systemd, version 246 -- Checking for module 'openrc' -- Package 'openrc', required by 'virtual:world', not found -- Checking for module 'yaml-cpp' -- Found yaml-cpp, version 0.6.3 -- Checking for module 'libatasmart' -- Found libatasmart, version 0.19 -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu + /usr/bin/cmake --build riscv64-redhat-linux-gnu -j4 --verbose /usr/bin/cmake -S/builddir/build/BUILD/thinkfan-1.2.1 -B/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu/CMakeFiles /builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu//CMakeFiles/progress.marks /usr/bin/gmake -f CMakeFiles/Makefile2 all gmake[1]: Entering directory '/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu' /usr/bin/gmake -f CMakeFiles/thinkfan.dir/build.make CMakeFiles/thinkfan.dir/depend gmake[2]: Entering directory '/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu' cd /builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/thinkfan-1.2.1 /builddir/build/BUILD/thinkfan-1.2.1 /builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu /builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu /builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu/CMakeFiles/thinkfan.dir/DependInfo.cmake --color= Dependee "/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu/CMakeFiles/thinkfan.dir/DependInfo.cmake" is newer than depender "/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu/CMakeFiles/thinkfan.dir/depend.internal". Dependee "/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu/CMakeFiles/thinkfan.dir/depend.internal". Scanning dependencies of target thinkfan gmake[2]: Leaving directory '/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu' /usr/bin/gmake -f CMakeFiles/thinkfan.dir/build.make CMakeFiles/thinkfan.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu' [ 25%] Building CXX object CMakeFiles/thinkfan.dir/src/thinkfan.cpp.o [ 25%] Building CXX object CMakeFiles/thinkfan.dir/src/message.cpp.o [ 50%] Building CXX object CMakeFiles/thinkfan.dir/src/drivers.cpp.o [ 50%] Building CXX object CMakeFiles/thinkfan.dir/src/config.cpp.o /usr/bin/g++ -DHAVE_SYSTEMD -DPID_FILE=\"/run/thinkfan.pid\" -DUSE_ATASMART -DUSE_NVML -DUSE_YAML -DVERSION=\"1.2\" -I/builddir/build/BUILD/thinkfan-1.2.1/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -g -DNDEBUG -Wall -std=c++1y -o CMakeFiles/thinkfan.dir/src/thinkfan.cpp.o -c /builddir/build/BUILD/thinkfan-1.2.1/src/thinkfan.cpp /usr/bin/g++ -DHAVE_SYSTEMD -DPID_FILE=\"/run/thinkfan.pid\" -DUSE_ATASMART -DUSE_NVML -DUSE_YAML -DVERSION=\"1.2\" -I/builddir/build/BUILD/thinkfan-1.2.1/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -g -DNDEBUG -Wall -std=c++1y -o CMakeFiles/thinkfan.dir/src/config.cpp.o -c /builddir/build/BUILD/thinkfan-1.2.1/src/config.cpp /usr/bin/g++ -DHAVE_SYSTEMD -DPID_FILE=\"/run/thinkfan.pid\" -DUSE_ATASMART -DUSE_NVML -DUSE_YAML -DVERSION=\"1.2\" -I/builddir/build/BUILD/thinkfan-1.2.1/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -g -DNDEBUG -Wall -std=c++1y -o CMakeFiles/thinkfan.dir/src/drivers.cpp.o -c /builddir/build/BUILD/thinkfan-1.2.1/src/drivers.cpp /usr/bin/g++ -DHAVE_SYSTEMD -DPID_FILE=\"/run/thinkfan.pid\" -DUSE_ATASMART -DUSE_NVML -DUSE_YAML -DVERSION=\"1.2\" -I/builddir/build/BUILD/thinkfan-1.2.1/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -g -DNDEBUG -Wall -std=c++1y -o CMakeFiles/thinkfan.dir/src/message.cpp.o -c /builddir/build/BUILD/thinkfan-1.2.1/src/message.cpp [ 62%] Building CXX object CMakeFiles/thinkfan.dir/src/parser.cpp.o /usr/bin/g++ -DHAVE_SYSTEMD -DPID_FILE=\"/run/thinkfan.pid\" -DUSE_ATASMART -DUSE_NVML -DUSE_YAML -DVERSION=\"1.2\" -I/builddir/build/BUILD/thinkfan-1.2.1/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -g -DNDEBUG -Wall -std=c++1y -o CMakeFiles/thinkfan.dir/src/parser.cpp.o -c /builddir/build/BUILD/thinkfan-1.2.1/src/parser.cpp [ 75%] Building CXX object CMakeFiles/thinkfan.dir/src/error.cpp.o /usr/bin/g++ -DHAVE_SYSTEMD -DPID_FILE=\"/run/thinkfan.pid\" -DUSE_ATASMART -DUSE_NVML -DUSE_YAML -DVERSION=\"1.2\" -I/builddir/build/BUILD/thinkfan-1.2.1/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -g -DNDEBUG -Wall -std=c++1y -o CMakeFiles/thinkfan.dir/src/error.cpp.o -c /builddir/build/BUILD/thinkfan-1.2.1/src/error.cpp [ 87%] Building CXX object CMakeFiles/thinkfan.dir/src/yamlconfig.cpp.o /usr/bin/g++ -DHAVE_SYSTEMD -DPID_FILE=\"/run/thinkfan.pid\" -DUSE_ATASMART -DUSE_NVML -DUSE_YAML -DVERSION=\"1.2\" -I/builddir/build/BUILD/thinkfan-1.2.1/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -g -DNDEBUG -Wall -std=c++1y -o CMakeFiles/thinkfan.dir/src/yamlconfig.cpp.o -c /builddir/build/BUILD/thinkfan-1.2.1/src/yamlconfig.cpp [100%] Linking CXX executable thinkfan /usr/bin/cmake -E cmake_link_script CMakeFiles/thinkfan.dir/link.txt --verbose=1 /usr/bin/g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -rdynamic CMakeFiles/thinkfan.dir/src/thinkfan.cpp.o CMakeFiles/thinkfan.dir/src/config.cpp.o CMakeFiles/thinkfan.dir/src/drivers.cpp.o CMakeFiles/thinkfan.dir/src/message.cpp.o CMakeFiles/thinkfan.dir/src/parser.cpp.o CMakeFiles/thinkfan.dir/src/error.cpp.o CMakeFiles/thinkfan.dir/src/yamlconfig.cpp.o -o thinkfan -lpthread -latasmart -ldl -lyaml-cpp /usr/bin/ld: /tmp/thinkfan.kFvy48.ltrans0.ltrans.o: in function `thinkfan::SimpleLevel::SimpleLevel(std::__cxx11::basic_string, std::allocator >, int, int)': /builddir/build/BUILD/thinkfan-1.2.1/src/config.cpp:284: undefined reference to `__atomic_fetch_sub_1' collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/thinkfan.dir/build.make:196: thinkfan] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu' gmake[1]: Leaving directory '/builddir/build/BUILD/thinkfan-1.2.1/riscv64-redhat-linux-gnu' gmake[1]: *** [CMakeFiles/Makefile2:98: CMakeFiles/thinkfan.dir/all] Error 2 gmake: *** [Makefile:152: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.pc8J4U (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.pc8J4U (%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/thinkfan.spec