Advertisement
Guest User

Untitled

a guest
Oct 25th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:"/usr/bin/make" "cmTC_5c20f/fast"
  5. make[1]: Entering directory '/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp'
  6. /usr/bin/make -f CMakeFiles/cmTC_5c20f.dir/build.make CMakeFiles/cmTC_5c20f.dir/build
  7. make[2]: Entering directory '/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp'
  8. Building C object CMakeFiles/cmTC_5c20f.dir/CheckSymbolExists.c.o
  9. /usr/bin/gcc -I/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/x86_64-linux-gnu/include -DNDEBUG=1 -O3 -fPIC -o CMakeFiles/cmTC_5c20f.dir/CheckSymbolExists.c.o -c /home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  10. Linking C executable cmTC_5c20f
  11. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5c20f.dir/link.txt --verbose=1
  12. /usr/bin/gcc -I/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/x86_64-linux-gnu/include -DNDEBUG=1 -O3 -fPIC -L/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/x86_64-linux-gnu/lib CMakeFiles/cmTC_5c20f.dir/CheckSymbolExists.c.o -o cmTC_5c20f -rdynamic
  13. CMakeFiles/cmTC_5c20f.dir/CheckSymbolExists.c.o: In function `main':
  14. CheckSymbolExists.c:(.text.startup+0x3): undefined reference to `pthread_create'
  15. collect2: error: ld returned 1 exit status
  16. CMakeFiles/cmTC_5c20f.dir/build.make:97: commands for the object 'cmTC_5c20f' failed
  17. make[2]: *** [cmTC_5c20f] Error 1
  18. make[2]: Leaving directory '/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp'
  19. Makefile:126: commands for the object 'cmTC_5c20f/fast' failed
  20. make[1]: *** [cmTC_5c20f/fast] Error 2
  21. make[1]: Leaving directory '/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp'
  22.  
  23. File /home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  24. /* */
  25. #include <pthread.h>
  26.  
  27. int main(int argc, char** argv)
  28. {
  29. (void)argv;
  30. #ifndef pthread_create
  31. return ((int*)(&pthread_create))[argc];
  32. #else
  33. (void)argc;
  34. return 0;
  35. #endif
  36. }
  37.  
  38. Determining if the function pthread_create exists in the pthreads failed with the following output:
  39. Change Dir: /home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp
  40.  
  41. Run Build Command:"/usr/bin/make" "cmTC_9e603/fast"
  42. make[1]: Entering directory '/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp'
  43. /usr/bin/make -f CMakeFiles/cmTC_9e603.dir/build.make CMakeFiles/cmTC_9e603.dir/build
  44. make[2]: Entering directory '/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp'
  45. Building C object CMakeFiles/cmTC_9e603.dir/CheckFunctionExists.c.o
  46. /usr/bin/gcc -I/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/x86_64-linux-gnu/include -DNDEBUG=1 -O3 -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_9e603.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c
  47. Linking C executable cmTC_9e603
  48. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9e603.dir/link.txt --verbose=1
  49. /usr/bin/gcc -I/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/x86_64-linux-gnu/include -DNDEBUG=1 -O3 -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -L/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/x86_64-linux-gnu/lib CMakeFiles/cmTC_9e603.dir/CheckFunctionExists.c.o -o cmTC_9e603 -rdynamic -lpthreads
  50. /usr/bin/ld: cannot find -lpthreads
  51. collect2: error: ld returned 1 exit status
  52. CMakeFiles/cmTC_9e603.dir/build.make:97: commands for the object 'cmTC_9e603' failed
  53. make[2]: *** [cmTC_9e603] Error 1
  54. make[2]: Leaving directory '/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp'
  55. Makefile:126: commands for the object 'cmTC_9e603/fast' failed
  56. make[1]: *** [cmTC_9e603/fast] Error 2
  57. make[1]: Leaving directory '/home/szeregowy/Dokumenty/Programy/Paczki/ring-project/daemon/contrib/native/opendht/CMakeFiles/CMakeTmp'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement