I tried with another gcc, but the result is the same...
$ port select --set gcc mp-gcc49 $ port select --list gcc Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'. Available versions for gcc: apple-gcc42 mp-gcc47 mp-gcc49 (active) none $ scons build/ALPHA_MOESI_hammer/gem5.debug build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:82:21: error: 'MAP_LOCKED' was not declared in this scope { TGT_MAP_LOCKED, MAP_LOCKED }, ^ build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:83:23: error: 'MAP_NONBLOCK' was not declared in this scope { TGT_MAP_NONBLOCK, MAP_NONBLOCK }, ^ build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:85:23: error: 'MAP_POPULATE' was not declared in this scope { TGT_MAP_POPULATE, MAP_POPULATE }, ^ build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:86:20: error: 'MAP_STACK' was not declared in this scope { TGT_MAP_STACK, MAP_STACK }, ^ scons: *** [build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.do] Error 1 scons: building terminated because of errors. Thanks... On Sat, Oct 15, 2016 at 10:06 PM, Abdul Mutaal <abdul.mut...@gmail.com> wrote: > Try with >=4.5 > > On Oct 15, 2016 2:56 PM, "F. A. Faisal" <dipu.7...@gmail.com> wrote: > >> $ g++ -v >> >> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr >> --with-gxx-include-dir=/usr/include/c++/4.2.1 >> >> Apple LLVM version 7.3.0 (clang-703.0.29) >> >> Target: x86_64-apple-darwin15.4.0 >> >> Thread model: posix >> >> On Sat, Oct 15, 2016 at 9:53 PM, Abdul Mutaal <abdul.mut...@gmail.com> >> wrote: >> >>> C++ version ? >>> >>> Thanks >>> >>> On Sat, Oct 15, 2016 at 2:01 PM, F. A. Faisal <dipu.7...@gmail.com> >>> wrote: >>> >>>> Dear All, >>>> >>>> I found the below errors while compiling through scons for latest gem5 >>>> integrated with garnet 2.0 (hg clone http://repo.gem5.org/gem5). >>>> >>>> $ scons build/ALPHA/gem5.debug >>>> *build/ALPHA/arch/alpha/tru64/tru64.cc:83:23: **error: **use of >>>> undeclared identifier* >>>> * 'MAP_NONBLOCK'; did you mean 'TGT_MAP_NONBLOCK'?* >>>> { TGT_MAP_NONBLOCK, MAP_NONBLOCK }, >>>> * ^~~~~~~~~~~~* >>>> TGT_MAP_NONBLOCK >>>> *build/ALPHA/arch/alpha/tru64/tru64.hh:78:27: note: *'TGT_MAP_NONBLOCK' >>>> declared >>>> here >>>> static const unsigned TGT_MAP_NONBLOCK = 0x10000; >>>> * ^* >>>> *build/ALPHA/arch/alpha/tru64/tru64.cc:85:23: **error: **use of >>>> undeclared identifier* >>>> * 'MAP_POPULATE'; did you mean 'TGT_MAP_POPULATE'?* >>>> { TGT_MAP_POPULATE, MAP_POPULATE }, >>>> * ^~~~~~~~~~~~* >>>> TGT_MAP_POPULATE >>>> *build/ALPHA/arch/alpha/tru64/tru64.hh:80:27: note: *'TGT_MAP_POPULATE' >>>> declared >>>> here >>>> static const unsigned TGT_MAP_POPULATE = 0x08000; >>>> * ^* >>>> *build/ALPHA/arch/alpha/tru64/tru64.cc:86:20: **error: **use of >>>> undeclared identifier* >>>> * 'MAP_STACK'* >>>> { TGT_MAP_STACK, MAP_STACK }, >>>> * ^* >>>> *build/ALPHA/arch/alpha/tru64/tru64.cc:92:15: **error: **invalid >>>> application of* >>>> * 'sizeof' to an incomplete type 'SyscallFlagTransTable []'* >>>> sizeof(AlphaTru64::mmapFlagTable) / >>>> * ^~~~~~~~~~~~~~~~~~~~~~~~~~~* >>>> 10 errors generated. >>>> scons: *** [build/ALPHA/arch/alpha/tru64/tru64.do] Error 1 >>>> scons: building terminated because of errors. >>>> >>>> >>>> $ scons build/ALPHA_MOESI_hammer/gem5.debug >>>> *build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:85:23: **error: **use >>>> of* >>>> * undeclared identifier 'MAP_POPULATE'; did you mean >>>> 'TGT_MAP_POPULATE'?* >>>> { TGT_MAP_POPULATE, MAP_POPULATE }, >>>> * ^~~~~~~~~~~~* >>>> TGT_MAP_POPULATE >>>> *build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.hh:80:27: note: * >>>> 'TGT_MAP_POPULATE' declared here >>>> static const unsigned TGT_MAP_POPULATE = 0x08000; >>>> * ^* >>>> *build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:86:20: **error: **use >>>> of* >>>> * undeclared identifier 'MAP_STACK'* >>>> { TGT_MAP_STACK, MAP_STACK }, >>>> * ^* >>>> *build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.cc:92:15: **error: * >>>> *invalid* >>>> * application of 'sizeof' to an incomplete type >>>> 'SyscallFlagTransTable []'* >>>> sizeof(AlphaTru64::mmapFlagTable) / >>>> * ^~~~~~~~~~~~~~~~~~~~~~~~~~~* >>>> 10 errors generated. >>>> scons: *** [build/ALPHA_MOESI_hammer/arch/alpha/tru64/tru64.do] Error 1 >>>> scons: building terminated because of errors. >>>> >>>> Thanks for earliest reply. >>>> >>>> Best regards, >>>> >>>> F. A. Faisal >>>> >>>> >>>> _______________________________________________ >>>> gem5-users mailing list >>>> gem5-users@gem5.org >>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>>> >>> >>> >>> >>> -- >>> >>> Regards, >>> Abdul Mutaal >>> LinkedIn : https://de.linkedin.com/in/abdulmutaalahmad >>> Email : abdul.mut...@gmail.com >>> >>> >>> _______________________________________________ >>> gem5-users mailing list >>> gem5-users@gem5.org >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users