Determining if the pthread_create exist failed with the following output: Change Dir: /var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_35f1e/fast /usr/bin/gmake -f CMakeFiles/cmTC_35f1e.dir/build.make CMakeFiles/cmTC_35f1e.dir/build gmake[1]: Entering directory '/var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_35f1e.dir/CheckSymbolExists.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -O2 -pipe -march=native -o CMakeFiles/cmTC_35f1e.dir/CheckSymbolExists.c.o -c /var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_35f1e /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_35f1e.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/cmTC_35f1e.dir/CheckSymbolExists.c.o -o cmTC_35f1e /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/cmTC_35f1e.dir/CheckSymbolExists.c.o: in function `main': CheckSymbolExists.c:(.text.startup+0x3): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_35f1e.dir/build.make:87: cmTC_35f1e] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_35f1e/fast] Error 2 File /var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/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 the function pthread_create exists in the pthreads failed with the following output: Change Dir: /var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_34081/fast /usr/bin/gmake -f CMakeFiles/cmTC_34081.dir/build.make CMakeFiles/cmTC_34081.dir/build gmake[1]: Entering directory '/var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_34081.dir/CheckFunctionExists.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -O2 -pipe -march=native -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_34081.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_34081 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_34081.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/cmTC_34081.dir/CheckFunctionExists.c.o -o cmTC_34081 -lpthreads /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_34081.dir/build.make:87: cmTC_34081] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_34081/fast] Error 2 Determining if the function trunc exists failed with the following output: Change Dir: /var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_e26d5/fast /usr/bin/gmake -f CMakeFiles/cmTC_e26d5.dir/build.make CMakeFiles/cmTC_e26d5.dir/build gmake[1]: Entering directory '/var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e26d5.dir/CheckFunctionExists.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -O2 -pipe -march=native -DCHECK_FUNCTION_EXISTS=trunc -o CMakeFiles/cmTC_e26d5.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c : warning: conflicting types for built-in function ‘trunc’; expected ‘double(double)’ [-Wbuiltin-declaration-mismatch] /usr/share/cmake/Modules/CheckFunctionExists.c:7:3: note: in expansion of macro ‘CHECK_FUNCTION_EXISTS’ 7 | CHECK_FUNCTION_EXISTS(void); | ^~~~~~~~~~~~~~~~~~~~~ /usr/share/cmake/Modules/CheckFunctionExists.c:1:1: note: ‘trunc’ is declared in header ‘’ +++ |+#include 1 | #ifdef CHECK_FUNCTION_EXISTS Linking C executable cmTC_e26d5 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e26d5.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -DCHECK_FUNCTION_EXISTS=trunc -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/cmTC_e26d5.dir/CheckFunctionExists.c.o -o cmTC_e26d5 /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/cmTC_e26d5.dir/CheckFunctionExists.c.o: in function `main': CheckFunctionExists.c:(.text.startup+0xc): undefined reference to `trunc' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_e26d5.dir/build.make:87: cmTC_e26d5] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/dev-ros/roscpp-1.14.3/work/roscpp-1.14.3_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:121: cmTC_e26d5/fast] Error 2