Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

compiling errors #54

Closed
fastalgo opened this issue Feb 23, 2017 · 5 comments
Closed

compiling errors #54

fastalgo opened this issue Feb 23, 2017 · 5 comments

Comments

@fastalgo
Copy link

./include/caffe/training_utils.hpp: In function 'int multiphase_train(caffe::MultiPhaseSolverParameter*, const string&, const string&, const int&, const string&)':
./include/caffe/training_utils.hpp:113:18: error: 'class caffe::SolverParameter' has no member named 'set_allocated_net_param'
solver_param.set_allocated_net_param(&topology_net_param);
^
In file included from /opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/system_error.hpp:14:0,
from /opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/thread/exceptions.hpp:22,
from /opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/thread/pthread/mutex.hpp:12,
from /opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/thread/mutex.hpp:16,
from ./include/caffe/syncedmem.hpp:52,
from ./include/caffe/blob.hpp:47,
from ./include/caffe/caffe.hpp:44,
from tools/caffe.cpp:54:
/opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/error_code.hpp: At global scope:
/opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/error_code.hpp:222:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable]
static const error_category & posix_category = generic_category();
^
/opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/error_code.hpp:223:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable]
static const error_category & errno_ecat = generic_category();
^
/opt/cray/pe/trilinos/11.12.1.5/INTEL/14.0/x86_64/include/boost/system/error_code.hpp:224:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable]
static const error_category & native_ecat = system_category();
^
Makefile:768: recipe for target '.build_release/tools/caffe.o' failed
make: *** [.build_release/tools/caffe.o] Error 1

What is the reason? Thanks!

@michalkuligowski
Copy link
Contributor

michalkuligowski commented Feb 24, 2017

Hi, thanks for reporting this error, could you please tell what protobuf library version you are using?

@fastalgo
Copy link
Author

Problem solved if I comment line 113 of ./include/caffe/training_utils.hpp

@fastalgo
Copy link
Author

protobuf/2.4.1

@michalkuligowski
Copy link
Contributor

michalkuligowski commented Feb 25, 2017

You need protobuf 2.5.0 version at least which was the first that added set_allocated_foo(Type* foo) for message fields.

@fastalgo
Copy link
Author

@michalkuligowski Thanks, it is working if I use protobuf/2.6.1

@pnoga pnoga closed this as completed Feb 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants