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

Reply via email to