PATCH RFA: Add -static-libstdc++ option to g++

Toon Moene toon@moene.org
Thu Jul 2 19:00:00 GMT 2009


Andrew Haley wrote:

> Toon Moene wrote:

>> Andrew Haley wrote:
>>
>>>>   You might be able to get at it by breakpointing at the start of the
>>>> arg
>>>> handling code in g++spec.c, and setting a watchpoint on
>>>> one-after-the-end-of
>>>> the argv array, for example.
>>> Valgrind Memcheck is your friend.
>> Only if your application is small enough.  I have a 260 Mbyte
>> application that it won't get "mapped into memory".
> 
> I don't understand.  In what way won't it get "mapped into memory"?

Strictly speaking, I do not understand either, because the error message 
is rather cryptic:

+ valgrind /scratch/harmonie/hm_home/MPI/bin/MASTERODB -maladin -vmeteo 
-eHARM -c001 -t60 -fh06 -asli
valgrind: mmap(0x726f000, 1796198400) failed in UME with error 22 
(Invalid argument).
valgrind: this can be caused by executables with very large text, data 
or bss segments.

However, I interpret this as "your executable (either code or data) is 
too large to be handled".

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html



More information about the Gcc-patches mailing list