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?

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]
/usr/bin/x86_64-w64-mingw32-ld[0x4573ea]
/usr/bin/x86_64-w64-mingw32-ld[0x443997]
/usr/bin/x86_64-w64-mingw32-ld[0x410f42]
/usr/bin/x86_64-w64-mingw32-ld[0x411a4f]
/usr/bin/x86_64-w64-mingw32-ld[0x413cb2]
/usr/bin/x86_64-w64-mingw32-ld[0x4038a0]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x2ab75b3cded5]
/usr/bin/x86_64-w64-mingw32-ld[0x403de5]
======= Memory map: ========
00400000-00530000 r-xp 00000000 ca:01 10325
/usr/bin/x86_64-w64-mingw32-ld
0072f000-00730000 r--p 0012f000 ca:01 10325
/usr/bin/x86_64-w64-mingw32-ld
00730000-00736000 rw-p 00130000 ca:01 10325
/usr/bin/x86_64-w64-mingw32-ld
00736000-0073b000 rw-p 00000000 00:00 0
00edc000-00efd000 rw-p 00000000 00:00 0
[heap]
00efd000-00f20000 rw-p 00000000 00:00 0
[heap]
00f20000-00f50000 rw-p 00000000 00:00 0
[heap]
00f50000-00f71000 rw-p 00000000 00:00 0
[heap]
00f71000-00f92000 rw-p 00000000 00:00 0
[heap]
00f92000-00fb3000 rw-p 00000000 00:00 0
[heap]
00fb3000-00fd4000 rw-p 00000000 00:00 0
[heap]
00fd4000-00ff5000 rw-p 00000000 00:00 0
[heap]
00ff5000-01016000 rw-p 00000000 00:00 0
[heap]
01016000-01037000 rw-p 00000000 00:00 0
[heap]
01037000-01058000 rw-p 00000000 00:00 0
[heap]
01058000-01079000 rw-p 00000000 00:00 0
[heap]
01079000-0109a000 rw-p 00000000 00:00 0
[heap]
0109a000-010bb000 rw-p 00000000 00:00 0
[heap]
010bb000-010dc000 rw-p 00000000 00:00 0
[heap]
010dc000-010fe000 rw-p 00000000 00:00 0
[heap]
010fe000-0111f000 rw-p 00000000 00:00 0
[heap]
0111f000-01140000 rw-p 00000000 00:00 0
[heap]
01140000-01161000 rw-p 00000000 00:00 0
[heap]
01161000-01182000 rw-p 00000000 00:00 0
[heap]
01182000-011b4000 rw-p 00000000 00:00 0
[heap]
011b4000-011d5000 rw-p 00000000 00:00 0
[heap]
011d5000-011f6000 rw-p 00000000 00:00 0
[heap]
011f6000-01217000 rw-p 00000000 00:00 0
[heap]
01217000-01238000 rw-p 00000000 00:00 0
[heap]
2ab75ad6a000-2ab75ad8c000 r-xp 00000000 ca:01 147895
/lib/x86_64-linux-gnu/ld-2.18.so
2ab75ad8c000-2ab75ad8e000 rw-p 00000000 00:00 0
2ab75ad8e000-2ab75ad95000 r--s 00000000 ca:01 7959
/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
2ab75ad95000-2ab75ad96000 rw-p 00000000 00:00 0
2ab75ad96000-2ab75ad97000 rw-p 00000000 00:00 0
2ab75ad97000-2ab75ad98000 rw-p 00000000 00:00 0
2ab75ad98000-2ab75ad99000 rw-p 00000000 00:00 0
2ab75ad99000-2ab75ad9a000 rw-p 00000000 00:00 0
2ab75ad9a000-2ab75ad9b000 rw-p 00000000 00:00 0
2ab75ad9b000-2ab75ad9d000 rw-p 00000000 00:00 0
2ab75ad9d000-2ab75af26000 r--p 00000000 ca:01 317
/usr/lib/locale/locale-archive
2ab75af26000-2ab75af73000 rw-p 00000000 00:00 0
2ab75af73000-2ab75af74000 rw-p 00000000 00:00 0
2ab75af8c000-2ab75af8d000 r--p 00022000 ca:01 147895
/lib/x86_64-linux-gnu/ld-2.18.so
2ab75af8d000-2ab75af8f000 rw-p 00023000 ca:01 147895
/lib/x86_64-linux-gnu/ld-2.18.so
2ab75af8f000-2ab75afa7000 r-xp 00000000 ca:01 132943
/lib/x86_64-linux-gnu/libz.so.1.2.8
2ab75afa7000-2ab75b1a6000 ---p 00018000 ca:01 132943
/lib/x86_64-linux-gnu/libz.so.1.2.8
2ab75b1a6000-2ab75b1a7000 r--p 00017000 ca:01 132943
/lib/x86_64-linux-gnu/libz.so.1.2.8
2ab75b1a7000-2ab75b1a8000 rw-p 00018000 ca:01 132943
/lib/x86_64-linux-gnu/libz.so.1.2.8
2ab75b1a8000-2ab75b1ab000 r-xp 00000000 ca:01 147903
/lib/x86_64-linux-gnu/libdl-2.18.so
2ab75b1ab000-2ab75b3aa000 ---p 00003000 ca:01 147903
/lib/x86_64-linux-gnu/libdl-2.18.so
2ab75b3aa000-2ab75b3ab000 r--p 00002000 ca:01 147903
/lib/x86_64-linux-gnu/libdl-2.18.so
2ab75b3ab000-2ab75b3ac000 rw-p 00003000 ca:01 147903
/lib/x86_64-linux-gnu/libdl-2.18.so
2ab75b3ac000-2ab75b568000 r-xp 00000000 ca:01 147896
/lib/x86_64-linux-gnu/libc-2.18.so
2ab75b568000-2ab75b768000 ---p 001bc000 ca:01 147896
/lib/x86_64-linux-gnu/libc-2.18.so
2ab75b768000-2ab75b76c000 r--p 001bc000 ca:01 147896
/lib/x86_64-linux-gnu/libc-2.18.so
2ab75b76c000-2ab75b76e000 rw-p 001c0000 ca:01 147896
/lib/x86_64-linux-gnu/libc-2.18.so
2ab75b76e000-2ab75b773000 rw-p 00000000 00:00 0
2ab75b773000-2ab75b788000 r-xp 00000000 ca:01 131341
/lib/x86_64-linux-gnu/libgcc_s.so.1
2ab75b788000-2ab75b987000 ---p 00015000 ca:01 131341
/lib/x86_64-linux-gnu/libgcc_s.so.1
2ab75b987000-2ab75b988000 r--p 00014000 ca:01 131341
/lib/x86_64-linux-gnu/libgcc_s.so.1
2ab75b988000-2ab75b989000 rw-p 00015000 ca:01 131341
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fff06f68000-7fff06f8a000 rw-p 00000000 00:00 0
[stack]
7fff06fb9000-7fff06fbb000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
collect2: error: ld terminated with signal 6 [Aborted], core dumped
make[2]: *** [librobovm-llvm.dll] Error 1
make[1]: *** [CMakeFiles/robovm-llvm.dir/all] Error 2
make: *** [all] Error 2
------------------------------------------------------------------------------
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