Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /home/alexis/dfhack-0.47.03-alpha0/build/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:"/usr/bin/ninja" "cmTC_2cf74"
  5. [1/2] Building C object CMakeFiles/cmTC_2cf74.dir/CheckSymbolExists.c.o
  6. [2/2] Linking C executable cmTC_2cf74
  7. FAILED: cmTC_2cf74
  8. : && /usr/bin/cc -fvisibility=hidden -mtune=generic -m64 -mno-avx -rdynamic CMakeFiles/cmTC_2cf74.dir/CheckSymbolExists.c.o -o cmTC_2cf74 && :
  9. CMakeFiles/cmTC_2cf74.dir/CheckSymbolExists.c.o: In function `main':
  10. CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
  11. collect2: error: ld returned 1 exit status
  12. ninja: build stopped: subcommand failed.
  13.  
  14. File /home/alexis/dfhack-0.47.03-alpha0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  15. /* */
  16. #include <pthread.h>
  17.  
  18. int main(int argc, char** argv)
  19. {
  20. (void)argv;
  21. #ifndef pthread_create
  22. return ((int*)(&pthread_create))[argc];
  23. #else
  24. (void)argc;
  25. return 0;
  26. #endif
  27. }
  28.  
  29. Determining if the function pthread_create exists in the pthreads failed with the following output:
  30. Change Dir: /home/alexis/dfhack-0.47.03-alpha0/build/CMakeFiles/CMakeTmp
  31.  
  32. Run Build Command:"/usr/bin/ninja" "cmTC_b7266"
  33. [1/2] Building C object CMakeFiles/cmTC_b7266.dir/CheckFunctionExists.c.o
  34. [2/2] Linking C executable cmTC_b7266
  35. FAILED: cmTC_b7266
  36. : && /usr/bin/cc -fvisibility=hidden -mtune=generic -m64 -mno-avx -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_b7266.dir/CheckFunctionExists.c.o -o cmTC_b7266 -lpthreads && :
  37. /usr/bin/ld: cannot find -lpthreads
  38. collect2: error: ld returned 1 exit status
  39. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement