caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Newest build (37d1f91) fails to compile, but last month's works fine?

Open Booley opened this issue 10 years ago • 10 comments

I'm having trouble compiling the current commit, 37d1f915f966954401a49243503076fcc172a027. I switched to 6d111088ba7f8721f0d17f3a11cf33e1c4dd52c3 (Jan. 26) and it compiles perfectly fine, so I think something changed since then. Specifically, I'm compiling on OSX with OpenBLAS and with CPU_ONLY option. If I try to use the latest commit, I get this error:

CXX/LD -o .build_release/tools/caffe.bin
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
  "caffe::Net<float>::Forward(float*)", referenced from:
      test() in caffe.o
      time() in caffe.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/tools/caffe.bin] Error 1

This does not occur when compiling last month's build, which I'll continue to use. However, it would be nice to remain up to date. Any ideas on what could be causing this?

Booley avatar Mar 02 '16 12:03 Booley

+1, I have the same issue and I don't know know how to tackle with it. Does anyone have any idea?

yutkin avatar Mar 05 '16 20:03 yutkin

+1, reproduced the same issue on Arch Linux with GCC and OpenBLAS.

Enet4 avatar Mar 06 '16 13:03 Enet4

+1, I also have the same issue, also with OSX, openBLAS.

However, I also have the issue raised by yutkin where the previous commit mentioned above does not complete 'make test'.

jt86 avatar Mar 09 '16 10:03 jt86

Well, I can compile both all and test targets while in commit 6d11108. #3779 may have a different cause.

Enet4 avatar Mar 09 '16 10:03 Enet4

Seems like #3211 could be the culprit?

As a next, more radical step the Forward + bottoms ForwardPrefilled() interface is done away with. @shelhamer https://github.com/BVLC/caffe/pull/3211#issue-111983472

But it looks like those functions should have been restored. Maybe it wasn't done properly?

dropping the methods all at once is too jarring. I'll relax to a deprecation warning, although I do look forward to the day we can clear the old code. @shelhamer https://github.com/BVLC/caffe/pull/3211#issuecomment-189507018

lukeyeager avatar Mar 09 '16 17:03 lukeyeager

@lukeyeager thanks for pointing that out -- it could be the cause.

If somebody in this thread can check out master before #3211 and see if that fixes the issue I can look into it next week the latest.

shelhamer avatar Mar 09 '16 19:03 shelhamer

If somebody in this thread can check out master before #3211 and see if that fixes the issue I can look into it next week the latest.

I just checked fe0f441 out (it seems to be the commit just before the troubling branch) and successfully compiled all and test in it (used Makefile).

Enet4 avatar Mar 09 '16 19:03 Enet4

Can everybody comment whether you are using the Makefile or CMake? I'm compiling + running master @ 6ed3b2a Caffe in CPU-only mode on OS X El Cap with Atlas by the Makefile without trouble so I'm trying to understand the issue. I've never made the CMake build work on OS X. Are you all doing make clean?

Net::Forward() is certainly still there https://github.com/BVLC/caffe/blob/master/include/caffe/net.hpp#L38.

shelhamer avatar Mar 09 '16 20:03 shelhamer

@shelhamer I've just tried to compile latest commit. I'm using make clean && make all and openBLAS. Errors have not disappeared. Full log here: https://gist.github.com/yutkin/a8d6883f10c5f5884526

yutkin avatar Mar 09 '16 20:03 yutkin

@shelhamer I have been able to compile make all, make test and make runtest now. Thanks a lot. (OSX 10.9.5, CPU_only, using make not CMake)

jt86 avatar Mar 14 '16 16:03 jt86