Advertisement
Guest User

Untitled

a guest
Apr 11th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /home/rock/kodi-build/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:"/usr/bin/make" "cmTC_4eec2/fast"
  5. /usr/bin/make -f CMakeFiles/cmTC_4eec2.dir/build.make CMakeFiles/cmTC_4eec2.dir/build
  6. make[1]: ingresso nella directory "/home/rock/kodi-build/CMakeFiles/CMakeTmp"
  7. Building C object CMakeFiles/cmTC_4eec2.dir/CheckSymbolExists.c.o
  8. /usr/bin/cc -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -o CMakeFiles/cmTC_4eec2.dir/CheckSymbolExists.c.o -c /home/rock/kodi-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  9. Linking C executable cmTC_4eec2
  10. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4eec2.dir/link.txt --verbose=1
  11. /usr/bin/cc -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -fuse-ld=gold CMakeFiles/cmTC_4eec2.dir/CheckSymbolExists.c.o -o cmTC_4eec2
  12. CMakeFiles/cmTC_4eec2.dir/CheckSymbolExists.c.o:CheckSymbolExists.c:function main: error: undefined reference to 'pthread_create'
  13. collect2: error: ld returned 1 exit status
  14. CMakeFiles/cmTC_4eec2.dir/build.make:97: set di istruzioni per l'obiettivo "cmTC_4eec2" non riuscito
  15. make[1]: *** [cmTC_4eec2] Errore 1
  16. make[1]: uscita dalla directory "/home/rock/kodi-build/CMakeFiles/CMakeTmp"
  17. Makefile:126: set di istruzioni per l'obiettivo "cmTC_4eec2/fast" non riuscito
  18. make: *** [cmTC_4eec2/fast] Errore 2
  19.  
  20. File /home/rock/kodi-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  21. /* */
  22. #include <pthread.h>
  23.  
  24. int main(int argc, char** argv)
  25. {
  26. (void)argv;
  27. #ifndef pthread_create
  28. return ((int*)(&pthread_create))[argc];
  29. #else
  30. (void)argc;
  31. return 0;
  32. #endif
  33. }
  34.  
  35. Determining if the function pthread_create exists in the pthreads failed with the following output:
  36. Change Dir: /home/rock/kodi-build/CMakeFiles/CMakeTmp
  37.  
  38. Run Build Command:"/usr/bin/make" "cmTC_abdc6/fast"
  39. /usr/bin/make -f CMakeFiles/cmTC_abdc6.dir/build.make CMakeFiles/cmTC_abdc6.dir/build
  40. make[1]: ingresso nella directory "/home/rock/kodi-build/CMakeFiles/CMakeTmp"
  41. Building C object CMakeFiles/cmTC_abdc6.dir/CheckFunctionExists.c.o
  42. /usr/bin/cc -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_abdc6.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c
  43. Linking C executable cmTC_abdc6
  44. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_abdc6.dir/link.txt --verbose=1
  45. /usr/bin/cc -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -DCHECK_FUNCTION_EXISTS=pthread_create -fuse-ld=gold CMakeFiles/cmTC_abdc6.dir/CheckFunctionExists.c.o -o cmTC_abdc6 -lpthreads
  46. /usr/bin/ld.gold: errore: impossibile trovare -lpthreads
  47. CMakeFiles/cmTC_abdc6.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pthread_create'
  48. collect2: error: ld returned 1 exit status
  49. CMakeFiles/cmTC_abdc6.dir/build.make:97: set di istruzioni per l'obiettivo "cmTC_abdc6" non riuscito
  50. make[1]: *** [cmTC_abdc6] Errore 1
  51. make[1]: uscita dalla directory "/home/rock/kodi-build/CMakeFiles/CMakeTmp"
  52. Makefile:126: set di istruzioni per l'obiettivo "cmTC_abdc6/fast" non riuscito
  53. make: *** [cmTC_abdc6/fast] Errore 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement