Re: Gcc bugs break java/jdk15 build? [Workaround]

From: Michiel Boland <michiel_at_boland.org>
Date: Wed, 15 Aug 2007 17:59:49 +0200 (MEST)
Alas, java/jdk15 build breaks for me on i386 -CURRENT with gcc 4.2.1
(bootstrapped with diablo-jdk 1.5)

The good news is perhaps that jdk15 builds ok on amd64 -CURRENT with 
diablo-jdk. But there the gcc version does not matter. That is, on amd64 I 
was already able to build jdk15, even with the 'old' gcc.

Last fragment of the i386 build typescript follows. I trimmed some very 
long line down somewhat.

Cheers
Michiel

gmake[5]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/javac'
<<<Finished Recursively making javac all _at_ Wed Aug 15 17:32:46 CEST 2007.
>>>Recursively making recompile all _at_ Wed Aug 15 17:32:46 CEST 2007 ...
gmake[5]: Entering directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile'
>>>Recursively making library all _at_ Wed Aug 15 17:32:46 CEST 2007 ...
gmake[6]: Entering directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile/library'
gmake classes copy-classes VARIANT=OPT
gmake[7]: Entering directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile/library'
/bin/mkdir -p /usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/java/java.lang/obj
/bin/mkdir -p /usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/java/java.lang/library/newclasses
rm -f /usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/java/java.lang/.classes.list
if [ -s /usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/java/java.lang/.classes.list ] ; \
 	then /usr/ports/java/jdk15/work/control/build/bsd-i586/bin/javac  -J-XX:ThreadStackSize=768 -J-Xms64m -J-Xmx256m -classpath "/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/java/java.lang/libra
 	    ../../../../../src/share/classes/java/lang/Object.java ../../../../../src/share/classes/java/lang/Class.java ../../../../../src/share/classes/java/lang/Thread.java ../../../../../src/share/classe
 	fi
../../../../../src/share/classes/java/nio/Bits.java:19: duplicate class: Bits
class Bits {				// package-private
^
../../../../../src/solaris/classes/sun/net/www/protocol/file/Handler.java:26: duplicate class: Handler
public class Handler extends URLStreamHandler {
        ^
../../../../../src/share/classes/java/lang/Class.java:10: cannot access java.lang.reflect.Array
bad class file: ../../../../../src/share/classes/java/lang/reflect/Array.java
file does not contain class java.lang.reflect.Array
Please remove or make sure it appears in the correct subdirectory of the classpath.
import java.lang.reflect.Array;
                          ^
3 errors
gmake[7]: *** [.compile.classlist] Error 1
gmake[7]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile/library'
gmake[6]: *** [optimized] Error 2
gmake[6]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile/library'
gmake[5]: *** [all] Error 1
gmake[5]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile'
gmake[4]: *** [all] Error 1
gmake[4]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/javac'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make'
gmake: *** [j2se-build] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk15.
*** Error code 1

Stop in /usr/ports/java/jdk15.
Received on Wed Aug 15 2007 - 14:00:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC