Seems like having a g++ and gcc version that are different is asking for disaster.
Ali On May 4, 2012, at 4:01 AM, GE ZHIGUO wrote: > Hi, Andreas: > > Thanks for your advices! > > The version is the latest one. > > The compilation command is: > scons build/ARM/gem5.opt > > The followings are the configurations: > Gcc version is: > gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) > > g++ version is: > gcc version 4.4.6 (Ubuntu/Linaro 4.4.6-11ubuntu2) > > OS is Ubuntu32 11.10: > Linux linux22 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 > i686 i686 i386 GNU/Linux > > Regards, > Zhiguo > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of Andreas Hansson > Sent: Friday, May 04, 2012 3:26 PM > To: gem5 Developer List > Subject: Re: [gem5-dev] Compilation problems > > This issue seems to have affected 32-bit Ubuntu systems due to differences in > what hash functions gcc's version of STL has predefined. The problem should > be addressed since a few weeks back. If you are using the latest revision of > gem5 and still experiencing this problem please provide more details about > your system setup to aid in identifying the problem. > > Andreas > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of GE ZHIGUO > Sent: 04 May 2012 04:23 > To: gem5 Developer List > Subject: [gem5-dev] Compilation problems > > I encountered some problems when compiling gem5-dev branch codes on ubuntu > system. > It seems that the problem is caused by the function declaration conflict > between gem5 and g++ . > > Could anyone help me with this? Thanks! > > > In file included from build/ARM/arch/arm/types.hh:48, > from build/ARM/arch/arm/isa_traits.hh:48, > from build/ARM/arch/arm/tlb.hh:48, > from build/ARM/arch/tlb.hh:1, > from build/ARM/cpu/base.cc:50: > build/ARM/base/hashmap.hh:157: error: specialization of 'std::tr1::hash<long > long unsigned int>' after instantiation > build/ARM/base/hashmap.hh:157: error: redefinition of 'struct > std::tr1::hash<long long unsigned int>' > /usr/include/c++/4.4/tr1_impl/functional_hash.h:39: error: previous > definition of 'struct std::tr1::hash<long long unsigned int>' > build/ARM/base/hashmap.hh:164: error: specialization of 'std::tr1::hash<long > long int>' after instantiation > build/ARM/base/hashmap.hh:164: error: redefinition of 'struct > std::tr1::hash<long long int>' > /usr/include/c++/4.4/tr1_impl/functional_hash.h:39: error: previous > definition of 'struct std::tr1::hash<long long int>' > scons: *** [build/ARM/cpu/base.fo] Error 1 > scons: building terminated because of errors. > > > > > > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev > > > -- 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-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev > _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
