Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build caffee #98

Open
aman-subscriptions opened this issue Mar 24, 2019 · 1 comment
Open

Unable to build caffee #98

aman-subscriptions opened this issue Mar 24, 2019 · 1 comment

Comments

@aman-subscriptions
Copy link

aman-subscriptions commented Mar 24, 2019

After overcoming initial issues with help from #84 and #86, I'm now stuck at building caffe.

To overcome issue with tornado SSL error, I installed python 2.7.9 as outlined in above mentioned issues. But nwo after fetching caffe source, the make install fails wiht following error:

/usr/bin/ld: /usr/local/lib/libpython2.7.a(object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libcaffe.so.1.0.0] Error 1
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
make: *** [all] Error 2

The command '/bin/sh -c git clone -b ${CAFFE_VERSION} --depth 1 https://github.com/BVLC/caffe.git /root/caffe && \
 cd /root/caffe && \      
cat python/requirements.txt | xargs -n1 pip install && \
mkdir build && cd build &&  \
cmake -DCPU_ONLY=1 -DBLAS=Open .. && \
make -j"$(nproc)" all &&  \
make install' 
returned a non-zero code: 2

I tried specifying -fPIC flag to cmake as well, but still getting the same error.

@OneCodeMonkey
Copy link

just drop it, add some # to some lines. I say if you don't need to install it. This project has long been nobody maintained, so it's hard to solve this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants