Yesterday I tried unsuccessfully to build gem5 with ASAN. Am I doing
something wrong?
olumide@openbmc-build:~/repos/gem5$ scons gem5_opt/gem5.debug -j4
--with-ubsan --with-asan
scons: Reading SConscript files ...
Mkdir("/home/olumide/repos/gem5/gem5_debug/gem5.build")
Checking for linker -Wl,--as-needed support... (cached) yes
Warning: Address Sanitizer is not supported with GCC. This option will
be ignored.
Checking for compiler -gz support... (cached) yes
...
scons: Building targets ...
[ PROTOC] src/proto/inst_dep_record.proto ->
gem5_opt/proto/inst_dep_record.pb.cc, gem5_opt/proto/inst_dep_record.pb.h
[ PROTOC] src/proto/packet.proto -> gem5_opt/proto/packet.pb.cc,
gem5_opt/proto/packet.pb.h
[ PROTOC] src/proto/inst.proto -> gem5_opt/proto/inst.pb.cc,
gem5_opt/proto/inst.pb.h
[ CXX] src/proto/protobuf.cc -> gem5_opt/proto/protobuf.o
[ CXX] gem5_opt/proto/inst_dep_record.pb.cc -> .o
[ CXX] gem5_opt/proto/packet.pb.cc -> .o
[ CXX] gem5_opt/proto/inst.pb.cc -> .o
[CONFIG H] HAVE_DEPRECATED_NAMESPACE, 1 ->
gem5_opt/config/have_deprecated_namespace.hh
[ CXX] src/proto/protoio.cc -> gem5_opt/proto/protoio.o
gem5_opt/proto/inst.pb.cc: In copy constructor
‘ProtoMessage::Inst_MemAccess::Inst_MemAccess(const
ProtoMessage::Inst_MemAccess&)’:
gem5_opt/proto/inst.pb.cc:657:11: error: writing 16 bytes into a region
of size 8 [-Werror=stringop-overflow=]
657 | ::memcpy(&addr_, &from.addr_,
| ^
In file included from gem5_opt/proto/inst.pb.cc:4:
gem5_opt/proto/inst.pb.h:521:35: note: destination object
‘ProtoMessage::Inst_MemAccess::addr_’ of size 8
521 | ::PROTOBUF_NAMESPACE_ID::uint64 addr_;
| ^~~~~
[ CXX] src/python/gem5py.cc -> gem5_opt/python/gem5py.pyo
gem5_opt/proto/inst_dep_record.pb.cc: In copy constructor
‘ProtoMessage::InstDepRecordHeader::InstDepRecordHeader(const
ProtoMessage::InstDepRecordHeader&)’:
gem5_opt/proto/inst_dep_record.pb.cc:209:11: error: writing 16 bytes
into a region of size 8 [-Werror=stringop-overflow=]
209 | ::memcpy(&tick_freq_, &from.tick_freq_,
| ^
In file included from gem5_opt/proto/inst_dep_record.pb.cc:4:
gem5_opt/proto/inst_dep_record.pb.h:305:35: note: destination object
‘ProtoMessage::InstDepRecordHeader::tick_freq_’ of size 8
305 | ::PROTOBUF_NAMESPACE_ID::uint64 tick_freq_;
| ^~~~~~~~~~
cc1plus: all warnings being treated as errors
scons: *** [gem5_opt/proto/inst_dep_record.pb.o] Error 1
cc1plus: all warnings being treated as errors
scons: *** [gem5_opt/proto/inst.pb.o] Error 1
scons: building terminated because of errors.
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org