SHARE
TWEET

cMakeError.log

Light1992 Jun 25th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
  2. Change Dir: /home/genomica/DATA/Software/salmon/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command(s):/usr/bin/gmake cmTC_4fc56/fast && /usr/bin/gmake -f CMakeFiles/cmTC_4fc56.dir/build.make CMakeFiles/cmTC_4fc56.dir/build
  5. gmake[1]: Entering directory `/mnt/d8e73111-db5e-4011-87aa-e4d64fb8c1e9/DATA/Software/salmon/CMakeFiles/CMakeTmp'
  6. Building C object CMakeFiles/cmTC_4fc56.dir/src.c.o
  7. /usr/bin/cc   -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_4fc56.dir/src.c.o   -c /home/genomica/DATA/Software/salmon/CMakeFiles/CMakeTmp/src.c
  8. Linking C executable cmTC_4fc56
  9. /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4fc56.dir/link.txt --verbose=1
  10. /usr/bin/cc  -DCMAKE_HAVE_LIBC_PTHREAD    CMakeFiles/cmTC_4fc56.dir/src.c.o  -o cmTC_4fc56
  11. CMakeFiles/cmTC_4fc56.dir/src.c.o: nella funzione "main":
  12. src.c:(.text+0x2d): riferimento non definito a "pthread_create"
  13. src.c:(.text+0x39): riferimento non definito a "pthread_detach"
  14. src.c:(.text+0x4a): riferimento non definito a "pthread_join"
  15. src.c:(.text+0x5e): riferimento non definito a "pthread_atfork"
  16. collect2: error: ld returned 1 exit status
  17. gmake[1]: *** [cmTC_4fc56] Errore 1
  18. gmake[1]: Leaving directory `/mnt/d8e73111-db5e-4011-87aa-e4d64fb8c1e9/DATA/Software/salmon/CMakeFiles/CMakeTmp'
  19. gmake: *** [cmTC_4fc56/fast] Errore 2
  20.  
  21.  
  22. Source file was:
  23. #include <pthread.h>
  24.  
  25. void* test_func(void* data)
  26. {
  27.   return data;
  28. }
  29.  
  30. int main(void)
  31. {
  32.   pthread_t thread;
  33.   pthread_create(&thread, NULL, test_func, NULL);
  34.   pthread_detach(thread);
  35.   pthread_join(thread, NULL);
  36.   pthread_atfork(NULL, NULL, NULL);
  37.   pthread_exit(NULL);
  38.  
  39.   return 0;
  40. }
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