Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
- Change Dir: /home/genomica/DATA/Software/salmon/CMakeFiles/CMakeTmp
- 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
- gmake[1]: Entering directory `/mnt/d8e73111-db5e-4011-87aa-e4d64fb8c1e9/DATA/Software/salmon/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_4fc56.dir/src.c.o
- /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
- Linking C executable cmTC_4fc56
- /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4fc56.dir/link.txt --verbose=1
- /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_4fc56.dir/src.c.o -o cmTC_4fc56
- CMakeFiles/cmTC_4fc56.dir/src.c.o: nella funzione "main":
- src.c:(.text+0x2d): riferimento non definito a "pthread_create"
- src.c:(.text+0x39): riferimento non definito a "pthread_detach"
- src.c:(.text+0x4a): riferimento non definito a "pthread_join"
- src.c:(.text+0x5e): riferimento non definito a "pthread_atfork"
- collect2: error: ld returned 1 exit status
- gmake[1]: *** [cmTC_4fc56] Errore 1
- gmake[1]: Leaving directory `/mnt/d8e73111-db5e-4011-87aa-e4d64fb8c1e9/DATA/Software/salmon/CMakeFiles/CMakeTmp'
- gmake: *** [cmTC_4fc56/fast] Errore 2
- Source file was:
- #include <pthread.h>
- void* test_func(void* data)
- {
- return data;
- }
- int main(void)
- {
- pthread_t thread;
- pthread_create(&thread, NULL, test_func, NULL);
- pthread_detach(thread);
- pthread_join(thread, NULL);
- pthread_atfork(NULL, NULL, NULL);
- pthread_exit(NULL);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement