Determining if the pthread_create exist failed with the following output: Change Dir: /var/tmp/portage/sci-libs/clblas-2.10/work/clblas-2.10_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_606a1/fast" /usr/bin/gmake -f CMakeFiles/cmTC_606a1.dir/build.make CMakeFiles/cmTC_606a1.dir/build gmake[1]: Entering directory '/var/tmp/portage/sci-libs/clblas-2.10/work/clblas-2.10_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_606a1.dir/CheckSymbolExists.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -O2 -pipe -march=native -Wall -std=c99 -Wstrict-prototypes -o CMakeFiles/cmTC_606a1.dir/CheckSymbolExists.c.o -c /var/tmp/portage/sci-libs/clblas-2.10/work/clblas-2.10_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_606a1 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_606a1.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wall -std=c99 -Wstrict-prototypes -Wl,-O1 -Wl,--as-needed CMakeFiles/cmTC_606a1.dir/CheckSymbolExists.c.o -o cmTC_606a1 -rdynamic CMakeFiles/cmTC_606a1.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text.startup+0x26): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_606a1.dir/build.make:98: cmTC_606a1] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/sci-libs/clblas-2.10/work/clblas-2.10_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:126: cmTC_606a1/fast] Error 2 File /var/tmp/portage/sci-libs/clblas-2.10/work/clblas-2.10_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 }