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_8057b/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_8057b.dir/build.make CMakeFiles/cmTC_8057b.dir/build
- gmake[1]: Entering directory '/usr/home/user/caffe/build/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_8057b.dir/src.c.o
- /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -MD -MT CMakeFiles/cmTC_8057b.dir/src.c.o -MF CMakeFiles/cmTC_8057b.dir/src.c.o.d -o CMakeFiles/cmTC_8057b.dir/src.c.o -c /home/user/caffe/build/CMakeFiles/CMakeTmp/src.c
- Linking C executable cmTC_8057b
- /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8057b.dir/link.txt --verbose=1
- /usr/bin/cc CMakeFiles/cmTC_8057b.dir/src.c.o -o cmTC_8057b
- ld: error: undefined symbol: pthread_create
- >>> referenced by src.c
- >>> CMakeFiles/cmTC_8057b.dir/src.c.o:(main)
- cc: error: linker command failed with exit code 1 (use -v to see invocation)
- gmake[1]: *** [CMakeFiles/cmTC_8057b.dir/build.make:100: cmTC_8057b] Error 1
- gmake[1]: Leaving directory '/usr/home/user/caffe/build/CMakeFiles/CMakeTmp'
- gmake: *** [Makefile:127: cmTC_8057b/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_a202e/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_a202e.dir/build.make CMakeFiles/cmTC_a202e.dir/build
- gmake[1]: Entering directory '/usr/home/user/caffe/build/CMakeFiles/CMakeTmp'
- Building C object CMakeFiles/cmTC_a202e.dir/CheckFunctionExists.c.o
- /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -MD -MT CMakeFiles/cmTC_a202e.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_a202e.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_a202e.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake/Modules/CheckFunctionExists.c
- Linking C executable cmTC_a202e
- /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a202e.dir/link.txt --verbose=1
- /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_a202e.dir/CheckFunctionExists.c.o -o cmTC_a202e -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_a202e.dir/build.make:100: cmTC_a202e] Error 1
- gmake[1]: Leaving directory '/usr/home/user/caffe/build/CMakeFiles/CMakeTmp'
- gmake: *** [Makefile:127: cmTC_a202e/fast] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement