Advertisement
lamiastella

CMakeError.log

Jan 12th, 2021
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. $ cat CMakeError.log
  2. Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
  3. Change Dir: /home/mona/mesh-fusion/libfusiongpu/build/CMakeFiles/CMakeTmp
  4.  
  5. Run Build Command(s):/usr/bin/make cmTC_d8db1/fast && /usr/bin/make -f CMakeFiles/cmTC_d8db1.dir/build.make CMakeFiles/cmTC_d8db1.dir/build
  6. make[1]: Entering directory '/home/mona/mesh-fusion/libfusiongpu/build/CMakeFiles/CMakeTmp'
  7. Building C object CMakeFiles/cmTC_d8db1.dir/src.c.o
  8. /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_d8db1.dir/src.c.o -c /home/mona/mesh-fusion/libfusiongpu/build/CMakeFiles/CMakeTmp/src.c
  9. Linking C executable cmTC_d8db1
  10. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d8db1.dir/link.txt --verbose=1
  11. /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_d8db1.dir/src.c.o -o cmTC_d8db1
  12. /usr/bin/ld: CMakeFiles/cmTC_d8db1.dir/src.c.o: in function `main':
  13. src.c:(.text+0x46): undefined reference to `pthread_create'
  14. /usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
  15. /usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
  16. collect2: error: ld returned 1 exit status
  17. make[1]: *** [CMakeFiles/cmTC_d8db1.dir/build.make:87: cmTC_d8db1] Error 1
  18. make[1]: Leaving directory '/home/mona/mesh-fusion/libfusiongpu/build/CMakeFiles/CMakeTmp'
  19. make: *** [Makefile:121: cmTC_d8db1/fast] Error 2
  20.  
  21.  
  22. Source file was:
  23. #include <pthread.h>
  24.  
  25. void* test_func(void* data)
  26. {
  27. return data;
  28. }
  29.  
  30. int main(void)
  31. {
  32. pthread_t thread;
  33. pthread_create(&thread, NULL, test_func, NULL);
  34. pthread_detach(thread);
  35. pthread_join(thread, NULL);
  36. pthread_atfork(NULL, NULL, NULL);
  37. pthread_exit(NULL);
  38.  
  39. return 0;
  40. }
  41.  
  42. Determining if the function pthread_create exists in the pthreads failed with the following output:
  43. Change Dir: /home/mona/mesh-fusion/libfusiongpu/build/CMakeFiles/CMakeTmp
  44.  
  45. Run Build Command(s):/usr/bin/make cmTC_4d856/fast && /usr/bin/make -f CMakeFiles/cmTC_4d856.dir/build.make CMakeFiles/cmTC_4d856.dir/build
  46. make[1]: Entering directory '/home/mona/mesh-fusion/libfusiongpu/build/CMakeFiles/CMakeTmp'
  47. Building C object CMakeFiles/cmTC_4d856.dir/CheckFunctionExists.c.o
  48. /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_4d856.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
  49. Linking C executable cmTC_4d856
  50. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4d856.dir/link.txt --verbose=1
  51. /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_4d856.dir/CheckFunctionExists.c.o -o cmTC_4d856 -lpthreads
  52. /usr/bin/ld: cannot find -lpthreads
  53. collect2: error: ld returned 1 exit status
  54. make[1]: *** [CMakeFiles/cmTC_4d856.dir/build.make:87: cmTC_4d856] Error 1
  55. make[1]: Leaving directory '/home/mona/mesh-fusion/libfusiongpu/build/CMakeFiles/CMakeTmp'
  56. make: *** [Makefile:121: cmTC_4d856/fast] Error 2
  57.  
  58.  
  59.  
  60. 19689/31772MB(tsdf)
  61.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement