caffe-jacinto icon indicating copy to clipboard operation
caffe-jacinto copied to clipboard

error occur while compilation

Open shiva13425 opened this issue 6 years ago • 2 comments

Hi, While compiling am getting the following error: command used : make -j4

AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.0.17.0 /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libturbojpeg.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status Makefile:600: recipe for target '.build_release/lib/libcaffe.so.0.17.0' failed make: *** [.build_release/lib/libcaffe.so.0.17.0] Error 1 make: *** Waiting for unfinished jobs....

Note: while compiling with cmake its fine.

Kindly share your comments to fix it. Thanks.

shiva13425 avatar Feb 25 '19 12:02 shiva13425

Please see these links: https://github.com/NVIDIA/caffe/issues/549 https://github.com/NVIDIA/caffe#useful-notes

mathmanu avatar Feb 25 '19 12:02 mathmanu

@mathmanu Thanks.

shiva13425 avatar Feb 25 '19 12:02 shiva13425