o.d -o CMakeFiles/thinkfan.dir/src/parser.cpp.o -c /builddir/build/BUILD/thinkfan-1.3.1/src/parser.cpp [ 77%] 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.3.1\" -I/builddir/build/BUILD/thinkfan-1.3.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 -MD -MT CMakeFiles/thinkfan.dir/src/error.cpp.o -MF CMakeFiles/thinkfan.dir/src/error.cpp.o.d -o CMakeFiles/thinkfan.dir/src/error.cpp.o -c /builddir/build/BUILD/thinkfan-1.3.1/src/error.cpp [ 88%] 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.3.1\" -I/builddir/build/BUILD/thinkfan-1.3.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 -MD -MT CMakeFiles/thinkfan.dir/src/yamlconfig.cpp.o -MF CMakeFiles/thinkfan.dir/src/yamlconfig.cpp.o.d -o CMakeFiles/thinkfan.dir/src/yamlconfig.cpp.o -c /builddir/build/BUILD/thinkfan-1.3.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -rdynamic CMakeFiles/thinkfan.dir/src/thinkfan.cpp.o CMakeFiles/thinkfan.dir/src/config.cpp.o CMakeFiles/thinkfan.dir/src/fans.cpp.o CMakeFiles/thinkfan.dir/src/sensors.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 -latasmart -ldl -lyaml-cpp /usr/bin/ld: /tmp/ccYTj49F.ltrans0.ltrans.o: in function `.LEHB62': /usr/include/c++/12/bits/basic_string.h:3555: undefined reference to `__atomic_fetch_sub_1' collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/thinkfan.dir/build.make:212: thinkfan] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/thinkfan-1.3.1/redhat-linux-build' gmake[1]: Leaving directory '/builddir/build/BUILD/thinkfan-1.3.1/redhat-linux-build' gmake[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/thinkfan.dir/all] Error 2 gmake: *** [Makefile:139: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.nwQDcn (%build) Bad exit status from /var/tmp/rpm-tmp.nwQDcn (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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