cs=/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.tgkRNT.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.sa8u9q (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.sa8u9q (%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