This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/35216] New: Out of memory building java
- From: "bugzilla-gcc at thewrittenword dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2008 05:14:28 -0000
- Subject: [Bug bootstrap/35216] New: Out of memory building java
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
We're trying to build 4.2.3 on HP-UX 11.23/PA and get an out of memory error:
$ bzip2 -dc gcc-4.2.3.tar.bz2 | tar xf -
$ mkdir gcc-4.2.3-objdir
$ cd gcc-4.2.3-objdir
$ CC=cc bash /opt/build/china/gcc-4.2.3/configure --with-included-gettext
--enable-shared --with-gnu-as
--with-as=/opt/build/china/gcc423/hppa2.0w-hp-hpux11.23/bin/as
--enable-languages="c,c++,java"
...
$ gmake bootstrap
...
/bin/sh ./libtool --mode=compile /opt/build/china/gcc-4.2.3-objdir/gcc/gcj
-B/opt/build/china/gcc-4.2.3-objdir/hppa2.0w-hp-hpux11.23/libjava/
-B/opt/build/china/gcc-4.2.3-objdir/gcc/ -fclasspath=
-fbootclasspath=/opt/build/china/gcc-4.2.3-objdir/hppa2.0w-hp-hpux11.23/libjava/classpath/lib
--encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -fjni
-findirect-dispatch -fno-indirect-classes -c -o gnu-xml.lo @gnu-xml.list
/opt/build/china/gcc-4.2.3-objdir/gcc/gcj
-B/opt/build/china/gcc-4.2.3-objdir/hppa2.0w-hp-hpux11.23/libjava/
-B/opt/build/china/gcc-4.2.3-objdir/gcc/ -fclasspath=
-fbootclasspath=/opt/build/china/gcc-4.2.3-objdir/hppa2.0w-hp-hpux11.23/libjava/classpath/lib
--encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -fjni
-findirect-dispatch -fno-indirect-classes -c @gnu-xml.list -fPIC -o
.libs/gnu-xml.o
jc1: out of memory allocating 4072 bytes after a total of 657973552 bytes
$ limit
cputime unlimited
filesize unlimited
datasize 2048MB
stacksize 128MB
coredumpsize 2047MB
resident unlimited
descriptors 2048
addressspace unlimited
cachedthreads 256
aiooperations unlimited
aiomemorylocked unlimited
RSESTACK 0
The build system has 2GB real memory and 4GB swap. How much memory does
building java require?
--
Summary: Out of memory building java
Product: gcc
Version: 4.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bugzilla-gcc at thewrittenword dot com
GCC build triplet: hppa2.0w-hp-hpux11.23
GCC host triplet: hppa2.0w-hp-hpux11.23
GCC target triplet: hppa2.0w-hp-hpux11.23
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35216