Caffe: 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

Created on 25 Mar 2016  路  2Comments  路  Source: BVLC/caffe

I got this error message when trying to make caffe in OSX 10.11.1

1 warning generated.
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
  "caffe::P2PSync<float>::Run(std::__1::vector<int, std::__1::allocator<int> > const&)", referenced from:
      train() 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

Please advice. Thank you.

Most helpful comment

I had exactly the same problem. Its now resolved.
Do check if you already have a libcaffe.so in your system library paths (maybe /usr/local/lib). If so, delete the existing libcaffe.so and build again.

All 2 comments

You can look at this reference: https://github.com/BVLC/caffe/issues/2307

I had exactly the same problem. Its now resolved.
Do check if you already have a libcaffe.so in your system library paths (maybe /usr/local/lib). If so, delete the existing libcaffe.so and build again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prathmeshrmadhu picture prathmeshrmadhu  路  3Comments

serimp picture serimp  路  3Comments

sdemyanov picture sdemyanov  路  3Comments

Ruhjkg picture Ruhjkg  路  3Comments

malreddysid picture malreddysid  路  3Comments