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

error in compiling caffe on linux {hotspot_layer} #310

Open
robosina opened this issue Dec 29, 2018 · 1 comment
Open

error in compiling caffe on linux {hotspot_layer} #310

robosina opened this issue Dec 29, 2018 · 1 comment

Comments

@robosina
Copy link

I want to make caffe on ubunut 16.04.3 but I get some error that I can't find in like issue in google.my system config is as below:

opencv version 3
cuda version 9
cudnn version 7

the error I get is

92 errors detected in the compilation of "/tmp/tmpxft_00004404_00000000-6_hotspot_layer.cpp1.ii". Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/hotspot_layer.o' failed make: *** [.build_release/cuda/src/caffe/layers/hotspot_layer.o] Error 1

@robosina
Copy link
Author

robosina commented Dec 29, 2018

I solve it with upgrading gcc to version 6.

for upgrading gcc you can use below commands.(link to source)

sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update && \
sudo apt-get install gcc-6 g++-6 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
gcc -v

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

1 participant