1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- Determining if the pthread_create exist failed with the following output:
- Change Dir: /home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp
- Run Build Command:"/usr/bin/make" "cmTC_6d3d2/fast"
- /usr/bin/make -f CMakeFiles/cmTC_6d3d2.dir/build.make CMakeFiles/cmTC_6d3d2.dir/build
- make[1]: Entering directory '/home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_6d3d2.dir/CheckSymbolExists.c.o
- /usr/bin/gcc-7 -fPIC -o CMakeFiles/cmTC_6d3d2.dir/CheckSymbolExists.c.o -c /home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
- Linking C executable cmTC_6d3d2
- /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6d3d2.dir/link.txt --verbose=1
- /usr/bin/gcc-7 -fPIC CMakeFiles/cmTC_6d3d2.dir/CheckSymbolExists.c.o -o cmTC_6d3d2
- CMakeFiles/cmTC_6d3d2.dir/CheckSymbolExists.c.o: In function `main':
- CheckSymbolExists.c:(.text+0x14): undefined reference to `pthread_create'
- CheckSymbolExists.c:(.text+0x18): undefined reference to `pthread_create'
- collect2: error: ld returned 1 exit status
- CMakeFiles/cmTC_6d3d2.dir/build.make:97: recipe for target 'cmTC_6d3d2' failed
- make[1]: *** [cmTC_6d3d2] Error 1
- make[1]: Leaving directory '/home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp'
- Makefile:126: recipe for target 'cmTC_6d3d2/fast' failed
- make: *** [cmTC_6d3d2/fast] Error 2
- File /home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
- /* */
- #include <pthread.h>
- 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/nvidia/work/VIA/build/CMakeFiles/CMakeTmp
- Run Build Command:"/usr/bin/make" "cmTC_0adde/fast"
- /usr/bin/make -f CMakeFiles/cmTC_0adde.dir/build.make CMakeFiles/cmTC_0adde.dir/build
- make[1]: Entering directory '/home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_0adde.dir/CheckFunctionExists.c.o
- /usr/bin/gcc-7 -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_0adde.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
- Linking C executable cmTC_0adde
- /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0adde.dir/link.txt --verbose=1
- /usr/bin/gcc-7 -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_0adde.dir/CheckFunctionExists.c.o -o cmTC_0adde -lpthreads
- /usr/bin/ld: cannot find -lpthreads
- collect2: error: ld returned 1 exit status
- CMakeFiles/cmTC_0adde.dir/build.make:97: recipe for target 'cmTC_0adde' failed
- make[1]: *** [cmTC_0adde] Error 1
- make[1]: Leaving directory '/home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp'
- Makefile:126: recipe for target 'cmTC_0adde/fast' failed
- make: *** [cmTC_0adde/fast] Error 2
|