Determining if the pthread_create exist failed with the following output: Change Dir: /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_7cb1a/fast" make[1]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_7cb1a.dir/build.make CMakeFiles/cmTC_7cb1a.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7cb1a.dir/CheckSymbolExists.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 -Os -DNDEBUG -o CMakeFiles/cmTC_7cb1a.dir/CheckSymbolExists.c.o -c /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_7cb1a /home/buildroot/autobuild/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7cb1a.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 -Os -DNDEBUG -rdynamic CMakeFiles/cmTC_7cb1a.dir/CheckSymbolExists.c.o -o cmTC_7cb1a /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/7.4.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: CMakeFiles/cmTC_7cb1a.dir/CheckSymbolExists.c.o: in function `main': CheckSymbolExists.c:(.text.startup+0x0): undefined reference to `pthread_create' /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/7.4.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: CheckSymbolExists.c:(.text.startup+0x4): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_7cb1a.dir/build.make:97: recipe for target 'cmTC_7cb1a' failed make[2]: *** [cmTC_7cb1a] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_7cb1a/fast' failed make[1]: *** [cmTC_7cb1a/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' File /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef pthread_create return ((int*)(&pthread_create))[argc]; #else (void)argc; return 0; #endif } Determining if compiler accepts -pthread returned PLEASE_FILL_OUT-FAILED_TO_RUN instead of 2. The compiler had the following output: Change Dir: /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_73a06/fast" make[1]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_73a06.dir/build.make CMakeFiles/cmTC_73a06.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_73a06.dir/CheckForPthreads.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 -Os -DNDEBUG -o CMakeFiles/cmTC_73a06.dir/CheckForPthreads.c.o -c /home/buildroot/autobuild/instance-0/output-1/host/share/cmake-3.8/Modules/CheckForPthreads.c Linking C executable cmTC_73a06 /home/buildroot/autobuild/instance-0/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_73a06.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 -Os -DNDEBUG -rdynamic CMakeFiles/cmTC_73a06.dir/CheckForPthreads.c.o -o cmTC_73a06 -pthread make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' make[1]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' Determining if the getpassphrase exist failed with the following output: Change Dir: /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_c0051/fast" make[1]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_c0051.dir/build.make CMakeFiles/cmTC_c0051.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_c0051.dir/CheckSymbolExists.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 -Os -DNDEBUG -o CMakeFiles/cmTC_c0051.dir/CheckSymbolExists.cxx.o -c /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function 'int main(int, char**)': /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: 'getpassphrase' was not declared in this scope return ((int*)(&getpassphrase))[argc]; ^~~~~~~~~~~~~ CMakeFiles/cmTC_c0051.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_c0051.dir/CheckSymbolExists.cxx.o' failed make[2]: *** [CMakeFiles/cmTC_c0051.dir/CheckSymbolExists.cxx.o] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_c0051/fast' failed make[1]: *** [cmTC_c0051/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp' File /home/buildroot/autobuild/instance-0/output-1/build/znc-1.7.5/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef getpassphrase return ((int*)(&getpassphrase))[argc]; #else (void)argc; return 0; #endif }