On Tue, July 12, 2011 1:27 am, Chih-Heng Kao wrote: > test > > 2011/7/12 Chih-Heng Kao <[email protected]> > >> my gcc version is 4.1.2 >> >> when I build the ALPHA_FS with Ruby >> >> I got the following error message by g++ compiler >> >> build/ALPHA_FS/mem/ruby/profiler/AddressProfiler.cc: In function 'void >> printSorted(std::ostream&, int, const AddressMap&, std::string)': >> build/ALPHA_FS/mem/ruby/profiler/AddressProfiler.cc:83: error: ambiguous >> overload for 'operator<<' in 'std::operator<< [with _Traits = std::c >> >> har_traits<char>](((std::basic_ostream<char, >> std::char_traits<char> >> >&)((std::ostream*)out)), ((const char*)"Total_entries_")) << >> description >> >> ' >> build/ALPHA_FS/base/stl_helpers.hh:86: note: candidates are: >> std::ostream& >> m5::stl_helpers::operator<<(std::ostream&, const C<T, A>&) [with T >> >> = char, C = std::basic_string, A = std::char_traits<char>] >> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/basic_string.h:2395: >> note: std::basic_ostream<_CharT, >> _Traits>& >> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const >> std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Tra >> >> its = std::char_traits<char>, _Alloc = std::allocator<char>] >> build/ALPHA_FS/mem/ruby/profiler/AddressProfiler.cc:86: error: ambiguous >> overload for 'operator<<' in 'std::operator<< [with _Traits = std::c >> >> ..... >> >> I google this problem but everyone just suggest me try to change a new >> version of gcc. >> >> but I have no power to change gcc version in my lab workstation. >> >> is there any else solution? >>
You can comment out those lines if you are not interested in address profiling. Other versions of gcc might be already available on the machine that you are using, may be you just need to figure out where they are installed. -- Nilay _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
