CMakeError.log 2.7 KB

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