Guest User

Untitled

a guest
May 7th, 2015
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /home/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:/usr/bin/make "cmTryCompileExec3440868673/fast"
  5. /usr/bin/make -f CMakeFiles/cmTryCompileExec3440868673.dir/build.make CMakeFiles/cmTryCompileExec3440868673.dir/build
  6. make[1]: Entering directory `/home/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp'
  7. /usr/bin/cmake -E cmake_progress_report /home/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp/CMakeFiles 1
  8. Building C object CMakeFiles/cmTryCompileExec3440868673.dir/CheckSymbolExists.c.o
  9. /usr/bin/cc -o CMakeFiles/cmTryCompileExec3440868673.dir/CheckSymbolExists.c.o -c /home/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  10. Linking C executable cmTryCompileExec3440868673
  11. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3440868673.dir/link.txt --verbose=1
  12. /usr/bin/cc CMakeFiles/cmTryCompileExec3440868673.dir/CheckSymbolExists.c.o -o cmTryCompileExec3440868673 -rdynamic
  13. CMakeFiles/cmTryCompileExec3440868673.dir/CheckSymbolExists.c.o: In function `main':
  14. CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
  15. collect2: error: ld returned 1 exit status
  16. make[1]: Leaving directory `/home/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp'
  17. make[1]: *** [cmTryCompileExec3440868673] Error 1
  18. make: *** [cmTryCompileExec3440868673/fast] Error 2
  19.  
  20. File /home/naor/Desktop/glfw-3.1.1/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/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp
  37.  
  38. Run Build Command:/usr/bin/make "cmTryCompileExec3942061042/fast"
  39. /usr/bin/make -f CMakeFiles/cmTryCompileExec3942061042.dir/build.make CMakeFiles/cmTryCompileExec3942061042.dir/build
  40. make[1]: Entering directory `/home/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp'
  41. /usr/bin/cmake -E cmake_progress_report /home/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp/CMakeFiles 1
  42. Building C object CMakeFiles/cmTryCompileExec3942061042.dir/CheckFunctionExists.c.o
  43. /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec3942061042.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
  44. Linking C executable cmTryCompileExec3942061042
  45. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3942061042.dir/link.txt --verbose=1
  46. /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec3942061042.dir/CheckFunctionExists.c.o -o cmTryCompileExec3942061042 -rdynamic -lpthreads
  47. /usr/bin/ld: cannot find -lpthreads
  48. collect2: error: ld returned 1 exit status
  49. make[1]: Leaving directory `/home/naor/Desktop/glfw-3.1.1/CMakeFiles/CMakeTmp'
  50. make[1]: *** [cmTryCompileExec3942061042] Error 1
  51. make: *** [cmTryCompileExec3942061042/fast] Error 2
Advertisement
Add Comment
Please, Sign In to add comment