I've had this problem a while back. I tried to compile for gem5.opt and I got a 
similiar error but I left it alone because I was using gem5.fast. However I 
just pulled from the repository now and tried to build gem5.fast and I got 
thousands of "multiple definition errors" that happen at this step:


[    LINK]  -> X86/gem5.fast.unstripped
build/X86/base/lib.fo.partial: In function `GenericISA::SimplePCState<unsigned 
long>::~SimplePCState()':
(.text+0x11970): multiple definition of `GenericISA::SimplePCState<unsigned 
long>::~SimplePCState()'
build/X86/cpu/pred/lib.fo.partial:(.text+0x8ca0): first defined here
...


On


gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

Linux 4.4.0-75-generic #96-Ubuntu SMP




________________________________
From: gem5-users <[email protected]> on behalf of Mukherjee, Somnath 
<[email protected]>
Sent: 18 May 2017 08:32:07
To: [email protected]
Subject: [gem5-users] problem compiling gem5

Hi,
I am getting the following error after a fresh installation following the 
http://www.gem5.org/Dependencies
Can someone provide some pointers to the problem?

[  PROTOC] ARM/proto/packet.proto -> ARM/proto/packet.pb.cc, 
ARM/proto/packet.pb.h
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax 
specified for the proto file: packet.proto. Please use 'syntax = "proto2";' or 
'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[     CXX] ARM/mem/probes/mem_trace.cc -> .fo
[     CXX] ARM/mem/ruby/profiler/AccessTraceForAddress.cc -> .fo
In file included from build/ARM/mem/probes/mem_trace.cc:46:0:
build/ARM/proto/packet.pb.h:341:6: error: "PROTOBUF_INLINE_NOT_IN_HEADERS" is 
not defined [-Werror=undef]
#if !PROTOBUF_INLINE_NOT_IN_HEADERS
      ^
[MAKE INC] ARM/mem/ruby/slicc_interface/RubyRequest.hh -> 
protocol/RubyRequest.hh
[MAKE INC] ARM/mem/ruby/slicc_interface/Message.hh -> protocol/Message.hh
[     CXX] ARM/mem/ruby/profiler/AddressProfiler.cc -> .fo
[     CXX] ARM/mem/ruby/profiler/MemCntrlProfiler.cc -> .fo
cc1plus: all warnings being treated as errors
scons: *** [build/ARM/mem/probes/mem_trace.fo] Error 1
scons: building terminated because of errors.

Regards,
Somnath Mukherjee

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to