Have you tried a different compiler version?  4.1.2 is kind of old,
and IIRC, the whole 4.1 series was a bit buggy.

Steve

On Wed, Sep 1, 2010 at 10:04 AM, Nilay Vaish <[email protected]> wrote:
> I have been trying to compile M5 with Ruby. I am using the following the
> command
>
> scons -j 4 USE_MYSQL=False RUBY=True build/ALPHA_SE/m5.debug
>
> I think it should correctly compile M5 with Ruby. The problem is that this
> works only till changeset 7453 and fails for 7454 (obviously I have not
> tested for all the versions but even the latest one fails). The first error
> I get is
>
> build/ALPHA_SE/mem/ruby/profiler/AddressProfiler.cc: In function 'void
> printSorted(std::ostream&, int, const AddressMap*, std::string)':
>
> build/ALPHA_SE/mem/ruby/profiler/AddressProfiler.cc:70: error: ambiguous
> overload for 'operator<<' in 'std::operator<< [with _Traits =
> std::char_traits<char>](((std::basic_ostream<char, std::char_traits<char>
>>
>> &)((std::ostream*)out)), ((const char*)"Total_entries_")) << description'
>
> build/ALPHA_SE/base/stl_helpers.hh:85: 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, _Traits =
> std::char_traits<char>, _Alloc = std::allocator<char>]
>
>
> Can some one look into this?
>
> --
> Nilay
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to