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 -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-d59c325fb31812047e61aba3d75cc037f92c2b3d/riscv64-redhat-linux-gnu/tlx ../tlx/libtlx.so.0.5.20200222 -lpthread /usr/bin/ld: ../tlx/libtlx.so.0.5.20200222: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status gmake[2]: *** [tests/CMakeFiles/tlx_meta_fold_test.dir/build.make:107: tests/tlx_meta_fold_test] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/tlx-d59c325fb31812047e61aba3d75cc037f92c2b3d/riscv64-redhat-linux-gnu' gmake[1]: *** [CMakeFiles/Makefile2:281: tests/CMakeFiles/tlx_meta_fold_test.dir/all] Error 2 /usr/bin/ld: ../tlx/libtlx.so.0.5.20200222: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status gmake[2]: *** [tests/CMakeFiles/tlx_meta_function_stack_test.dir/build.make:107: tests/tlx_meta_function_stack_test] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/tlx-d59c325fb31812047e61aba3d75cc037f92c2b3d/riscv64-redhat-linux-gnu' gmake[1]: *** [CMakeFiles/Makefile2:254: tests/CMakeFiles/tlx_meta_function_stack_test.dir/all] Error 2 [ 40%] Linking CXX executable tlx_thread_pool_test cd /builddir/build/BUILD/tlx-d59c325fb31812047e61aba3d75cc037f92c2b3d/riscv64-redhat-linux-gnu/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/tlx_thread_pool_test.dir/link.txt --verbose=1 /usr/bin/g++ -Wshadow -Wold-style-cast -std=c++17 -g -W -Wall -Wextra -fPIC -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 -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-d59c325fb31812047e61aba3d75cc037f92c2b3d/riscv64-redhat-linux-gnu/tlx ../tlx/libtlx.so.0.5.20200222 -lpthread /usr/bin/ld: ../tlx/libtlx.so.0.5.20200222: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status gmake[2]: *** [tests/CMakeFiles/tlx_thread_pool_test.dir/build.make:107: tests/tlx_thread_pool_test] Error 1 gmake[2]: Leaving directory '/builddir/build/BUILD/tlx-d59c325fb31812047e61aba3d75cc037f92c2b3d/riscv64-redhat-linux-gnu' gmake[1]: Leaving directory '/builddir/build/BUILD/tlx-d59c325fb31812047e61aba3d75cc037f92c2b3d/riscv64-redhat-linux-gnu' gmake[1]: *** [CMakeFiles/Makefile2:335: tests/CMakeFiles/tlx_thread_pool_test.dir/all] Error 2 gmake: *** [Makefile:163: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.my5pxF (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.my5pxF (%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