This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld coredump while compiling parma polyhedra library for i686-w64-mingw32 target


On 04/03/2011 18:02, Alen Skondro wrote:
> While compiling PPL v0.11.2 for i686-w64-mingw32 target (cross compiler host is
> i686-pc-cygwin) ld.exe coredumps with:
> 
> I'm using
> * GNU Binutils 2.21.51.20110304
> * GCC 4.6

  While I'm working on reproducing this, here's a couple of things you can try:

1)  If you haven't already done so, try setting your heap_chunk_in_mb setting
to 1024 or even 1536, as described here:

http://cygwin.com/cygwin-ug-net/setup-maxmem.html

2)  The problem I think may be related to an increase in the number of comdat
sections output by 4.6 versions of gcc relative to earlier ones, perhaps in
conjunction with some inefficiency in the linker's handling of them.  This
might be mitigated by trying a build of PPL with CFLAGS including the new
"-fno-keep-inline-dllexport" flag available in 4.6, but that could also
conceivably lead to an incomplete library because it's a rather blunt tool (it
needs the sources to be designed to take it into account for it to be
guaranteed to work completely correctly).

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]