Determining if the pthread_create exist failed with the following output: Change Dir: /impala/develop-3.3.0/Impala/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_2125a/fast /usr/bin/gmake -f CMakeFiles/cmTC_2125a.dir/build.make CMakeFiles/cmTC_2125a.dir/build gmake[1]: Entering directory '/impala/develop-3.3.0/Impala/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2125a.dir/CheckSymbolExists.c.o /toolchain/gcc-4.9.2/bin/gcc -o CMakeFiles/cmTC_2125a.dir/CheckSymbolExists.c.o -c /impala/develop-3.3.0/Impala/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_2125a /toolchain/cmake-3.14.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2125a.dir/link.txt --verbose=1 /toolchain/gcc-4.9.2/bin/gcc -rdynamic CMakeFiles/cmTC_2125a.dir/CheckSymbolExists.c.o -o cmTC_2125a CMakeFiles/cmTC_2125a.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_2125a.dir/build.make:86: recipe for target 'cmTC_2125a' failed gmake[1]: *** [cmTC_2125a] Error 1 gmake[1]: Leaving directory '/impala/develop-3.3.0/Impala/CMakeFiles/CMakeTmp' Makefile:121: recipe for target 'cmTC_2125a/fast' failed gmake: *** [cmTC_2125a/fast] Error 2 File /impala/develop-3.3.0/Impala/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: /impala/develop-3.3.0/Impala/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_f194b/fast /usr/bin/gmake -f CMakeFiles/cmTC_f194b.dir/build.make CMakeFiles/cmTC_f194b.dir/build gmake[1]: Entering directory '/impala/develop-3.3.0/Impala/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f194b.dir/CheckFunctionExists.c.o /toolchain/gcc-4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_f194b.dir/CheckFunctionExists.c.o -c /toolchain/cmake-3.14.3/share/cmake-3.14/Modules/CheckFunctionExists.c Linking C executable cmTC_f194b /toolchain/cmake-3.14.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f194b.dir/link.txt --verbose=1 /toolchain/gcc-4.9.2/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_f194b.dir/CheckFunctionExists.c.o -o cmTC_f194b -lpthreads /toolchain/binutils-2.26.1/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_f194b.dir/build.make:86: recipe for target 'cmTC_f194b' failed gmake[1]: *** [cmTC_f194b] Error 1 gmake[1]: Leaving directory '/impala/develop-3.3.0/Impala/CMakeFiles/CMakeTmp' Makefile:121: recipe for target 'cmTC_f194b/fast' failed gmake: *** [cmTC_f194b/fast] Error 2