Advertisement
Guest User

CMakeError.log, building process-cpp 2017-04-12

a guest
Apr 12th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /tmp/yaourt-tmp-josh/aur-process-cpp/src/process-cpp-3.0.1/build/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:"/usr/bin/make" "cmTC_fc66f/fast"
  5. /usr/bin/make -f CMakeFiles/cmTC_fc66f.dir/build.make CMakeFiles/cmTC_fc66f.dir/build
  6. make[1]: Entering directory '/tmp/yaourt-tmp-josh/aur-process-cpp/src/process-cpp-3.0.1/build/CMakeFiles/CMakeTmp'
  7. Building C object CMakeFiles/cmTC_fc66f.dir/CheckSymbolExists.c.o
  8. /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -o CMakeFiles/cmTC_fc66f.dir/CheckSymbolExists.c.o -c /tmp/yaourt-tmp-josh/aur-process-cpp/src/process-cpp-3.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  9. Linking C executable cmTC_fc66f
  10. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fc66f.dir/link.txt --verbose=1
  11. /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wl,-O1,--sort-common,--as-needed,-z,relro CMakeFiles/cmTC_fc66f.dir/CheckSymbolExists.c.o -o cmTC_fc66f -rdynamic
  12. CMakeFiles/cmTC_fc66f.dir/CheckSymbolExists.c.o: In function `main':
  13. CheckSymbolExists.c:(.text.startup+0x6): undefined reference to `pthread_create'
  14. collect2: error: ld returned 1 exit status
  15. make[1]: *** [CMakeFiles/cmTC_fc66f.dir/build.make:98: cmTC_fc66f] Error 1
  16. make[1]: Leaving directory '/tmp/yaourt-tmp-josh/aur-process-cpp/src/process-cpp-3.0.1/build/CMakeFiles/CMakeTmp'
  17. make: *** [Makefile:126: cmTC_fc66f/fast] Error 2
  18.  
  19. File /tmp/yaourt-tmp-josh/aur-process-cpp/src/process-cpp-3.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
  20. /* */
  21. #include <pthread.h>
  22.  
  23. int main(int argc, char** argv)
  24. {
  25. (void)argv;
  26. #ifndef pthread_create
  27. return ((int*)(&pthread_create))[argc];
  28. #else
  29. (void)argc;
  30. return 0;
  31. #endif
  32. }
  33.  
  34. Determining if the function pthread_create exists in the pthreads failed with the following output:
  35. Change Dir: /tmp/yaourt-tmp-josh/aur-process-cpp/src/process-cpp-3.0.1/build/CMakeFiles/CMakeTmp
  36.  
  37. Run Build Command:"/usr/bin/make" "cmTC_5c953/fast"
  38. /usr/bin/make -f CMakeFiles/cmTC_5c953.dir/build.make CMakeFiles/cmTC_5c953.dir/build
  39. make[1]: Entering directory '/tmp/yaourt-tmp-josh/aur-process-cpp/src/process-cpp-3.0.1/build/CMakeFiles/CMakeTmp'
  40. Building C object CMakeFiles/cmTC_5c953.dir/CheckFunctionExists.c.o
  41. /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_5c953.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c
  42. Linking C executable cmTC_5c953
  43. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5c953.dir/link.txt --verbose=1
  44. /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1,--sort-common,--as-needed,-z,relro CMakeFiles/cmTC_5c953.dir/CheckFunctionExists.c.o -o cmTC_5c953 -rdynamic -lpthreads
  45. /usr/bin/ld: cannot find -lpthreads
  46. collect2: error: ld returned 1 exit status
  47. make[1]: *** [CMakeFiles/cmTC_5c953.dir/build.make:98: cmTC_5c953] Error 1
  48. make[1]: Leaving directory '/tmp/yaourt-tmp-josh/aur-process-cpp/src/process-cpp-3.0.1/build/CMakeFiles/CMakeTmp'
  49. make: *** [Makefile:126: cmTC_5c953/fast] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement