../lib/libcaffe.so.1.0.0-rc5: undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'

363 views
Skip to first unread message

Rohit Malhotra

unread,
Jun 12, 2017, 5:41:36 PM6/12/17
to Caffe Users
I'm installing caffe on Ubuntu 16.04, with gcc version 5.4 and CUDA 8.0. I'm getting the following error while trying the installation with make all using cmake. 

CMakeFiles/compute_image_mean.dir/compute_image_mean.cpp.o: In function `_GLOBAL__sub_I_compute_image_mean.cpp':

compute_image_mean.cpp:(.text.startup+0x16d): undefined reference to `google::FlagRegisterer::FlagRegisterer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'

CMakeFiles/compute_image_mean.dir/compute_image_mean.cpp.o: In function `main':

compute_image_mean.cpp:(.text.startup+0x218): undefined reference to `google::SetUsageMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

CMakeFiles/compute_image_mean.dir/compute_image_mean.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >* google::MakeCheckOpString<int, int>(int const&, int const&, char const*)':

compute_image_mean.cpp:(.text._ZN6google17MakeCheckOpStringIiiEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIiiEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x50): undefined reference to `google::base::CheckOpMessageBuilder::NewString[abi:cxx11]()'

CMakeFiles/compute_image_mean.dir/compute_image_mean.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >* google::MakeCheckOpString<unsigned long, int>(unsigned long const&, int const&, char const*)':

compute_image_mean.cpp:(.text._ZN6google17MakeCheckOpStringImiEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN6google17MakeCheckOpStringImiEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x50): undefined reference to `google::base::CheckOpMessageBuilder::NewString[abi:cxx11]()'

../lib/libcaffe.so.1.0.0-rc5: undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'

../lib/libcaffe.so.1.0.0-rc5: undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, leveldb::DB**)'

collect2: error: ld returned 1 exit status

tools/CMakeFiles/compute_image_mean.dir/build.make:132: recipe for target 'tools/compute_image_mean' failed

make[2]: *** [tools/compute_image_mean] Error 1

CMakeFiles/Makefile2:473: recipe for target 'tools/CMakeFiles/compute_image_mean.dir/all' failed

make[1]: *** [tools/CMakeFiles/compute_image_mean.dir/all] Error 2

Reply all
Reply to author
Forward
0 new messages