facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.94k forks source link

error on gloo library #1447

Open beppe2hd opened 7 years ago

beppe2hd commented 7 years ago

Hi everyone, I'm trying to compile caffe 2 but despite I followed all the instruction I finally get this error.

[ 16%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/context.cc.o In file included from /home/marco/caffe2/third_party/gloo/gloo/context.cc:12:0: /home/marco/caffe2/third_party/gloo/gloo/common/error.h:25:46: error: expected class-name before ‘{’ token /home/marco/caffe2/third_party/gloo/gloo/common/error.h: In constructor ‘gloo::Exception::Exception(const string&)’: /home/marco/caffe2/third_party/gloo/gloo/common/error.h:27:66: error: expected class-name before ‘(’ token /home/marco/caffe2/third_party/gloo/gloo/common/error.h:27:66: error: expected ‘{’ before ‘(’ token make[3]: *** [third_party/gloo/gloo/CMakeFiles/gloo.dir/context.cc.o] Error 1 make[3]: Leaving directory/home/marco/caffe2/build' make[2]: [third_party/gloo/gloo/CMakeFiles/gloo.dir/all] Error 2 make[2]: Leaving directory `/home/marco/caffe2/build' make[1]: [all] Error 2 make[1]: Leaving directory /home/marco/caffe2/build' make: *** [all] Error 2 Can someone help me?

P.S. I tried also to configure the make file in other way but without succes.

pietern commented 7 years ago

Please provide information about your build environment, such as OS, OS version, compiler version, etc.

beppe2hd commented 7 years ago

Linux marco-HPZ420 3.16.0-62-generic #83~14.04.1-Ubuntu SMP Fri Feb 26 22:52:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux GNU Make 3.81 gcc (Ubuntu/Linaro 4.7.3-12ubuntu1) 4.7.3

pietern commented 7 years ago

Thanks. Caffe2 needs GCC 4.9 or higher to compile. Which version of Ubuntu are you using?