Assertion failure while compiling jdk14
Greg Lewis
glewis at eyesbeyond.com
Thu Oct 30 12:34:11 PST 2003
On Thu, Oct 30, 2003 at 12:51:01PM -0500, Christopher Rued wrote:
> Christopher Rued wrote:
>
> >Greg Lewis wrote:
> >
> >>On Thu, Oct 30, 2003 at 12:07:55PM -0500, Christopher Rued wrote:
> >>
> >>
> >>>While attempting to build jdk14 last night, I received the following
> >>>error:
> >>>
> >>>#
> >>># HotSpot Virtual Machine Error, assertion failure
> >>># Please report this error at
> >>># http://java.sun.com/cgi-bin/bugreport.cgi
> >>>#
> >>># Java VM: Java HotSpot(TM) Client VM
> >>>(1.4.1-p4-cbr_29_oct_2003_16_42-debug mixed mode)
> >>>#
> >>># assert(VM_Version::is_P6() || dest->has_byte_register(), "must use
> >>>byte registers if not P6")
> >>>#
> >>># Error ID:
> >>>/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/c1_LIRAssembler_i486.cpp,
> >>>1145
> >>
> >>Asserts should only fire when using the debug version of something.
> >>Can you post a few lines above the problem or verify that the build was
> >>trying to do something with one of the *_g executables?
> >
> >Unfortunately, I didn't save the output as I compiled, and have now
> >let the output scroll off of my screen. I have started a new compile,
> >using 'script' to save the output. I should be able to get back to
> >you in about a day or so :-).
>
> Since I didn't do a `make clean` first, it finished a lot faster.
> Here's what it was trying to do when the assertion failed:
>
> ...
> gmake[3]: Entering directory
> `/usr/ports/java/jdk14/work/j2se/ext/plugin/make'
> 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:ThreadStackSize=768 -J-Xms64m -J-Xmx256m -J-Xmaxf1 -classpath
> /usr/ports/java/jdk14/work/control/build/bsd-i586/classes -bootclasspath
> "/usr/port
> s/java/jdk14/work/control/build/bsd-i586/lib/jce.jar:/usr/ports/java/jdk14/work/control/build/bsd-i586/lib/jsse.jar"
> -sourcepath
> "/usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc:../../../make/../src/solaris/cla
> sses:../../../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
> ../src/share/converter/sun/plugin/converter/engine/AppletPieces.java
> ../src/share/converter/sun/plugin/converter/engine/ConvertFile.java
> ../src/share/converter/sun/plugin/co
> nverter/engine/ConvertSet.java
> ../src/share/converter/sun/plugin/converter/engine/DefaultSet.java
> ../src/share/converter/sun/plugin/converter/engine/ConverterProgressEvent.java
> ../src/share/converter/sun/plugin/converte
> r/engine/Converter.java
> ../src/share/converter/sun/plugin/converter/engine/ConverterProgressListener.java
> ../src/share/converter/sun/plugin/converter/engine/PluginConverter.java
> ../src/share/converter/sun/plugin/convert
> er/gui/ConverterGUI.java
> ../src/share/converter/sun/plugin/converter/gui/ProgressGUI.java
> ../src/share/converter/sun/plugin/converter/ResourceHandler.java
> ../src/share/converter/sun/plugin/converter/util/AdvancedDialog.
> java ../src/share/converter/sun/plugin/converter/util/BasicPrinter.java
> ../src/share/converter/sun/plugin/converter/util/FlexFilter.java
> ../src/share/converter/sun/plugin/converter/util/HelpDialog.java
> ../src/share/conv
> erter/sun/plugin/converter/util/NotDirectoryException.java
> ../src/share/converter/sun/plugin/converter/util/PrintManyPlaces.java
> ../src/share/converter/sun/plugin/converter/util/NotFileException.java
> ../src/share/conver
> ter/sun/plugin/converter/util/StdUtils.java
> ../src/share/converter/sun/plugin/converter/util/CommandLine.java
> ../src/share/converter/sun/plugin/converter/util/CommandLineException.java
> ../src/share/converter/sun/plugin/
> converter/util/FileAccessException.java
> ../src/share/converter/sun/plugin/converter/resources/Converter.java
> ../src/share/converter/sun/plugin/converter/resources/Converter_de.java
> ../src/share/converter/sun/plugin/conv
> erter/resources/Converter_es.java
> ../src/share/converter/sun/plugin/converter/resources/Converter_fr.java
> ../src/share/converter/sun/plugin/converter/resources/Converter_it.java
> ../src/share/converter/sun/plugin/convert
> er/resources/Converter_ja.java
> ../src/share/converter/sun/plugin/converter/resources/Converter_ko.java
> ../src/share/converter/sun/plugin/converter/resources/Converter_sv.java
> ../src/share/converter/sun/plugin/converter/
> resources/Converter_zh_CN.java
> ../src/share/converter/sun/plugin/converter/resources/Converter_zh_TW.java
> ; \
> fi
> VM option 'ThreadStackSize=768'
> ...
> <Snip JVM crash message, since it's listed above />
>
> As you predicted, it's trying to use javac_g to compile several java
> classes.
>
> Should I change all *_g commands in the makefiles (or at least this
> particular javac_g command) to the corresponing non-_g command?
Look at j2se/make/common/Defs.gmk. It currently contains the patch to
set javah_g to javah on BSD. Try adding a similar thing for the JAVAC
variable.
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the freebsd-java
mailing list