> ------------------------------
>
> Subject: Re: [Mingw-w64-public] Linker crash
> To: "mingw-w64-public@lists.sourceforge.net"
>         <mingw-w64-public@lists.sourceforge.net>
> Message-ID:
>         <
> calc40c88ap2_vggkhgwp3dahb6nx-rgkdffhezn+lof16td...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
>
> > Hi,
> >
> > I'm trying to crosscompile robovm library (from robovm.org) on Linux to
> a
> > windows dll.
> > All small dlls and test work/run great on windows, but compiling
> basically
> > LLVM to a dll seems too much for the linker.
> > The linker crashes immediately with core dump, as seen below.
> >
> > Steps I took are explained at:
> > https://groups.google.com/forum/#!topic/robovm/-ysEgS_8J54
> >
> > Any suggestions?
> >
>
> What version of ld is crashing? If it's not 2.24, I'd try with this
> version.
>
> How much memory is it using at the moment of the crash (roughly)? If it is
> a lot, is it a 32-bit or 64-bit executable? It sounds like an out-of-memory
> issue. If x86_64-w64-mingw32-ld is a 32-bit executable and ld is using
> almost 2GB of memory, I'd suggest trying with a 64-bit linker.
>
> Ruben
>
>
It crashes so fast that I don't see significant memory use
I'm on latest Ubuntu, 64bit machine, 64 bit linker, 4GB mem
Linker option --no-keep-memory does not make any difference, not so sure is
mem problem...

When playing more with linker options, it seems to help to put
"-Wl,--whole-archive <archive>" as last parameter solves the crash!?
Anyway thanks for the quick response


> > Regards Jan
> >
> >
> >
> > -------------------
> > Linking CXX shared library librobovm-llvm.dll
> > *** Error in `/usr/bin/x86_64-w64-mingw32-ld': free(): invalid pointer:
> > 0x0000000001219888 ***
> > ======= Backtrace: =========
> > /lib/x86_64-linux-gnu/libc.so.6(+0x73baf)[0x2ab75b41fbaf]
> > /lib/x86_64-linux-gnu/libc.so.6(+0x8067a)[0x2ab75b42c67a]
> > /usr/bin/x86_64-w64-mingw32-ld[0x43ad15]
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to