Advertisement
Guest User

My Kodi Build Error

a guest
Mar 5th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:"/usr/bin/make" "cmTC_f5ce7/fast"
  5. make[2]: Entering directory '/home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp'
  6. /usr/bin/make -f CMakeFiles/cmTC_f5ce7.dir/build.make CMakeFiles/cmTC_f5ce7.dir/build
  7. make[3]: Entering directory '/home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp'
  8. Building C object CMakeFiles/cmTC_f5ce7.dir/CheckSymbolExists.c.o
  9. /usr/bin/cc -g -fdebug-prefix-map=/home/jason/kodi/kodi-18.1+git20190217.1232-final=. -fstack-protector-strong -Wf$
  10. Linking C executable cmTC_f5ce7
  11. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5ce7.dir/link.txt --verbose=1
  12. /usr/bin/cc -g -fdebug-prefix-map=/home/jason/kodi/kodi-18.1+git20190217.1232-final=. -fstack-protector-strong -Wfor$
  13. ./kodi_build_x11/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: undefined reference to 'pthread_create'
  14. collect2: error: ld returned 1 exit status
  15. CMakeFiles/cmTC_f5ce7.dir/build.make:97: recipe for target 'cmTC_f5ce7' failed
  16. make[3]: *** [cmTC_f5ce7] Error 1
  17. make[3]: Leaving directory '/home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp'
  18. Makefile:126: recipe for target 'cmTC_f5ce7/fast' failed
  19. make[2]: *** [cmTC_f5ce7/fast] Error 2
  20. make[2]: Leaving directory '/home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp'
  21.  
  22. File /home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  23. /* */
  24. #include <pthread.h>
  25.  
  26. int main(int argc, char** argv)
  27. {
  28. (void)argv;
  29. #ifndef pthread_create
  30. return ((int*)(&pthread_create))[argc];
  31. #else
  32. (void)argc;
  33. return 0;
  34. #endif
  35. }
  36.  
  37. Determining if the function pthread_create exists in the pthreads failed with the following output:
  38. Change Dir: /home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp
  39.  
  40. Run Build Command:"/usr/bin/make" "cmTC_21fd8/fast"
  41. make[2]: Entering directory '/home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp'
  42. /usr/bin/make -f CMakeFiles/cmTC_21fd8.dir/build.make CMakeFiles/cmTC_21fd8.dir/build
  43. make[3]: Entering directory '/home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp'
  44. Building C object CMakeFiles/cmTC_21fd8.dir/CheckFunctionExists.c.o
  45. /usr/bin/cc -g -fdebug-prefix-map=/home/jason/kodi/kodi-18.1+git20190217.1232-final=. -fstack-protector-strong -Wf$
  46. Linking C executable cmTC_21fd8
  47. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_21fd8.dir/link.txt --verbose=1
  48. /usr/bin/cc -g -fdebug-prefix-map=/home/jason/kodi/kodi-18.1+git20190217.1232-final=. -fstack-protector-strong -Wfor$
  49. /usr/bin/ld.gold: error: cannot find -lpthreads
  50. /usr/share/cmake-3.7/Modules/CheckFunctionExists.c:17: error: undefined reference to 'pthread_create'
  51. collect2: error: ld returned 1 exit status
  52. CMakeFiles/cmTC_21fd8.dir/build.make:97: recipe for target 'cmTC_21fd8' failed
  53. make[3]: *** [cmTC_21fd8] Error 1
  54. make[3]: Leaving directory '/home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp'
  55. Makefile:126: recipe for target 'cmTC_21fd8/fast' failed
  56. make[2]: *** [cmTC_21fd8/fast] Error 2
  57. make[2]: Leaving directory '/home/jason/kodi/kodi-18.1+git20190217.1232-final/kodi_build_x11/CMakeFiles/CMakeTmp'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement