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