Error in caffe - MATLAB wrapper

440 views
Skip to first unread message

sri

unread,
Feb 24, 2015, 2:47:00 PM2/24/15
to caffe...@googlegroups.com
Hi,

I've compiled caffe on a linux server, I also tried "make runtest", it was successful. The last line was something like: 1026 tests from 190 test cases ran. (137660 ms total)

[  PASSED  ] 1026 tests. However, when I tried "make matcaffe" for the MATLAB wrapper, I get the following error:

.build_release/lib/libcaffe.a(internal_thread.o): In function `boost::thread_resource_error::thread_resource_error()':

internal_thread.cpp:(.text._ZN5boost21thread_resource_errorC2Ev[_ZN5boost21thread_resource_errorC5Ev]+0x9): undefined reference to `boost::system::system_category()'

.build_release/lib/libcaffe.a(internal_thread.o): In function `boost::thread_resource_error::thread_resource_error(int, char const*)':

internal_thread.cpp:(.text._ZN5boost21thread_resource_errorC2EiPKc[_ZN5boost21thread_resource_errorC5EiPKc]+0x1c): undefined reference to `boost::system::system_category()'

.build_release/lib/libcaffe.a(internal_thread.o): In function `_GLOBAL__sub_I_internal_thread.cpp':

internal_thread.cpp:(.text.startup+0x2): undefined reference to `boost::system::generic_category()'

internal_thread.cpp:(.text.startup+0xe): undefined reference to `boost::system::generic_category()'

internal_thread.cpp:(.text.startup+0x1a): undefined reference to `boost::system::system_category()'

collect2: error: ld returned 1 exit status

    mex: link of ' "matlab/caffe/caffe..mexa64"' failed.

----

OS: RHEL 6.5

MATLAB version - R2013a

I have configured all the system paths appropriately. An important thing to note is that I do not have sudo access on the server, I've compiled all the pre-requisites locally and linked them. The path to the boost libraries has been included in both bash and Makefile.config. Also, the boost library I've compiled is version 1.55.0. Can someone help me out ? Any help would be much appreciated. 

Thanks,

Sri


xksteven

unread,
May 16, 2015, 8:10:01 PM5/16/15
to caffe...@googlegroups.com
Did you manage to figure out this issue?  I just ran into it (or something similar) myself.  


Building with 'g++'.
.build_release/lib/libcaffe.a(internal_thread.o): In function `global constructors keyed to internal_thread.cpp':
internal_thread.cpp:(.text+0x27): undefined reference to `boost::system::generic_category()'
internal_thread.cpp:(.text+0x33): undefined reference to `boost::system::generic_category()'
internal_thread.cpp:(.text+0x3f): undefined reference to `boost::system::system_category()'
.build_release/lib/libcaffe.a(internal_thread.o): In function `caffe::InternalThread::WaitForInternalThreadToExit()':
internal_thread.cpp:(.text+0x161): undefined reference to `boost::system::system_category()'
.build_release/lib/libcaffe.a(internal_thread.o): In function `caffe::InternalThread::StartInternalThread()':
internal_thread.cpp:(.text+0x391): undefined reference to `boost::system::system_category()'
.build_release/lib/libcaffe.a(internal_thread.o): In function `boost::thread_exception::thread_exception(int, char const*)':
internal_thread.cpp:(.text._ZN5boost16thread_exceptionC2EiPKc[_ZN5boost16thread_exceptionC5EiPKc]+0x27): undefined reference to `boost::system::system_category()'
collect2: ld returned 1 exit status

make: *** [matlab/caffe/caffe.mexa64] Error 255
Reply all
Reply to author
Forward
0 new messages