eccv16-taxonomy icon indicating copy to clipboard operation
eccv16-taxonomy copied to clipboard

build error

Open ConstantinoSchillebeeckx opened this issue 8 years ago • 4 comments

I'm getting the following error when building your cloned repo:

CXX src/caffe/layers/super_category_layer.cpp
In file included from ./include/caffe/common.hpp:19:0,
                 from ./include/caffe/blob.hpp:8,
                 from src/caffe/layers/super_category_layer.cpp:5:
src/caffe/layers/super_category_layer.cpp:285:10: error: redefinition of ‘void caffe::SuperCategoryLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’
 STUB_GPU(SuperCategoryLayer);
          ^
./include/caffe/util/device_alternate.hpp:14:6: note: in definition of macro ‘STUB_GPU’
 void classname<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom, \
      ^
In file included from ./include/caffe/vision_layers.hpp:10:0,
                 from src/caffe/layers/super_category_layer.cpp:10:
./include/caffe/common_layers.hpp:473:16: error: ‘virtual void caffe::SuperCategoryLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’ previously declared here
   virtual void Forward_gpu(const vector<Blob<Dtype>*>& bottom,
                ^
In file included from ./include/caffe/common.hpp:19:0,
                 from ./include/caffe/blob.hpp:8,
                 from src/caffe/layers/super_category_layer.cpp:5:
src/caffe/layers/super_category_layer.cpp:285:10: error: redefinition of ‘void caffe::SuperCategoryLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&)’
 STUB_GPU(SuperCategoryLayer);
          ^
./include/caffe/util/device_alternate.hpp:17:6: note: in definition of macro ‘STUB_GPU’
 void classname<Dtype>::Backward_gpu(const vector<Blob<Dtype>*>& top, \
      ^
In file included from ./include/caffe/vision_layers.hpp:10:0,
                 from src/caffe/layers/super_category_layer.cpp:10:
./include/caffe/common_layers.hpp:480:16: error: ‘virtual void caffe::SuperCategoryLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&)’ previously declared here
   virtual void Backward_gpu(const vector<Blob<Dtype>*>& top,
                ^
In file included from ./include/caffe/common.hpp:19:0,
                 from ./include/caffe/blob.hpp:8,
                 from src/caffe/layers/super_category_layer.cpp:5:
./include/caffe/util/device_alternate.hpp:15:36: error: no ‘void caffe::SuperCategoryLabelLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’ member function declared in class ‘caffe::SuperCategoryLabelLayer<Dtype>’
     const vector<Blob<Dtype>*>& top) { NO_GPU; } \
                                    ^
src/caffe/layers/super_category_layer.cpp:286:1: note: in expansion of macro ‘STUB_GPU’
 STUB_GPU(SuperCategoryLabelLayer);
 ^
./include/caffe/util/device_alternate.hpp:19:39: error: no ‘void caffe::SuperCategoryLabelLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&)’ member function declared in class ‘caffe::SuperCategoryLabelLayer<Dtype>’
     const vector<Blob<Dtype>*>& bottom) { NO_GPU; } \
                                       ^
src/caffe/layers/super_category_layer.cpp:286:1: note: in expansion of macro ‘STUB_GPU’
 STUB_GPU(SuperCategoryLabelLayer);
 ^
make: *** [.build_release/src/caffe/layers/super_category_layer.o] Error 1

Can you provide some guidance?

Could you specify more about your environment like gcc version?

hiwonjoon avatar Mar 28 '17 19:03 hiwonjoon

Ubuntu 14.04.3 gcc 4.8.4 caffe 1.0.0 rc5

Oh, I think you should use the specified Caffe version. Caffe branch that is working is included in the repository as a submodule. Could you please try with that version?

hiwonjoon avatar Mar 29 '17 14:03 hiwonjoon

I'm still getting the same error (in super_category_layer.cpp) with the particular branch of caffe you mentioned.

Anything else I can try?