yahoo / CaffeOnSpark

Distributed deep learning on Hadoop and Spark clusters.
Apache License 2.0
1.27k stars 357 forks source link

Error while making-build under folder CaffeOnSpark #173

Closed liushengzhong closed 7 years ago

liushengzhong commented 8 years ago

Hi,

I am making build under the folder: CaffeOnSpark, but I encountered the following problem. By the way, I use CentOS6, and I have installed all of the prerequisites listed. At first I used the newest version of protobuf, then I changed to the 2.5.0 version.

[root@node19 CaffeOnSpark]# make build
cd caffe-public; make proto; make -j4 -e distribute; cd ..
make[1]: Entering directory `/root/CaffeOnSpark/caffe-public'
PROTOC src/caffe/proto/caffe.proto
make[1]: Leaving directory `/root/CaffeOnSpark/caffe-public'
make[1]: Entering directory `/root/CaffeOnSpark/caffe-public'
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/syncedmem.cpp
CXX src/caffe/parallel.cpp
CXX src/caffe/layers/neuron_layer.cpp
In file included from src/caffe/syncedmem.cpp:1:
./include/caffe/common.hpp:6:26: warning: glog/logging.h: No such file or directory
In file included from src/caffe/syncedmem.cpp:2:
./include/caffe/syncedmem.hpp: In function ‘void caffe::CaffeMallocHost(void**, size_t, bool*, int*)’:
./include/caffe/syncedmem.hpp:27: error: ‘CHECK’ was not declared in this scope
In file included from ./include/caffe/util/math_functions.hpp:11,
                 from src/caffe/syncedmem.cpp:3:
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSqr(int, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:34: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp:34: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
./include/caffe/util/mkl_alternate.hpp: In function ‘void vExp(int, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:35: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vLn(int, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:36: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAbs(int, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:37: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vPowx(int, const Dtype*, Dtype, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:56: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAdd(int, const Dtype*, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:75: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSub(int, const Dtype*, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:76: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vMul(int, const Dtype*, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:77: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vDiv(int, const Dtype*, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:78: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
a
./include/caffe/util/math_functions.hpp: In function ‘void caffe::caffe_memset(size_t, int, void*)’:
./include/caffe/util/math_functions.hpp:43: error: ‘memset’ was not declared in this scope
./include/caffe/util/math_functions.hpp: In function ‘void caffe::caffe_cpu_sign(int, const Dtype*, Dtype*)’:
./include/caffe/util/math_functions.hpp:131: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/math_functions.hpp: In function ‘void caffe::caffe_cpu_sgnbit(int, const Dtype*, Dtype*)’:
./include/caffe/util/math_functions.hpp:137: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/math_functions.hpp: In function ‘void caffe::caffe_cpu_fabs(int, const Dtype*, Dtype*)’:
./include/caffe/util/math_functions.hpp:140: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
src/caffe/syncedmem.cpp: In member function ‘void caffe::SyncedMemory::to_cpu()’:
src/caffe/syncedmem.cpp:42: error: ‘FATAL’ was not declared in this scope
src/caffe/syncedmem.cpp:42: error: ‘LOG’ was not declared in this scope
src/caffe/syncedmem.cpp: In member function ‘void caffe::SyncedMemory::to_gpu()’:
src/caffe/syncedmem.cpp:75: error: ‘FATAL’ was not declared in this scope
src/caffe/syncedmem.cpp:75: error: ‘LOG’ was not declared in this scope
src/caffe/syncedmem.cpp: In member function ‘void caffe::SyncedMemory::set_cpu_data(void*)’:
src/caffe/syncedmem.cpp:85: error: ‘CHECK’ was not declared in this scope
src/caffe/syncedmem.cpp: In member function ‘const void* caffe::SyncedMemory::gpu_data()’:
src/caffe/syncedmem.cpp:99: error: ‘FATAL’ was not declared in this scope
src/caffe/syncedmem.cpp:99: error: ‘LOG’ was not declared in this scope
src/caffe/syncedmem.cpp: In member function ‘void caffe::SyncedMemory::set_gpu_data(void*)’:
src/caffe/syncedmem.cpp:120: error: ‘FATAL’ was not declared in this scope
src/caffe/syncedmem.cpp:120: error: ‘LOG’ was not declared in this scope
src/caffe/syncedmem.cpp: In member function ‘void* caffe::SyncedMemory::mutable_gpu_data()’:
src/caffe/syncedmem.cpp:136: error: ‘FATAL’ was not declared in this scope
src/caffe/syncedmem.cpp:136: error: ‘LOG’ was not declared in this scope
In file included from ./include/caffe/util/math_functions.hpp:11,
                 from src/caffe/syncedmem.cpp:3:
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSqr(int, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:34:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:34: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:34: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSqr(int, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:34:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:34: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:34: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vExp(int, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:35:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:35: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:35: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vExp(int, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:35:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:35: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:35: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vLn(int, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:36:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:36: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:36: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vLn(int, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:36:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:36: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:36: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAbs(int, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:37:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:37: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:37: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAbs(int, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:37:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:37: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:37: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vPowx(int, const Dtype*, Dtype, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:56:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:56: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:56: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vPowx(int, const Dtype*, Dtype, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:56:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:56: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:56: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAdd(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:75:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:75: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:75: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAdd(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:75:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:75: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:75: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSub(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:76:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:76: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:76: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSub(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:76:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:76: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:76: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vMul(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:77:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:77: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:77: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vMul(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:77:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:77: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:77: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vDiv(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:78:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:78: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:78: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vDiv(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:78:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:78: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:78: error: ‘CHECK’ was not declared in this scope
make[1]: *** [.build_release/src/caffe/syncedmem.o] Error 1
make[1]: *** Waiting for unfinished jobs....
src/caffe/parallel.cpp:4:26: warning: glog/logging.h: No such file or directory
In file included from /usr/include/boost/thread/pthread/mutex.hpp:13,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from src/caffe/parallel.cpp:11:
/usr/include/boost/thread/xtime.hpp:23: error: expected identifier before numeric constant
/usr/include/boost/thread/xtime.hpp:23: error: expected ‘}’ before numeric constant
/usr/include/boost/thread/xtime.hpp:23: error: expected unqualified-id before numeric constant
/usr/include/boost/thread/xtime.hpp:46: error: expected type-specifier before ‘system_time’
In file included from /usr/include/boost/thread/pthread/mutex.hpp:13,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from src/caffe/parallel.cpp:11:
/usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
/usr/include/boost/thread/xtime.hpp:73: error: ‘get_system_time’ was not declared in this scope
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:88: error: expected declaration before ‘}’ token
make[1]: *** [.build_release/src/caffe/parallel.o] Error 1
In file included from ./include/caffe/blob.hpp:8,
                 from ./include/caffe/layers/neuron_layer.hpp:6,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/common.hpp:6:26: warning: glog/logging.h: No such file or directory
In file included from ./include/caffe/blob.hpp:10,
                 from ./include/caffe/layers/neuron_layer.hpp:6,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/syncedmem.hpp: In function ‘void caffe::CaffeMallocHost(void**, size_t, bool*, int*)’:
./include/caffe/syncedmem.hpp:27: error: ‘CHECK’ was not declared in this scope
In file included from ./include/caffe/layers/neuron_layer.hpp:6,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/blob.hpp: In member function ‘int caffe::Blob<Dtype>::count(int, int) const’:
./include/caffe/blob.hpp:86: error: there are no arguments to ‘CHECK_LE’ that depend on a template parameter, so a declaration of ‘CHECK_LE’ must be available
./include/caffe/blob.hpp:86: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
./include/caffe/blob.hpp:87: error: there are no arguments to ‘CHECK_GE’ that depend on a template parameter, so a declaration of ‘CHECK_GE’ must be available
./include/caffe/blob.hpp:88: error: there are no arguments to ‘CHECK_GE’ that depend on a template parameter, so a declaration of ‘CHECK_GE’ must be available
./include/caffe/blob.hpp: In member function ‘int caffe::Blob<Dtype>::LegacyShape(int) const’:
./include/caffe/blob.hpp:142: error: there are no arguments to ‘CHECK_LT’ that depend on a template parameter, so a declaration of ‘CHECK_LT’ must be available
./include/caffe/blob.hpp:143: error: there are no arguments to ‘CHECK_GE’ that depend on a template parameter, so a declaration of ‘CHECK_GE’ must be available
./include/caffe/blob.hpp: In member function ‘int caffe::Blob<Dtype>::offset(int, int, int, int) const’:
./include/caffe/blob.hpp:155: error: there are no arguments to ‘CHECK_GE’ that depend on a template parameter, so a declaration of ‘CHECK_GE’ must be available
./include/caffe/blob.hpp: In member function ‘int caffe::Blob<Dtype>::offset(const std::vector<int, std::allocator<int> >&) const’:
./include/caffe/blob.hpp:172: error: there are no arguments to ‘CHECK_GE’ that depend on a template parameter, so a declaration of ‘CHECK_GE’ must be available
./include/caffe/blob.hpp: In member function ‘const boost::shared_ptr<caffe::SyncedMemory>& caffe::Blob<Dtype>::data() const’:
./include/caffe/blob.hpp:210: error: there are no arguments to ‘CHECK’ that depend on a template parameter, so a declaration of ‘CHECK’ must be available
./include/caffe/blob.hpp: In member function ‘const boost::shared_ptr<caffe::SyncedMemory>& caffe::Blob<Dtype>::diff() const’:
./include/caffe/blob.hpp:215: error: there are no arguments to ‘CHECK’ that depend on a template parameter, so a declaration of ‘CHECK’ must be available
In file included from ./include/caffe/layer.hpp:10,
                 from ./include/caffe/layers/neuron_layer.hpp:7,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/layer_factory.hpp: In static member function ‘static boost::shared_ptr<caffe::Layer<Dtype> > caffe::LayerRegistry<Dtype>::CreateLayer(const caffe::LayerParameter&)’:
./include/caffe/layer_factory.hpp:77: error: ‘INFO’ was not declared in this scope
./include/caffe/layer_factory.hpp:77: error: there are no arguments to ‘LOG’ that depend on a template parameter, so a declaration of ‘LOG’ must be available
In file included from ./include/caffe/util/math_functions.hpp:11,
                 from ./include/caffe/layer.hpp:12,
                 from ./include/caffe/layers/neuron_layer.hpp:7,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSqr(int, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:34: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vExp(int, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:35: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vLn(int, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:36: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAbs(int, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:37: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vPowx(int, const Dtype*, Dtype, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:56: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAdd(int, const Dtype*, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:75: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSub(int, const Dtype*, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:76: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vMul(int, const Dtype*, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:77: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/mkl_alternate.hpp: In function ‘void vDiv(int, const Dtype*, const Dtype*, Dtype*)’:
./include/caffe/util/mkl_alternate.hpp:78: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
In file included from ./include/caffe/layer.hpp:12,
                 from ./include/caffe/layers/neuron_layer.hpp:7,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/util/math_functions.hpp: In function ‘void caffe::caffe_cpu_sign(int, const Dtype*, Dtype*)’:
./include/caffe/util/math_functions.hpp:131: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/math_functions.hpp: In function ‘void caffe::caffe_cpu_sgnbit(int, const Dtype*, Dtype*)’:
./include/caffe/util/math_functions.hpp:137: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
./include/caffe/util/math_functions.hpp: In function ‘void caffe::caffe_cpu_fabs(int, const Dtype*, Dtype*)’:
./include/caffe/util/math_functions.hpp:140: error: there are no arguments to ‘CHECK_GT’ that depend on a template parameter, so a declaration of ‘CHECK_GT’ must be available
In file included from ./include/caffe/layers/neuron_layer.hpp:7,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/layer.hpp: In member function ‘Dtype caffe::Layer<Dtype>::Forward(const std::vector<caffe::Blob<Dtype>*, std::allocator<caffe::Blob<Dtype>*> >&, const std::vector<caffe::Blob<Dtype>*, std::allocator<caffe::Blob<Dtype>*> >&)’:
./include/caffe/layer.hpp:483: error: ‘FATAL’ was not declared in this scope
./include/caffe/layer.hpp:483: error: there are no arguments to ‘LOG’ that depend on a template parameter, so a declaration of ‘LOG’ must be available
./include/caffe/layer.hpp: In member function ‘void caffe::Layer<Dtype>::Backward(const std::vector<caffe::Blob<Dtype>*, std::allocator<caffe::Blob<Dtype>*> >&, const std::vector<bool, std::allocator<bool> >&, const std::vector<caffe::Blob<Dtype>*, std::allocator<caffe::Blob<Dtype>*> >&)’:
./include/caffe/layer.hpp:501: error: ‘FATAL’ was not declared in this scope
./include/caffe/layer.hpp:501: error: there are no arguments to ‘LOG’ that depend on a template parameter, so a declaration of ‘LOG’ must be available
In file included from ./include/caffe/util/math_functions.hpp:11,
                 from ./include/caffe/layer.hpp:12,
                 from ./include/caffe/layers/neuron_layer.hpp:7,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSqr(int, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:34:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:34: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:34: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSqr(int, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:34:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:34: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:34: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vExp(int, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:35:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:35: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:35: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vExp(int, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:35:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:35: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:35: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vLn(int, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:36:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:36: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:36: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vLn(int, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:36:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:36: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:36: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAbs(int, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:37:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:37: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:37: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAbs(int, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:37:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:37: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:37: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vPowx(int, const Dtype*, Dtype, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:56:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:56: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:56: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vPowx(int, const Dtype*, Dtype, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:56:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:56: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:56: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAdd(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:75:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:75: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:75: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vAdd(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:75:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:75: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:75: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSub(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:76:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:76: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:76: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vSub(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:76:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:76: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:76: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vMul(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:77:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:77: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:77: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vMul(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:77:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:77: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:77: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vDiv(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = float]’:
./include/caffe/util/mkl_alternate.hpp:78:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:78: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:78: error: ‘CHECK’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp: In function ‘void vDiv(int, const Dtype*, const Dtype*, Dtype*) [with Dtype = double]’:
./include/caffe/util/mkl_alternate.hpp:78:   instantiated from here
./include/caffe/util/mkl_alternate.hpp:78: error: ‘CHECK_GT’ was not declared in this scope
./include/caffe/util/mkl_alternate.hpp:78: error: ‘CHECK’ was not declared in this scope
In file included from ./include/caffe/layers/neuron_layer.hpp:7,
                 from src/caffe/layers/neuron_layer.cpp:3:
./include/caffe/layer.hpp: In member function ‘void caffe::Layer<Dtype>::CheckBlobCounts(const std::vector<caffe::Blob<Dtype>*, std::allocator<caffe::Blob<Dtype>*> >&, const std::vector<caffe::Blob<Dtype>*, std::allocator<caffe::Blob<Dtype>*> >&) [with Dtype = double]’:
src/caffe/layers/neuron_layer.cpp:15:   instantiated from here
./include/caffe/layer.hpp:374: error: ‘CHECK_EQ’ was not declared in this scope
./include/caffe/layer.hpp:379: error: ‘CHECK_LE’ was not declared in this scope
./include/caffe/layer.hpp:384: error: ‘CHECK_GE’ was not declared in this scope
./include/caffe/layer.hpp:389: error: ‘CHECK_EQ’ was not declared in this scope
./include/caffe/layer.hpp:394: error: ‘CHECK_LE’ was not declared in this scope
./include/caffe/layer.hpp:399: error: ‘CHECK_GE’ was not declared in this scope
./include/caffe/layer.hpp:404: error: ‘CHECK_EQ’ was not declared in this scope
./include/caffe/layer.hpp: In member function ‘void caffe::Layer<Dtype>::CheckBlobCounts(const std::vector<caffe::Blob<Dtype>*, std::allocator<caffe::Blob<Dtype>*> >&, const std::vector<caffe::Blob<Dtype>*, std::allocator<caffe::Blob<Dtype>*> >&) [with Dtype = float]’:
src/caffe/layers/neuron_layer.cpp:15:   instantiated from here
./include/caffe/layer.hpp:374: error: ‘CHECK_EQ’ was not declared in this scope
./include/caffe/layer.hpp:379: error: ‘CHECK_LE’ was not declared in this scope
./include/caffe/layer.hpp:384: error: ‘CHECK_GE’ was not declared in this scope
./include/caffe/layer.hpp:389: error: ‘CHECK_EQ’ was not declared in this scope
./include/caffe/layer.hpp:394: error: ‘CHECK_LE’ was not declared in this scope
./include/caffe/layer.hpp:399: error: ‘CHECK_GE’ was not declared in this scope
./include/caffe/layer.hpp:404: error: ‘CHECK_EQ’ was not declared in this scope
make[1]: *** [.build_release/src/caffe/layers/neuron_layer.o] Error 1
make[1]: Leaving directory `/root/CaffeOnSpark/caffe-public'
export LD_LIBRARY_PATH="/home/y/lib64:/home/y/lib64/mkl/intel64:/root/PHILO/CaffeOnSpark/caffe-public/distribute/lib:/root/PHILO/CaffeOnSpark/caffe-distri/distribute/lib:/usr/lib64:/lib64 "; mvn  -B package -DskipTests
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.yahoo.ml:caffe-grid:jar:0.1-SNAPSHOT
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] caffe
[INFO] caffe-distri
[INFO] caffe-grid
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building caffe 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building caffe-distri 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (proto) @ caffe-distri ---
[INFO] Executing tasks

