gcj cross compiler ld out of memory
Heitzso
heitzso@growthmodels.com
Wed Mar 1 21:31:00 GMT 2006
With 4.1.0 final, setup as cross compiler to Windows mingw32
i686-pc-mingw32
... and with PATH set to pickup the ~/gcc-4.1/win/cross.bin
directory before other standard bin directories ...
I've compiled windows swt.jar M5a with:
i686-pc-mingw32-gcj -shared -O2 \
-fno-bounds-check -fno-store-check -fjni \
-c -o /home/heitzso/visassist.build/lib/win/libswt.dll \
/home/heitzso/visassist.cvs/tools/lib/win/swt.jar
with no complaints from the compile process.
I then compile my app *.java files and try to link w/ the
just built libswt.dll file using script like:
i686-pc-mingw32-gcj -O2 \
-fno-bounds-check -fno-store-check -fjni \
--main=com.visassist.cuelinereader.CueLineReader \
--classpath .:/swt.jar \
-o Blat.exe path_to_java/*.java -Llibpath -lswt -mwindows
And it compiles fine, i.e. crunches for a minute or two,
but then in the link stage:
/i686-pc-mingw32/bin/ld: out of memory allocating 1952539694 bytes \
after a total of 712704 bytes
?? Clues ??
I am able to compile and link the same code on a Win2k Pro
using Mohan's latest 4.0 tarball, though I'm sorting through
runtime problems in that environment.
Same code runs fine under Win/OSX/Linux JVMs.
Thanks,
Heitzso
More information about the Java
mailing list