rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wcast-qual -Winit-self -Wnoexcept -Woverloaded-virtual -Wredundant-decls -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld CMakeFiles/tlx_meta_function_stack_test.dir/meta/function_stack_test.cpp.o -o tlx_meta_function_stack_test -Wl,-rpath,/builddir/build/BUILD/tlx-0.5.20191212/build/tlx ../tlx/libtlx.so.0.5.20191212 -lpthread make[2]: Leaving directory '/builddir/build/BUILD/tlx-0.5.20191212/build' /usr/bin/ld: ../tlx/libtlx.so.0.5.20191212: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status make[2]: *** [tests/CMakeFiles/tlx_meta_function_stack_test.dir/build.make:88: tests/tlx_meta_function_stack_test] Error 1 make[1]: *** [CMakeFiles/Makefile2:231: tests/CMakeFiles/tlx_meta_function_stack_test.dir/all] Error 2 make[2]: Entering directory '/builddir/build/BUILD/tlx-0.5.20191212/build' [ 36%] Building CXX object tests/CMakeFiles/tlx_thread_pool_test.dir/thread_pool_test.cpp.o cd /builddir/build/BUILD/tlx-0.5.20191212/build/tests && /usr/bin/c++ -DTLX_BUILD_STRING_SORTING -I/builddir/build/BUILD/tlx-0.5.20191212 -Wshadow -Wold-style-cast -std=c++17 -g -W -Wall -Wextra -fPIC -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 -Wcast-qual -Winit-self -Wnoexcept -Woverloaded-virtual -Wredundant-decls -o CMakeFiles/tlx_thread_pool_test.dir/thread_pool_test.cpp.o -c /builddir/build/BUILD/tlx-0.5.20191212/tests/thread_pool_test.cpp make[2]: Leaving directory '/builddir/build/BUILD/tlx-0.5.20191212/build' make[2]: Entering directory '/builddir/build/BUILD/tlx-0.5.20191212/build' [ 40%] Linking CXX executable tlx_thread_pool_test cd /builddir/build/BUILD/tlx-0.5.20191212/build/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/tlx_thread_pool_test.dir/link.txt --verbose=1 /usr/bin/c++ -Wshadow -Wold-style-cast -std=c++17 -g -W -Wall -Wextra -fPIC -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 -Wcast-qual -Winit-self -Wnoexcept -Woverloaded-virtual -Wredundant-decls -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld CMakeFiles/tlx_thread_pool_test.dir/thread_pool_test.cpp.o -o tlx_thread_pool_test -Wl,-rpath,/builddir/build/BUILD/tlx-0.5.20191212/build/tlx ../tlx/libtlx.so.0.5.20191212 -lpthread make[2]: Leaving directory '/builddir/build/BUILD/tlx-0.5.20191212/build' /usr/bin/ld: ../tlx/libtlx.so.0.5.20191212: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status make[2]: *** [tests/CMakeFiles/tlx_thread_pool_test.dir/build.make:88: tests/tlx_thread_pool_test] Error 1 make[1]: *** [CMakeFiles/Makefile2:312: tests/CMakeFiles/tlx_thread_pool_test.dir/all] Error 2 make: *** [Makefile:144: all] Error 2 error: RPM build errors: Bad exit status from /var/tmp/rpm-tmp.UkWoH4 (%build) Bad exit status from /var/tmp/rpm-tmp.UkWoH4 (%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/tlx.spec