protoc:
     [exec] make[1]: Entering directory `/root/CaffeOnSpark/caffe-distri'
     [exec] make[1]: Leaving directory `/root/CaffeOnSpark/caffe-distri'
     [exec] make[1]: *** No rule to make target `../caffe-public/distribute/proto/caffe.proto', needed by `src/main/java/caffe/Caffe.java'.  Stop.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] caffe .............................................. SUCCESS [  0.002 s]
[INFO] caffe-distri ....................................... FAILURE [  1.194 s]
[INFO] caffe-grid ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.530 s
[INFO] Finished at: 2016-10-21T11:19:46+08:00
[INFO] Final Memory: 11M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (proto) on project caffe-distri: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...<exec dir="/root/CaffeOnSpark/caffe-distri" executable="make" failonerror="true">... @ 5:84 in /root/CaffeOnSpark/caffe-distri/target/antrun/build-protoc.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :caffe-distri
make: *** [build] Error 1

Thanks!

Shengzhong

junshi15 commented 8 years ago

It looks like your setting is not right. for example, glog could not be found per the message below:

glog/logging.h: No such file or director

Then there are problems with Intel MKL settings. All the problems appear in compiling caffe-public, which is more or less BVLC caffe.

mriduljain commented 7 years ago

These might help: Install caffe prerequists per http://caffe.berkeleyvision.org/installation.html or from http://installing-caffe-the-right-way.wikidot.com/start

If you are able to do it. Please close the bug