Performing C++ SOURCE FILE Test HAVE_CXX_ATOMICS64_WITHOUT_LIB failed with the following output: Change Dir: /home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_2a8dc/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_2a8dc.dir/build.make CMakeFiles/cmTC_2a8dc.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_2a8dc.dir/src.cxx.o /home/buildroot/autobuild/instance-0/output-1/host/bin/riscv32-linux-g++ --sysroot=/home/buildroot/autobuild/instance-0/output-1/host/riscv32-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wconversion -pedantic -Wextra -Wno-missing-field-initializers -DHAVE_CXX_ATOMICS64_WITHOUT_LIB -std=c++11 -DNDEBUG -o CMakeFiles/cmTC_2a8dc.dir/src.cxx.o -c /home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp/src.cxx /home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp/src.cxx: In function 'int main()': /home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp/src.cxx:6:12: warning: unused variable 'i' [-Wunused-variable] 6 | uint64_t i = x.load(std::memory_order_relaxed); | ^ Linking CXX executable cmTC_2a8dc /home/buildroot/autobuild/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2a8dc.dir/link.txt --verbose=1 /home/buildroot/autobuild/instance-0/output-1/host/bin/riscv32-linux-g++ --sysroot=/home/buildroot/autobuild/instance-0/output-1/host/riscv32-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wconversion -pedantic -Wextra -Wno-missing-field-initializers -DHAVE_CXX_ATOMICS64_WITHOUT_LIB -std=c++11 -DNDEBUG CMakeFiles/cmTC_2a8dc.dir/src.cxx.o -o cmTC_2a8dc /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: CMakeFiles/cmTC_2a8dc.dir/src.cxx.o: in function `.L0 ': src.cxx:(.text.startup+0x10): undefined reference to `__atomic_load_8' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_2a8dc.dir/build.make:86: recipe for target 'cmTC_2a8dc' failed make[2]: *** [cmTC_2a8dc] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Makefile:121: recipe for target 'cmTC_2a8dc/fast' failed make[1]: *** [cmTC_2a8dc/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Source file was: #include #include std::atomic x (0); int main() { uint64_t i = x.load(std::memory_order_relaxed); return 0; } Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_fb7af/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_fb7af.dir/build.make CMakeFiles/cmTC_fb7af.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fb7af.dir/src.c.o /home/buildroot/autobuild/instance-0/output-1/host/bin/riscv32-linux-gcc --sysroot=/home/buildroot/autobuild/instance-0/output-1/host/riscv32-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DCMAKE_HAVE_LIBC_PTHREAD -DNDEBUG -o CMakeFiles/cmTC_fb7af.dir/src.c.o -c /home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_fb7af /home/buildroot/autobuild/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fb7af.dir/link.txt --verbose=1 /home/buildroot/autobuild/instance-0/output-1/host/bin/riscv32-linux-gcc --sysroot=/home/buildroot/autobuild/instance-0/output-1/host/riscv32-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DCMAKE_HAVE_LIBC_PTHREAD -DNDEBUG CMakeFiles/cmTC_fb7af.dir/src.c.o -o cmTC_fb7af -latomic /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: CMakeFiles/cmTC_fb7af.dir/src.c.o: undefined reference to symbol 'pthread_join@@GLIBC_2.33' /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: /home/buildroot/autobuild/instance-0/output-1/host/riscv32-buildroot-linux-gnu/sysroot/lib32/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status CMakeFiles/cmTC_fb7af.dir/build.make:86: recipe for target 'cmTC_fb7af' failed make[2]: *** [cmTC_fb7af] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Makefile:121: recipe for target 'cmTC_fb7af/fast' failed make[1]: *** [cmTC_fb7af/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/pistache-f2f5a50fbfb5b8ef6cf1d3d2a9d442a8270e375d/CMakeFiles/CMakeTmp' Source file was: #include void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; }