make test error after make

812 views
Skip to first unread message

Mansi Rankawat

unread,
Jun 20, 2015, 5:39:20 PM6/20/15
to caffe...@googlegroups.com
Hi everyone,

I am installing Caffe on a cluster without root access. I am successfully able to run make but running make test gives me the following error:

CXX/LD -o .build_release/test/test_all.testbin src/caffe/test/test_caffe_main.cpp
.build_release/src/gtest/gtest-all.o: In function `testing::internal::RE::PartialMatch(char const*, testing::internal::RE const&)':
gtest-all.cpp:(.text+0x13c2): undefined reference to `regexecA'
.build_release/src/gtest/gtest-all.o: In function `testing::internal::RE::FullMatch(char const*, testing::internal::RE const&)':
gtest-all.cpp:(.text+0x13f2): undefined reference to `regexecA'
.build_release/src/gtest/gtest-all.o: In function `testing::internal::RE::~RE()':
gtest-all.cpp:(.text+0x141d): undefined reference to `regfreeA'
gtest-all.cpp:(.text+0x1426): undefined reference to `regfreeA'
.build_release/src/gtest/gtest-all.o: In function `testing::internal::RE::Init(char const*)':
gtest-all.cpp:(.text+0xdc0a): undefined reference to `regcompA'
gtest-all.cpp:(.text+0xdc35): undefined reference to `regcompA'
collect2: ld returned 1 exit status
make: *** [.build_release/test/test_all.testbin] Error 1

Any help as to what can be done in this case will really be appreciated!!

Thanks,
Mansi

JS

unread,
Sep 22, 2015, 11:57:25 AM9/22/15
to Caffe Users
Did this ever get resolved?  I am experiencing the same problem.

Jeremy Rutman

unread,
Nov 30, 2015, 12:25:51 PM11/30/15
to Caffe Users
me three...

Silmarilli

unread,
Dec 10, 2015, 5:48:40 PM12/10/15
to Caffe Users
I ran into the same problem. are regfreeA, regexecA and regcompA boost definitions? 

Silmarilli

unread,
Dec 10, 2015, 10:32:35 PM12/10/15
to Caffe Users
I think the cause is the google tests is looking for the generic regex.h but cmake used the regex.h from boost. and boost is not linked. 
I'm not sure how to fix it properly but renaming /usr/local/include/boost/regex.h temporarily to something else fix the problem.


Reply all
Reply to author
Forward
0 new messages