Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.73 KB | None | 0 0
  1. cmake output:
  2. -- Looking for include file pthread.h
  3. -- Looking for include file pthread.h - found
  4. -- Looking for pthread_create
  5. -- Looking for pthread_create - not found
  6. -- Looking for pthread_create in pthreads
  7. -- Looking for pthread_create in pthreads - not found
  8. -- Looking for pthread_create in pthread
  9. -- Looking for pthread_create in pthread - found
  10.  
  11. CMakeError.log
  12. Determining if the pthread_create exist failed with the following output:
  13. Change Dir: /home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp
  14.  
  15. Run Build Command:/usr/bin/make "cmTryCompileExec462969063/fast"
  16. /usr/bin/make -f CMakeFiles/cmTryCompileExec462969063.dir/build.make CMakeFiles/cmTryCompileExec462969063.dir/build
  17. make[1]: Entering directory `/home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp'
  18. /usr/local/bin/cmake -E cmake_progress_report /home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp/CMakeFiles 1
  19. Building C object CMakeFiles/cmTryCompileExec462969063.dir/CheckSymbolExists.c.o
  20. /usr/bin/cc   -std=gnu99 -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors    -o CMakeFiles/cmTryCompileExec462969063.dir/CheckSymbolExists.c.o   -c /home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  21. Linking C executable cmTryCompileExec462969063
  22. /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec462969063.dir/link.txt --verbose=1
  23. /usr/bin/cc   -std=gnu99 -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors     CMakeFiles/cmTryCompileExec462969063.dir/CheckSymbolExists.c.o  -o cmTryCompileExec462969063 -rdynamic
  24. CMakeFiles/cmTryCompileExec462969063.dir/CheckSymbolExists.c.o: In function `main':
  25. CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
  26. collect2: error: ld returned 1 exit status
  27. make[1]: *** [cmTryCompileExec462969063] Error 1
  28. make[1]: Leaving directory `/home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp'
  29. make: *** [cmTryCompileExec462969063/fast] Error 2
  30.  
  31. File /home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  32. /* */
  33. #include <pthread.h>
  34.  
  35. int main(int argc, char** argv)
  36. {
  37.   (void)argv;
  38. #ifndef pthread_create
  39.   return ((int*)(&pthread_create))[argc];
  40. #else
  41.   (void)argc;
  42.   return 0;
  43. #endif
  44. }
  45.  
  46. Determining if the function pthread_create exists in the pthreads failed with the following output:
  47. Change Dir: /home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp
  48.  
  49. Run Build Command:/usr/bin/make "cmTryCompileExec4162611473/fast"
  50. /usr/bin/make -f CMakeFiles/cmTryCompileExec4162611473.dir/build.make CMakeFiles/cmTryCompileExec4162611473.dir/build
  51. make[1]: Entering directory `/home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp'
  52. /usr/local/bin/cmake -E cmake_progress_report /home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp/CMakeFiles 1
  53. Building C object CMakeFiles/cmTryCompileExec4162611473.dir/CheckFunctionExists.c.o
  54. /usr/bin/cc   -std=gnu99 -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec4162611473.dir/CheckFunctionExists.c.o   -c /usr/local/share/cmake-2.8/Modules/CheckFunctionExists.c
  55. Linking C executable cmTryCompileExec4162611473
  56. /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4162611473.dir/link.txt --verbose=1
  57. /usr/bin/cc   -std=gnu99 -W -Wall -Wextra -Winit-self -Winvalid-pch -Wfatal-errors -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec4162611473.dir/CheckFunctionExists.c.o  -o cmTryCompileExec4162611473 -rdynamic -lpthreads
  58. /usr/bin/ld: cannot find -lpthreads
  59. collect2: error: ld returned 1 exit status
  60. make[1]: *** [cmTryCompileExec4162611473] Error 1
  61. make[1]: Leaving directory `/home/nikno/tc/TrinityCore/builddir/CMakeFiles/CMakeTmp'
  62. make: *** [cmTryCompileExec4162611473/fast] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement