daily pastebin goal
20%
SHARE
TWEET

Cmake Error Solarus

a guest Aug 18th, 2016 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Determining if the pthread_create exist failed with the following output:
  2. Change Dir: /tmp/yaourt-tmp-jan/aur-solarus/src/solarus-1.5.0/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:"/usr/bin/make" "cmTC_e893a/fast"
  5. /usr/bin/make -f CMakeFiles/cmTC_e893a.dir/build.make CMakeFiles/cmTC_e893a.dir/build
  6. make[1]: Verzeichnis „/tmp/yaourt-tmp-jan/aur-solarus/src/solarus-1.5.0/CMakeFiles/CMakeTmp“ wird betreten
  7. Building C object CMakeFiles/cmTC_e893a.dir/CheckSymbolExists.c.o
  8. /usr/bin/cc    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong     -o CMakeFiles/cmTC_e893a.dir/CheckSymbolExists.c.o   -c /tmp/yaourt-tmp-jan/aur-solarus/src/solarus-1.5.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c
  9. Linking C executable cmTC_e893a
  10. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e893a.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_e893a.dir/CheckSymbolExists.c.o  -o cmTC_e893a -rdynamic
  12. CMakeFiles/cmTC_e893a.dir/CheckSymbolExists.c.o: In function `main':
  13. CheckSymbolExists.c:(.text.startup+0x6): undefined reference to `pthread_create'
  14. collect2: Fehler: ld gab 1 als Ende-Status zurück
  15. make[1]: *** [CMakeFiles/cmTC_e893a.dir/build.make:98: cmTC_e893a] Fehler 1
  16. make[1]: Verzeichnis „/tmp/yaourt-tmp-jan/aur-solarus/src/solarus-1.5.0/CMakeFiles/CMakeTmp“ wird verlassen
  17. make: *** [Makefile:126: cmTC_e893a/fast] Fehler 2
  18.  
  19. File /tmp/yaourt-tmp-jan/aur-solarus/src/solarus-1.5.0/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-jan/aur-solarus/src/solarus-1.5.0/CMakeFiles/CMakeTmp
  36.  
  37. Run Build Command:"/usr/bin/make" "cmTC_992f7/fast"
  38. /usr/bin/make -f CMakeFiles/cmTC_992f7.dir/build.make CMakeFiles/cmTC_992f7.dir/build
  39. make[1]: Verzeichnis „/tmp/yaourt-tmp-jan/aur-solarus/src/solarus-1.5.0/CMakeFiles/CMakeTmp“ wird betreten
  40. Building C object CMakeFiles/cmTC_992f7.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_992f7.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.6/Modules/CheckFunctionExists.c
  42. Linking C executable cmTC_992f7
  43. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_992f7.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_992f7.dir/CheckFunctionExists.c.o  -o cmTC_992f7 -rdynamic -lpthreads
  45. /usr/bin/ld: cannot find -lpthreads
  46. collect2: Fehler: ld gab 1 als Ende-Status zurück
  47. make[1]: *** [CMakeFiles/cmTC_992f7.dir/build.make:98: cmTC_992f7] Fehler 1
  48. make[1]: Verzeichnis „/tmp/yaourt-tmp-jan/aur-solarus/src/solarus-1.5.0/CMakeFiles/CMakeTmp“ wird verlassen
  49. make: *** [Makefile:126: cmTC_992f7/fast] Fehler 2
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top