junxzm1990 / x86-sok

124 stars 20 forks source link

Compilation configuration for PEMap.o #4

Closed jupiterepoch closed 3 years ago

jupiterepoch commented 3 years ago

Hi, could you kindly provide the dependencies configuration for compiling in the extract_gt/pemap directory? I'm running the compilation on Ubuntu 18.04. After installing protobuf 3.17.2 and also tried 3.16.0, the compilation still failed with errors. The log is shown below. Could you tell me which version of protobuf did you use? Thank you! `In file included from PEMap.h:14:0, from PEMap.cpp:58: refInf.pb.h:17:2: error: #error This file was generated by an older version of protoc which is

error This file was generated by an older version of protoc which is

^~~~~ refInf.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please

error incompatible with your Protocol Buffer headers. Please

^~~~~ refInf.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.

error regenerate this file with a newer version of protoc.

^~~~~ In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:17:2: error: #error This file was generated by an older version of protoc which is

error This file was generated by an older version of protoc which is

^~~~~ blocks.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please

error incompatible with your Protocol Buffer headers. Please

^~~~~ blocks.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.

error regenerate this file with a newer version of protoc.

^~~~~ In file included from PEMap.h:14:0, from PEMap.cpp:58: refInf.pb.h:41:46: error: ‘AuxillaryParseTableField’ in namespace ‘google::protobuf::internal’ does not name a type static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; ^~~~~~~~ refInf.pb.h:287:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata; ^~~~~~~~~ refInf.pb.h:154:8: error: ‘bool RefInf::RefList::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual bool MergePartialFromCodedStream( ^~~~~~~ refInf.pb.h:156:8: error: ‘void RefInf::RefList::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual void SerializeWithCachedSizes( ^~~~~~~~ refInf.pb.h:158:30: error: ‘google::protobuf::uint8 RefInf::RefList::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ refInf.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& RefInf::RefList::unknown_fields() const’: refInf.pb.h:115:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’ return _internalmetadata.unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: candidate: template const T& google::protobuf::internal::InternalMetadata::unknown_fields(const T& ()()) const PROTOBUF_NDEBUG_INLINE const T& unknown_fields( ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: template argument deduction/substitution failed: In file included from PEMap.h:14:0, from PEMap.cpp:58: refInf.pb.h:115:47: note: candidate expects 1 argument, 0 provided return _internalmetadata.unknown_fields(); ^ refInf.pb.h: In member function ‘google::protobuf::UnknownFieldSet RefInf::RefList::mutable_unknown_fields()’: refInf.pb.h:118:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: candidate: template T google::protobuf::internal::InternalMetadata::mutable_unknown_fields() PROTOBUF_NDEBUG_INLINE T mutable_unknown_fields() { ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: template argument deduction/substitution failed: In file included from PEMap.h:14:0, from PEMap.cpp:58: refInf.pb.h:118:55: note: couldn't deduce template parameter ‘T’ return _internalmetadata.mutable_unknown_fields(); ^ refInf.pb.h: At global scope: refInf.pb.h:489:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata; ^~~~~~~~~ refInf.pb.h:371:8: error: ‘bool RefInf::Reference::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual bool MergePartialFromCodedStream( ^~~~~~~ refInf.pb.h:373:8: error: ‘void RefInf::Reference::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual void SerializeWithCachedSizes( ^~~~~~~~ refInf.pb.h:375:30: error: ‘google::protobuf::uint8 RefInf::Reference::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ refInf.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& RefInf::Reference::unknown_fields() const’: refInf.pb.h:332:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’ return _internalmetadata.unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: candidate: template const T& google::protobuf::internal::InternalMetadata::unknown_fields(const T& ()()) const PROTOBUF_NDEBUG_INLINE const T& unknown_fields( ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: template argument deduction/substitution failed: In file included from PEMap.h:14:0, from PEMap.cpp:58: refInf.pb.h:332:47: note: candidate expects 1 argument, 0 provided return _internalmetadata.unknown_fields(); ^ refInf.pb.h: In member function ‘google::protobuf::UnknownFieldSet RefInf::Reference::mutable_unknown_fields()’: refInf.pb.h:335:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: candidate: template T google::protobuf::internal::InternalMetadata::mutable_unknown_fields() PROTOBUF_NDEBUG_INLINE T mutable_unknown_fields() { ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: template argument deduction/substitution failed: In file included from PEMap.h:14:0, from PEMap.cpp:58: refInf.pb.h:335:55: note: couldn't deduce template parameter ‘T’ return _internalmetadata.mutable_unknown_fields(); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_text_start()’: refInf.pb.h:552:35: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope textstart = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_text_end()’: refInf.pb.h:576:33: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope textend = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_rodata_start()’: refInf.pb.h:600:37: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope rodatastart = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_rodata_end()’: refInf.pb.h:624:35: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope rodataend = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_data_start()’: refInf.pb.h:648:35: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope datastart = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_data_end()’: refInf.pb.h:672:33: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope dataend = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_datarel_start()’: refInf.pb.h:696:38: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope datarelstart = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_datarel_end()’: refInf.pb.h:720:36: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope datarelend = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_initarray_start()’: refInf.pb.h:744:40: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope initarraystart = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::RefList::clear_initarray_end()’: refInf.pb.h:768:38: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope initarrayend = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::Reference::clear_ref_va()’: refInf.pb.h:796:31: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope refva = GOOGLE_ULONGLONG(0); ^ refInf.pb.h: In member function ‘void RefInf::Reference::clear_target_va()’: refInf.pb.h:844:34: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope targetva = GOOGLE_ULONGLONG(0); ^ In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h: At global scope: blocks.pb.h:40:46: error: ‘AuxillaryParseTableField’ in namespace ‘google::protobuf::internal’ does not name a type static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; ^~~~~~~~ blocks.pb.h:218:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata; ^~~~~~~~~ blocks.pb.h:148:8: error: ‘bool blocks::module::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual bool MergePartialFromCodedStream( ^~~~~~~ blocks.pb.h:150:8: error: ‘void blocks::module::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual void SerializeWithCachedSizes( ^~~~~~~~ blocks.pb.h:152:30: error: ‘google::protobuf::uint8 blocks::module::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ blocks.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& blocks::module::unknown_fields() const’: blocks.pb.h:109:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’ return _internalmetadata.unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: candidate: template const T& google::protobuf::internal::InternalMetadata::unknown_fields(const T& ()()) const PROTOBUF_NDEBUG_INLINE const T& unknown_fields( ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:109:47: note: candidate expects 1 argument, 0 provided return _internalmetadata.unknown_fields(); ^ blocks.pb.h: In member function ‘google::protobuf::UnknownFieldSet blocks::module::mutable_unknown_fields()’: blocks.pb.h:112:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: candidate: template T google::protobuf::internal::InternalMetadata::mutable_unknown_fields() PROTOBUF_NDEBUG_INLINE T mutable_unknown_fields() { ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:112:55: note: couldn't deduce template parameter ‘T’ return _internalmetadata.mutable_unknown_fields(); ^ blocks.pb.h: At global scope: blocks.pb.h:368:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata; ^~~~~~~~~ blocks.pb.h:295:8: error: ‘bool blocks::Function::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual bool MergePartialFromCodedStream( ^~~~~~~ blocks.pb.h:297:8: error: ‘void blocks::Function::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual void SerializeWithCachedSizes( ^~~~~~~~ blocks.pb.h:299:30: error: ‘google::protobuf::uint8 blocks::Function::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ blocks.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& blocks::Function::unknown_fields() const’: blocks.pb.h:256:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’ return _internalmetadata.unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: candidate: template const T& google::protobuf::internal::InternalMetadata::unknown_fields(const T& ()()) const PROTOBUF_NDEBUG_INLINE const T& unknown_fields( ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:256:47: note: candidate expects 1 argument, 0 provided return _internalmetadata.unknown_fields(); ^ blocks.pb.h: In member function ‘google::protobuf::UnknownFieldSet blocks::Function::mutable_unknown_fields()’: blocks.pb.h:259:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: candidate: template T google::protobuf::internal::InternalMetadata::mutable_unknown_fields() PROTOBUF_NDEBUG_INLINE T mutable_unknown_fields() { ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:259:55: note: couldn't deduce template parameter ‘T’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h: At global scope: blocks.pb.h:485:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata; ^~~~~~~~~ blocks.pb.h:445:8: error: ‘bool blocks::CalledFunction::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual bool MergePartialFromCodedStream( ^~~~~~~ blocks.pb.h:447:8: error: ‘void blocks::CalledFunction::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual void SerializeWithCachedSizes( ^~~~~~~~ blocks.pb.h:449:30: error: ‘google::protobuf::uint8 blocks::CalledFunction::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ blocks.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& blocks::CalledFunction::unknown_fields() const’: blocks.pb.h:406:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’ return _internalmetadata.unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: candidate: template const T& google::protobuf::internal::InternalMetadata::unknown_fields(const T& ()()) const PROTOBUF_NDEBUG_INLINE const T& unknown_fields( ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:406:47: note: candidate expects 1 argument, 0 provided return _internalmetadata.unknown_fields(); ^ blocks.pb.h: In member function ‘google::protobuf::UnknownFieldSet blocks::CalledFunction::mutable_unknown_fields()’: blocks.pb.h:409:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: candidate: template T google::protobuf::internal::InternalMetadata::mutable_unknown_fields() PROTOBUF_NDEBUG_INLINE T mutable_unknown_fields() { ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:409:55: note: couldn't deduce template parameter ‘T’ return _internalmetadata.mutable_unknown_fields(); ^ blocks.pb.h: At global scope: blocks.pb.h:599:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata; ^~~~~~~~~ blocks.pb.h:559:8: error: ‘bool blocks::Child::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual bool MergePartialFromCodedStream( ^~~~~~~ blocks.pb.h:561:8: error: ‘void blocks::Child::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual void SerializeWithCachedSizes( ^~~~~~~~ blocks.pb.h:563:30: error: ‘google::protobuf::uint8 blocks::Child::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ blocks.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& blocks::Child::unknown_fields() const’: blocks.pb.h:520:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’ return _internalmetadata.unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: candidate: template const T& google::protobuf::internal::InternalMetadata::unknown_fields(const T& ()()) const PROTOBUF_NDEBUG_INLINE const T& unknown_fields( ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:520:47: note: candidate expects 1 argument, 0 provided return _internalmetadata.unknown_fields(); ^ blocks.pb.h: In member function ‘google::protobuf::UnknownFieldSet blocks::Child::mutable_unknown_fields()’: blocks.pb.h:523:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: candidate: template T google::protobuf::internal::InternalMetadata::mutable_unknown_fields() PROTOBUF_NDEBUG_INLINE T mutable_unknown_fields() { ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:523:55: note: couldn't deduce template parameter ‘T’ return _internalmetadata.mutable_unknown_fields(); ^ blocks.pb.h: At global scope: blocks.pb.h:731:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata; ^~~~~~~~~ blocks.pb.h:673:8: error: ‘bool blocks::Instruction::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual bool MergePartialFromCodedStream( ^~~~~~~ blocks.pb.h:675:8: error: ‘void blocks::Instruction::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual void SerializeWithCachedSizes( ^~~~~~~~ blocks.pb.h:677:30: error: ‘google::protobuf::uint8 blocks::Instruction::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ blocks.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& blocks::Instruction::unknown_fields() const’: blocks.pb.h:634:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’ return _internalmetadata.unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: candidate: template const T& google::protobuf::internal::InternalMetadata::unknown_fields(const T& ()()) const PROTOBUF_NDEBUG_INLINE const T& unknown_fields( ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:634:47: note: candidate expects 1 argument, 0 provided return _internalmetadata.unknown_fields(); ^ blocks.pb.h: In member function ‘google::protobuf::UnknownFieldSet blocks::Instruction::mutable_unknown_fields()’: blocks.pb.h:637:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: candidate: template T google::protobuf::internal::InternalMetadata::mutable_unknown_fields() PROTOBUF_NDEBUG_INLINE T mutable_unknown_fields() { ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:637:55: note: couldn't deduce template parameter ‘T’ return _internalmetadata.mutable_unknown_fields(); ^ blocks.pb.h: At global scope: blocks.pb.h:919:33: error: ‘InternalMetadataWithArena’ in namespace ‘google::protobuf::internal’ does not name a type ::google::protobuf::internal::InternalMetadataWithArena _internalmetadata; ^~~~~~~~~ blocks.pb.h:807:8: error: ‘bool blocks::BasicBlock::MergePartialFromCodedStream(google::protobuf::io::CodedInputStream)’ marked ‘final’, but is not virtual bool MergePartialFromCodedStream( ^~~~~~~ blocks.pb.h:809:8: error: ‘void blocks::BasicBlock::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream) const’ marked ‘final’, but is not virtual void SerializeWithCachedSizes( ^~~~~~~~ blocks.pb.h:811:30: error: ‘google::protobuf::uint8 blocks::BasicBlock::InternalSerializeWithCachedSizesToArray(bool, google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ blocks.pb.h: In member function ‘const google::protobuf::UnknownFieldSet& blocks::BasicBlock::unknown_fields() const’: blocks.pb.h:768:47: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::unknown_fields() const’ return _internalmetadata.unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: candidate: template const T& google::protobuf::internal::InternalMetadata::unknown_fields(const T& ()()) const PROTOBUF_NDEBUG_INLINE const T& unknown_fields( ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:107:35: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:768:47: note: candidate expects 1 argument, 0 provided return _internalmetadata.unknown_fields(); ^ blocks.pb.h: In member function ‘google::protobuf::UnknownFieldSet blocks::BasicBlock::mutable_unknown_fields()’: blocks.pb.h:771:55: error: no matching function for call to ‘google::protobuf::internal::InternalMetadata::mutable_unknown_fields()’ return _internalmetadata.mutable_unknown_fields(); ^ In file included from /usr/local/include/google/protobuf/message_lite.h:49:0, from /usr/local/include/google/protobuf/generated_enum_util.h:36, from /usr/local/include/google/protobuf/map.h:55, from /usr/local/include/google/protobuf/generated_message_table_driven.h:34, from refInf.pb.h:25, from PEMap.h:14, from PEMap.cpp:58: /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: candidate: template T google::protobuf::internal::InternalMetadata::mutable_unknown_fields() PROTOBUF_NDEBUG_INLINE T mutable_unknown_fields() { ^~~~~~ /usr/local/include/google/protobuf/metadata_lite.h:117:29: note: template argument deduction/substitution failed: In file included from PEMap.h:15:0, from PEMap.cpp:58: blocks.pb.h:771:55: note: couldn't deduce template parameter ‘T’ return _internalmetadata.mutable_unknown_fields(); ^ blocks.pb.h: In member function ‘void blocks::module::clear_text_start()’: blocks.pb.h:984:35: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope textstart = GOOGLE_ULONGLONG(0); ^ blocks.pb.h: In member function ‘void blocks::module::clear_text_end()’: blocks.pb.h:1008:33: error: ‘GOOGLE_ULONGLONG’ was not declared in this scope textend = GOOGLE_ULONGLONG(0); ^ blocks.pb.h: In member function ‘void blocks::Function::clear_va()’: blocks.pb.h:1060:27: error: ‘GOOGLEULONGLONG’ was not declared in this scope va = GOOGLE_ULONGLONG(0); ^ blocks.pb.h: In member function ‘void blocks::CalledFunction::clear_va()’: blocks.pb.h:1172:27: error: ‘GOOGLEULONGLONG’ was not declared in this scope va = GOOGLE_ULONGLONG(0); ^ blocks.pb.h: In member function ‘void blocks::Child::clear_va()’: blocks.pb.h:1200:27: error: ‘GOOGLEULONGLONG’ was not declared in this scope va = GOOGLE_ULONGLONG(0); ^ blocks.pb.h: In member function ‘void blocks::Instruction::clear_va()’: blocks.pb.h:1228:27: error: ‘GOOGLEULONGLONG’ was not declared in this scope va = GOOGLE_ULONGLONG(0); ^ blocks.pb.h: In member function ‘void blocks::BasicBlock::clear_va()’: blocks.pb.h:1304:27: error: ‘GOOGLEULONGLONG’ was not declared in this scope va = GOOGLE_ULONGLONG(0); ^ blocks.pb.h: In member function ‘void blocks::BasicBlock::clear_parent()’: blocks.pb.h:1328:31: error: ‘GOOGLEULONGLONG’ was not declared in this scope parent = GOOGLE_ULONGLONG(0); ^ PEMap.cpp: In function ‘bool parse_pe_symbols(pe_data_t&, std::vector, std::vector, std::set&)’: PEMap.cpp:2081:17: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] char delim = ":,="; ^~~~~ PEMap.cpp: In function ‘int main(int, char)’: PEMap.cpp:2633:17: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] pb_output = "/tmp/pe_blocks.pb"; ^~~~~~~ PEMap.cpp: In function ‘bool parse_section_headers(pe_data_t, std::vector)’: PEMap.cpp:1002:51: warning: ignoring return value of ‘char fgets(char, int, FILE)’, declared with attribute warn_unused_result [-Wunused-result] fgets(tmp_str, sizeof(tmp_str), fsec_header); ^ make: [PEMap.o] Error 1 `

bin2415 commented 3 years ago

Thanks for the reporting! The blocks.pb.cc and refInf.pb.cc were generated in my machine and are not compatible with the version of your machine. I cleaned up these files and generate these files inside Makefile. Please type make in pemap directory and try again.