'undefined reference to google::protobuf::io' error when installing Gem5

0

build/X86/proto/lib.o.partial: In function `ProtoOutputStream::ProtoOutputStream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/xurui/Downloads/gem5/build/X86/proto/protoio.cc:60: undefined reference to `google::protobuf::io::GzipOutputStream::GzipOutputStream(google::protobuf::io::ZeroCopyOutputStream*)'
build/X86/proto/lib.o.partial: In function `ProtoInputStream::createStreams()':
/home/xurui/Downloads/gem5/build/X86/proto/protoio.cc:130: undefined reference to `google::protobuf::io::GzipInputStream::GzipInputStream(google::protobuf::io::ZeroCopyInputStream*, google::protobuf::io::GzipInputStream::Format, int)'
collect2: error: ld returned 1 exit status
scons: *** [build/X86/gem5.opt] Error 1
scons: building terminated because of errors.

user1111872

Posted 2019-11-12T14:58:20.080

Reputation: 1

When I used scons to compiler gem5, there is an error, just like upon. And I checked it, I found the reference is exist. – user1111872 – 2019-11-12T15:01:42.910

You have got two Linker Error Messages, @user1111872 . You need to find a way to feed the C++ Compiler Two Signatures of the google::protobuf::io::GzipOutputStream::GzipOutputStream() Method. From your comment, we understand that you have investigated something about it, but it is not clear. We would suggest that you edit your question, insert your latest comment in it and then explain where you have found the references. – None – 2019-11-12T17:15:33.207

No answers