caffe
caffe copied to clipboard
CMake Error at cmake/ConfigGen.cmake:95 (list)
I am build issue in caffe-ssd
Caffe error: CMake Error at cmake/ConfigGen.cmake:95 (list): list sub-command REMOVE_ITEM requires two or more arguments. Call Stack (most recent call first): CMakeLists.txt:92 (caffe_generate_export_configs)
Error log:
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/nithish/python/SSD/caffe/build_ssd/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_3056e/fast
/usr/bin/make -f CMakeFiles/cmTC_3056e.dir/build.make CMakeFiles/cmTC_3056e.dir/build
make[1]: Entering directory '/home/nithish/python/SSD/caffe/build_ssd/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3056e.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_3056e.dir/CheckSymbolExists.c.o -c /home/nithish/python/SSD/caffe/build_ssd/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_3056e
/home/nithish/my_install/cmake/cmake-3.14.0-rc4-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3056e.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_3056e.dir/CheckSymbolExists.c.o -o cmTC_3056e
CMakeFiles/cmTC_3056e.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_3056e.dir/build.make:86: recipe for target 'cmTC_3056e' failed
make[1]: *** [cmTC_3056e] Error 1
make[1]: Leaving directory '/home/nithish/python/SSD/caffe/build_ssd/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_3056e/fast' failed
make: *** [cmTC_3056e/fast] Error 2
File /home/nithish/python/SSD/caffe/build_ssd/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/nithish/python/SSD/caffe/build_ssd/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_f25e6/fast
/usr/bin/make -f CMakeFiles/cmTC_f25e6.dir/build.make CMakeFiles/cmTC_f25e6.dir/build
make[1]: Entering directory '/home/nithish/python/SSD/caffe/build_ssd/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f25e6.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_f25e6.dir/CheckFunctionExists.c.o -c /home/nithish/my_install/cmake/cmake-3.14.0-rc4-Linux-x86_64/share/cmake-3.14/Modules/CheckFunctionExists.c
Linking C executable cmTC_f25e6
/home/nithish/my_install/cmake/cmake-3.14.0-rc4-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f25e6.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_f25e6.dir/CheckFunctionExists.c.o -o cmTC_f25e6 -lpthreads
/usr/bin/x86_64-linux-gnu-ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_f25e6.dir/build.make:86: recipe for target 'cmTC_f25e6' failed
make[1]: *** [cmTC_f25e6] Error 1
make[1]: Leaving directory '/home/nithish/python/SSD/caffe/build_ssd/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_f25e6/fast' failed
make: *** [cmTC_f25e6/fast] Error 2
Caffe Configuration Summary -- General: -- Version : 1.0.0-rc3 -- Git : ssdv1.0-dirty -- System : Linux -- C++ compiler : /usr/bin/c++ -- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized -- Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized -- Build type : Release
-- BUILD_SHARED_LIBS : ON -- BUILD_python : ON -- BUILD_matlab : OFF -- BUILD_docs : ON -- CPU_ONLY : OFF -- USE_OPENCV : ON -- USE_LEVELDB : ON -- USE_LMDB : ON -- ALLOW_LMDB_NOLOCK : OFF
-- Dependencies: -- BLAS : Yes (Atlas) -- Boost : Yes (ver. 1.65) -- glog : Yes -- gflags : Yes -- protobuf : Yes (ver. 3.0.0) -- lmdb : Yes (ver. 0.9.21) -- LevelDB : Yes (ver. 1.20) -- Snappy : Yes (ver. ..) -- OpenCV : Yes (ver. 3.2.0) -- CUDA : Yes (ver. 10.0)
-- NVIDIA CUDA: -- Target GPU(s) : Auto -- GPU arch(s) : sm_61 -- cuDNN : Yes (ver. 7.4.2)
-- Python: -- Interpreter : /home/nithish/my_install/miniconda3/envs/SSD/bin/python3 (ver. 3.6.8) -- Libraries : /home/nithish/my_install/miniconda3/envs/SSD/lib/libpython3.6m.so (ver 3.6.8) -- NumPy : /home/nithish/my_install/miniconda3/envs/SSD/lib/python3.6/site-packages/numpy/core/include (ver 1.16.2)
-- Documentaion: -- Doxygen : /usr/bin/doxygen (1.8.13) -- config_file : /home/nithish/python/SSD/caffe/.Doxyfile
-- Install: -- Install path : /home/nithish/python/SSD/caffe/build_ssd/install
Please address this