caffe icon indicating copy to clipboard operation
caffe copied to clipboard

caffe make error while compiling

Open ghost opened this issue 5 years ago • 1 comments

Hi. I am trying to make caffe and I am getting following error. Can anyone help me to solve the problem? I have attached my Makefile.config file.

/usr/bin/ld: /usr/local/lib/libleveldb.a(db_impl.cc.o): relocation R_X86_64_32 against `_ZTVN7leveldb6DBImplE' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libleveldb.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:582: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1

I have tried both configs and I get same error:

  • Operating system: ubuntu 16.04
  • CUDA version:10.2
  • CUDNN version: 7

and

  • Operating system: ubuntu 16.04
  • CUDA version:8
  • CUDNN version: 5

Makefile.config.zip

ghost avatar Jun 04 '20 02:06 ghost

Did you find a fix?

astropiu avatar Nov 17 '20 14:11 astropiu