Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Nov 2003 11:15:46 -0500
From:      Christopher Rued <c.rued@xsb.com>
To:        Marcin Grabda <grabka999@interia.pl>
Cc:        freebsd-java@freebsd.org
Subject:   Re: jdk14 compile error
Message-ID:  <3FA7D0B2.909@xsb.com>
In-Reply-To: <3FA7AD52.9010604@interia.pl>
References:  <3FA7AD52.9010604@interia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Marcin Grabda wrote:

> I have though that it might be useful for you.
>
> gmake[3]: Leaving directory 
> `/usr/ports/java/jdk14/work/j2se/ext/plugin/make'
> gmake classes .library.install .scripts.install VARIANT=DBG
> gmake[3]: Entering directory 
> `/usr/ports/java/jdk14/work/j2se/ext/plugin/make'
> /bin/mkdir -p 
> /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/classes_g
> rm -f /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/.classes.list
> if [ -s 
> /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/.classes.list ] ;
> \
> then /usr/ports/java/jdk14/work/control/build/bsd-i586/bin/javac_g  
> -J-XX:Thread
> StackSize=768 -J-Xms64m -J-Xmx256m -J-Xmaxf1 -classpath 
> /usr/ports/java/jdk14/wo
> rk/control/build/bsd-i586/classes -bootclasspath 
> "/usr/ports/java/jdk14/work/con
> trol/build/bsd-i586/lib/jce.jar:/usr/ports/java/jdk14/work/control/build/bsd-i58 
>
> 6/lib/jsse.jar" -sourcepath 
> "/usr/ports/java/jdk14/work/control/build/bsd-i586/g
> ensrc:../../../make/../src/solaris/classes:../../../make/../src/share/classes" 
> -
> d /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/classes_g -g  
> -source 1.
> 4 \
>    ../src/share/converter/HTMLConverter.java

<SNIP>

> fi
> Error occurred during initialization of VM
> java.lang.OutOfMemoryError
> Dumping core....
> VM option 'ThreadStackSize=768'
> Abort trap (core dumped)
> gmake[3]: Leaving directory 
> `/usr/ports/java/jdk14/work/j2se/ext/plugin/make'
> gmake[2]: Leaving directory 
> `/usr/ports/java/jdk14/work/j2se/ext/plugin/make'
> gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make'
> *** Error code 2
>
> Stop in /usr/ports/java/jdk14.

FWIW, my compile failed in exactly the same place on a K6-2 processor.  
The only difference was that I did *not* receive the 
java.lang.OutOfMemoryError, and I *did* receive a "Virtual Machine 
Error" message before it dumped core.

See 
http://www.freebsd.org/cgi/getmsg.cgi?fetch=189108+192826+/usr/local/www/db/text/2003/freebsd-java/20031102.freebsd-java 
for more information, and for the patch I used to fix the problem.

Note that, if you want to apply the patch using the ports system, you'll 
have to do a make clean first, and then restart your build.

HTH,

--Chris




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FA7D0B2.909>