CMakeError.log 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp
  3. Run Build Command:"/usr/bin/make" "cmTC_6d3d2/fast"
  4. /usr/bin/make -f CMakeFiles/cmTC_6d3d2.dir/build.make CMakeFiles/cmTC_6d3d2.dir/build
  5. make[1]: Entering directory '/home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp'
  6. Building C object CMakeFiles/cmTC_6d3d2.dir/CheckSymbolExists.c.o
  7. /usr/bin/gcc-7 -fPIC -o CMakeFiles/cmTC_6d3d2.dir/CheckSymbolExists.c.o -c /home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  8. Linking C executable cmTC_6d3d2
  9. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6d3d2.dir/link.txt --verbose=1
  10. /usr/bin/gcc-7 -fPIC CMakeFiles/cmTC_6d3d2.dir/CheckSymbolExists.c.o -o cmTC_6d3d2
  11. CMakeFiles/cmTC_6d3d2.dir/CheckSymbolExists.c.o: In function `main':
  12. CheckSymbolExists.c:(.text+0x14): undefined reference to `pthread_create'
  13. CheckSymbolExists.c:(.text+0x18): undefined reference to `pthread_create'
  14. collect2: error: ld returned 1 exit status
  15. CMakeFiles/cmTC_6d3d2.dir/build.make:97: recipe for target 'cmTC_6d3d2' failed
  16. make[1]: *** [cmTC_6d3d2] Error 1
  17. make[1]: Leaving directory '/home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp'
  18. Makefile:126: recipe for target 'cmTC_6d3d2/fast' failed
  19. make: *** [cmTC_6d3d2/fast] Error 2
  20. File /home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  21. /* */
  22. #include <pthread.h>
  23. int main(int argc, char** argv)
  24. {
  25. (void)argv;
  26. #ifndef pthread_create
  27. return ((int*)(&pthread_create))[argc];
  28. #else
  29. (void)argc;
  30. return 0;
  31. #endif
  32. }
  33. Determining if the function pthread_create exists in the pthreads failed with the following output:
  34. Change Dir: /home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp
  35. Run Build Command:"/usr/bin/make" "cmTC_0adde/fast"
  36. /usr/bin/make -f CMakeFiles/cmTC_0adde.dir/build.make CMakeFiles/cmTC_0adde.dir/build
  37. make[1]: Entering directory '/home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp'
  38. Building C object CMakeFiles/cmTC_0adde.dir/CheckFunctionExists.c.o
  39. /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
  40. Linking C executable cmTC_0adde
  41. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0adde.dir/link.txt --verbose=1
  42. /usr/bin/gcc-7 -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_0adde.dir/CheckFunctionExists.c.o -o cmTC_0adde -lpthreads
  43. /usr/bin/ld: cannot find -lpthreads
  44. collect2: error: ld returned 1 exit status
  45. CMakeFiles/cmTC_0adde.dir/build.make:97: recipe for target 'cmTC_0adde' failed
  46. make[1]: *** [cmTC_0adde] Error 1
  47. make[1]: Leaving directory '/home/nvidia/work/VIA/build/CMakeFiles/CMakeTmp'
  48. Makefile:126: recipe for target 'cmTC_0adde/fast' failed
  49. make: *** [cmTC_0adde/fast] Error 2