Bug 31570 - GCC 4.3 needs more than 512MB of memory building libgcj
Summary: GCC 4.3 needs more than 512MB of memory building libgcj
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2007-04-14 05:04 UTC by Vaclav Kocian
Modified: 2007-08-25 14:52 UTC (History)
3 users (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed: 2007-08-25 14:52:21


Note You need to log in before you can comment on or make changes to this bug.
Description Vaclav Kocian 2007-04-14 05:04:36 UTC
Here is what I've got:

/bin/sh ./libtool --mode=compile /usr/ports/lang/gcc43/work/build/gcc/gcj -B/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava/ -B/usr/ports/lang/gcc43/work/build/gcc/ -ffloat-store -fomit-frame-pointer -fclasspath= -fbootclasspath=../.././..//gcc-4.3-20070323/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c -o gnu/javax/swing/text/html/parser/HTML_401F.lo -fsource-filename=/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava/classpath/lib/classes -MT gnu/javax/swing/text/html/parser/HTML_401F.lo -MD -MP -MF gnu/javax/swing/text/html/parser/HTML_401F.deps @gnu/javax/swing/text/html/parser/HTML_401F.list
/usr/ports/lang/gcc43/work/build/gcc/gcj -B/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava/ -B/usr/ports/lang/gcc43/work/build/gcc/ -ffloat-store -fomit-frame-pointer -fclasspath= -fbootclasspath=../.././..//gcc-4.3-20070323/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c -fsource-filename=/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava/classpath/lib/classes -MT gnu/javax/swing/text/html/parser/HTML_401F.lo -MD -MP -MF gnu/javax/swing/text/html/parser/HTML_401F.deps @gnu/javax/swing/text/html/parser/HTML_401F.list -fPIC -o gnu/javax/swing/text/html/parser/.libs/HTML_401F.o
gcj: Internal error: Killed: 9 (program jc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[3]: *** [gnu/javax/swing/text/html/parser/HTML_401F.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava'
gmake[1]: *** [all-target-libjava] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc43/work/build'
gmake: *** [bootstrap-lean] Error 2

# gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305

My system is FreeBSD 6.2

Have a nice day :-)
Comment 1 Andrew Pinski 2007-04-21 22:16:29 UTC
How much memory do you have?
20070323 is over a month old, can you try a new snapshot?
Comment 2 Vaclav Kocian 2007-04-23 15:33:42 UTC
My RAM is 512MB. Well, the newer version of gcc says :

You need to increase the datasize limit to at least 700000 (and set
kern.maxdsiz="734003200" in /boot/loader.conf) to build with Java

I do not understand it fully, but it seems quite differently. For now, I'm satisfied with gcc42.
Comment 3 Gerald Pfeifer 2007-08-25 14:52:20 UTC
Indeed the (known) problem here is that GCC 4.3 uses more than 512MB
of memory building these Java files.

When I first reported this about eight months ago some attempts were
made to address it, but talking to some of the GCC developers working
in this area it is unlikely this is going to be addressed.