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/user/caffe/build/CMakeFiles/CMakeTmp
- Run Build Command(s):/usr/local/bin/gmake -f Makefile cmTC_684f7/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_684f7.dir/build.make CMakeFiles/cmTC_684f7.dir/build
- gmake[1]: Entering directory '/usr/home/user/caffe/build/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_684f7.dir/src.c.o
- /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -MD -MT CMakeFiles/cmTC_684f7.dir/src.c.o -MF CMakeFiles/cmTC_684f7.dir/src.c.o.d -o CMakeFiles/cmTC_684f7.dir/src.c.o -c /home/user/caffe/build/CMakeFiles/CMakeTmp/src.c
- Linking C executable cmTC_684f7
- /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_684f7.dir/link.txt --verbose=1
- /usr/bin/cc CMakeFiles/cmTC_684f7.dir/src.c.o -o cmTC_684f7
- ld: error: undefined symbol: pthread_create
- >>> referenced by src.c
- >>> CMakeFiles/cmTC_684f7.dir/src.c.o:(main)
- cc: error: linker command failed with exit code 1 (use -v to see invocation)
- gmake[1]: *** [CMakeFiles/cmTC_684f7.dir/build.make:100: cmTC_684f7] Error 1
- gmake[1]: Leaving directory '/usr/home/user/caffe/build/CMakeFiles/CMakeTmp'
- gmake: *** [Makefile:127: cmTC_684f7/fast] Error 2
- Source file was:
- #include <pthread.h>
- static void* test_func(void* data)
- {
- return data;
- }
- int main(void)
- {
- pthread_t thread;
- pthread_create(&thread, NULL, test_func, NULL);
- pthread_detach(thread);
- pthread_cancel(thread);
- pthread_join(thread, NULL);
- pthread_atfork(NULL, NULL, NULL);
- pthread_exit(NULL);
- return 0;
- }
- Determining if the function pthread_create exists in the pthreads failed with the following output:
- Change Dir: /home/user/caffe/build/CMakeFiles/CMakeTmp
- Run Build Command(s):/usr/local/bin/gmake -f Makefile cmTC_213ee/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_213ee.dir/build.make CMakeFiles/cmTC_213ee.dir/build
- gmake[1]: Entering directory '/usr/home/user/caffe/build/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_213ee.dir/CheckFunctionExists.c.o
- /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -MD -MT CMakeFiles/cmTC_213ee.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_213ee.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_213ee.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake/Modules/CheckFunctionExists.c
- Linking C executable cmTC_213ee
- /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_213ee.dir/link.txt --verbose=1
- /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_213ee.dir/CheckFunctionExists.c.o -o cmTC_213ee -lpthreads
- ld: error: unable to find library -lpthreads
- cc: error: linker command failed with exit code 1 (use -v to see invocation)
- gmake[1]: *** [CMakeFiles/cmTC_213ee.dir/build.make:100: cmTC_213ee] Error 1
- gmake[1]: Leaving directory '/usr/home/user/caffe/build/CMakeFiles/CMakeTmp'
- gmake: *** [Makefile:127: cmTC_213ee/fast] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement