Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Caffe installation failing at make all step.

196 views
Skip to first unread message

From Shree With Love

unread,
Jul 4, 2020, 6:19:09 PM7/4/20
to Caffe Users

Error: 

[ 78%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o

/Users/sreekavitha/caffe/src/caffe/util/io.cpp:57:16: warning: 'SetTotalBytesLimit' is deprecated: Please use the single parameter version of SetTotalBytesLimit(). The second parameter is ignored. [-Wdeprecated-declarations]

  coded_input->SetTotalBytesLimit(kProtoReadBytesLimit, 536870912);

               ^

/usr/local/include/google/protobuf/io/coded_stream.h:394:3: note: 'SetTotalBytesLimit' has been explicitly marked deprecated here

  PROTOBUF_DEPRECATED_MSG(

  ^

/usr/local/include/google/protobuf/port_def.inc:156:53: note: expanded from macro 'PROTOBUF_DEPRECATED_MSG'

#define PROTOBUF_DEPRECATED_MSG(msg) __attribute__((deprecated(msg)))

                                                    ^

1 warning generated.

[ 78%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/math_functions.cpp.o

[ 79%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/signal_handler.cpp.o

[ 79%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/upgrade_proto.cpp.o

[ 81%] Linking CXX shared library ../../lib/libcaffe.dylib

Undefined symbols for architecture x86_64:

  "_PyErr_Print", referenced from:

      boost::shared_ptr<caffe::Layer<float> > caffe::GetPythonLayer<float>(caffe::LayerParameter const&) in layer_factory.cpp.o

      boost::shared_ptr<caffe::Layer<double> > caffe::GetPythonLayer<double>(caffe::LayerParameter const&) in layer_factory.cpp.o

  "_PyEval_CallFunction", referenced from:

      boost::python::detail::returnable<boost::python::api::object>::type boost::python::call<boost::python::api::object, caffe::LayerParameter>(_object*, caffe::LayerParameter const&, boost::type<boost::python::api::object>*) in layer_factory.cpp.o

  "_Py_Initialize", referenced from:

      boost::shared_ptr<caffe::Layer<float> > caffe::GetPythonLayer<float>(caffe::LayerParameter const&) in layer_factory.cpp.o

      boost::shared_ptr<caffe::Layer<double> > caffe::GetPythonLayer<double>(caffe::LayerParameter const&) in layer_factory.cpp.o

  "__Py_NoneStruct", referenced from:

      __GLOBAL__sub_I_layer_factory.cpp in layer_factory.cpp.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [lib/libcaffe.1.0.0.dylib] Error 1

make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2

make: *** [all] Error 2



Please let me know how to proceed. I have seen so many topics online and I added a lot lines in multiple files. 

Unable sort this one out. 

Makefile
Makefile.config
Makefile
Reply all
Reply to author
Forward
0 new messages