CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/util/signal_handler.cpp
CXX src/caffe/util/benchmark.cpp
CXX src/caffe/util/insert_splits.cpp
CXX src/caffe/util/im2col.cpp
CXX src/caffe/util/upgrade_proto.cpp
CXX src/caffe/util/db_leveldb.cpp
CXX src/caffe/util/io.cpp
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘void caffe::SolverParameter::clear_random_seed()’:
.build_release/src/caffe/proto/caffe.pb.h:16224:36: error: ‘GOOGLE_LONGLONG’ was not declared in this scope
random_seed_ = GOOGLE_LONGLONG(-1);
^
.build_release/src/caffe/proto/caffe.pb.cc: At global scope:
.build_release/src/caffe/proto/caffe.pb.cc:1547:57: error: expected initializer before ‘GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE’
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
^
.build_release/src/caffe/proto/caffe.pb.cc:2743:70: error: expected initializer before ‘GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE’
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
^
.build_release/src/caffe/proto/caffe.pb.cc:36220:1: error: expected ‘}’ at end of input
} // namespace google
^
Makefile:588: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed
make: * [.build_release/src/caffe/proto/caffe.pb.o] Error 1
make: * Waiting for unfinished jobs....
In file included from ./include/caffe/util/cudnn.hpp:8:0,
from ./include/caffe/util/device_alternate.hpp:40,
from ./include/caffe/common.hpp:19,
from ./include/caffe/util/db.hpp:6,
from ./include/caffe/util/db_leveldb.hpp:10,
from src/caffe/util/db_leveldb.cpp:2:
.build_release/src/caffe/proto/caffe.pb.h: In member function ‘void caffe::SolverParameter::clear_random_seed()’:
.build_release/src/caffe/proto/caffe.pb.h:16224:36: error: ‘GOOGLE_LONGLONG’ was not declared in this scope
random_seed_ = GOOGLE_LONGLONG(-1);
I encountered this error when compiling Caffe and did not find the solution by google search.
I have solved the problem. The version of libprotobuf installed by apt-get has a conflict with the libprotobuf installed by conda. Uninstall the apt libprotobuf and then install libprotobuf 2.6.1 by conda.
Most helpful comment
I have solved the problem. The version of libprotobuf installed by apt-get has a conflict with the libprotobuf installed by conda. Uninstall the apt libprotobuf and then install libprotobuf 2.6.1 by conda.