-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Caffe 1.0.0-rc3 make failed on Ubuntu 16.04 / CUDA 8.0 #4492
Comments
Your compiler is GCC 4.9 but the libraries in Ubuntu 15.10 ,16.04 repository is compiled with higher version(e.g. 5.2), so the protobuf lib is not compatible with your caffe. |
For 16.04 compile Caffe master and see #4046. From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:
|
I had a similar error which was not caused by an old GCC, but by an old protobuf version in my Anaconda install. |
I successfully solve the problem by recompile the protof with changed gcc ( I changed gcc from gcc5.4 to gcc4.8.5) |
[ 76%] Linking CXX executable ../bin/batch_matmul_op_gpu_test ../lib/libcaffe2.so: undefined reference to |
I changed gcc from gcc5.4 to gcc4.8.5), then I got: [ 76%] Linking CXX executable ../bin/batch_matmul_op_gpu_test |
Ubuntu 16.04, Caffe with CPU Only. |
@internetcoffeephone How you make caffe consider this protobuf from conda? |
@hana9090 It did this automatically, I made no effort to do it. I don't know how caffe found my Anaconda installation and decided it was the default python installation (it wasn't), sorry. |
use this commad and show your g++ version, switch g++ version 5 works for me |
What if I want to compile on Ubuntu 16 with gcc 4.8 for some reason, how to understand which versions of libs I need and which libs should be compiled from source? |
gcc 5 isn't a viable avenue if you hit this: #6010 (which is why I am using gcc-4.8 and hit the OP's issue today). Also rebuilding selected libraries with a different gcc may cause runtime issues with previously installed software? (e.g. other ML frameworks) |
@toby5box did you ever find a solution for this? I'm hitting the same |
Sorry @adataylor I do not think I did. |
I am trying to build caffe based on the update to date version in the Github. I have installed
cmake . runs fine and found / confirmed all dependencies.
make failed with following error
Would appreciate any help on this.
The text was updated successfully, but these errors were encountered: