Determining if the pthread_create exist failed with the following output: Change Dir: /home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec2253996221/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec2253996221.dir/build.make CMakeFiles/cmTryCompileExec2253996221.dir/build make[1]: Entering directory `/home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2253996221.dir/CheckSymbolExists.c.o /usr/bin/cc -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -mfpmath=sse -Wcast-align -Wl,-E -o CMakeFiles/cmTryCompileExec2253996221.dir/CheckSymbolExists.c.o -c /home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec2253996221 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2253996221.dir/link.txt --verbose=1 /usr/bin/cc -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -mfpmath=sse -Wcast-align -Wl,-E CMakeFiles/cmTryCompileExec2253996221.dir/CheckSymbolExists.c.o -o cmTryCompileExec2253996221 -rdynamic CMakeFiles/cmTryCompileExec2253996221.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec2253996221] Error 1 make[1]: Leaving directory `/home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec2253996221/fast] Error 2 File /home/ab/1_SW/Beignet/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: /home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec2822741041/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec2822741041.dir/build.make CMakeFiles/cmTryCompileExec2822741041.dir/build make[1]: Entering directory `/home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2822741041.dir/CheckFunctionExists.c.o /usr/bin/cc -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -mfpmath=sse -Wcast-align -Wl,-E -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec2822741041.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec2822741041 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2822741041.dir/link.txt --verbose=1 /usr/bin/cc -funroll-loops -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC -Wall -mfpmath=sse -Wcast-align -Wl,-E -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec2822741041.dir/CheckFunctionExists.c.o -o cmTryCompileExec2822741041 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec2822741041] Error 1 make[1]: Leaving directory `/home/ab/1_SW/Beignet/build/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec2822741041/fast] Error 2