Hi Shougang, This happens since some protobuf versions use preprocessing symbols without defining them (relying on the fact they default to 0). This is clashing with gem5 behaviour of warning on undefined symbols (Wundef).
Feel free to remove the Wundef locally (as a hack) or choose a protobuf version which is not breaking with Wundef. I’ve found that protobuf 3.6.1 is gem5 compatible Giacomo From: Shougang Yuan via gem5-users <gem5-users@gem5.org> Sent: 22 May 2020 20:57 To: gem5 users mailing list <gem5-users@gem5.org> Cc: Shougang Yuan <syu...@ncsu.edu> Subject: [gem5-users] Protobuf error on different ubuntu version Hi, All, I developed some code based on gem5 and ran it on ubuntu16 before. Recently I have installed a newer version of ubuntu18 and tried to re-run my code. I pulled the cold to my private github repo on ubuntu16 and clone it again to the ubuntu18, but I suffered the error as shown in the following: [libprotobuf WARNING google/protobuf/compiler/parser.cc:547] 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] X86/mem/abstract_mem.cc -> .o [ CXX] X86/mem/comm_monitor.cc -> .o In file included from build/X86/mem/comm_monitor.cc:46:0: build/X86/proto/packet.pb.h:314:6: error: "PROTOBUF_INLINE_NOT_IN_HEADERS" is not defined [-Werror=undef] #if !PROTOBUF_INLINE_NOT_IN_HEADERS I tried some methods from gem5 user lists and did not make it work again. I am wondering if someone else faced the same issues, and if there is a known fix for this. Thanks for your help. Best regards. Shougang IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s