Installation Problem on Ubuntu 16.04

98 views
Skip to first unread message

Soham Sinha

unread,
Feb 13, 2017, 5:38:09 PM2/13/17
to Caffe Users
I am getting the following error when I do make all.

CXX/LD -o .build_release/tools/extract_features.bin
.build_release/tools/extract_features.o: In function `void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag) [clone .isra.125]':
extract_features.cpp:(.text+0x89): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
.build_release/tools/extract_features.o: In function `boost::system::system_error::what() const':
extract_features.cpp:(.text._ZNK5boost6system12system_error4whatEv[_ZNK5boost6system12system_error4whatEv]+0x74): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)'
....
....
....
many lines
...
.build_release/lib/libcaffe.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const'
.build_release/lib/libcaffe.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgflags.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libglog.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
.build_release/lib/libcaffe.so: undefined reference to `std::out_of_range::out_of_range(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
Makefile:768: recipe for target '.build_release/tools/extract_features.bin' failed


Any idea what I can do?
The problem doesn't come if I cmake first and then do make all. But then make runtest fails for 20 tests. Some of them are:
[  FAILED  ] RMSPropSolverTest/3.TestLeastSquaresUpdateWithEverythingAccum, where TypeParam = caffe::GPUDevice<double>
[  FAILED  ] RMSPropSolverTest/3.TestSnapshot, where TypeParam = caffe::GPUDevice<double>
[  FAILED  ] RMSPropSolverTest/3.TestRMSPropLeastSquaresUpdateWithRmsDecay, where TypeParam = caffe::GPUDevice<double>


That's why I was trying make all. However, this gives the error described above. My makefile config uses viennacl, greentea.
Reply all
Reply to author
Forward
0 new messages