mathmanu / caffe-jacinto

This repository has moved. The new link can be obtained from https://github.com/TexasInstruments/jacinto-ai-devkit
116 stars 35 forks source link

error occur while compilation #32

Open shiva13425 opened 5 years ago

shiva13425 commented 5 years ago

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.

mathmanu commented 5 years ago

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

shiva13425 commented 5 years ago

@mathmanu Thanks.