Re: failed to build java/jdk15 on recent current - gcc4 issue ?

From: Greg Lewis <glewis_at_eyesbeyond.com>
Date: Mon, 4 Jun 2007 11:22:30 -0700
G'day Vladimir,

On Mon, Jun 04, 2007 at 09:05:37PM +0400, Vladimir Grebenschikov wrote:
> Todays 7-CURRENT with fresh ports tree:
> 
> 
> ../../../../../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.
> 
> 
> /usr/ports/java/jdk15# cvs status Makefile 
> ===================================================================
> File: Makefile          Status: Up-to-date
> 
>    Working revision:    1.126   Mon Jun  4 09:09:25 2007
>    Repository revision: 1.126   /usr/ncvs/ports/java/jdk15/Makefile,v
>    Sticky Tag:          (none)
>    Sticky Date:         (none)
>    Sticky Options:      (none)
> /usr/ports/java/jdk15#
> 
> Deps ports are also built recently.
> 
> java/jdk14 also fails to build.

jdk14 has some different problems (possibly as well as this problem)
related to GCC4.  Those are on my TODO list and should be fairly similar
to the changes done for jdk15.

> Any hints ?

There are multiple reports of similar failures on 7-CURRENT/i386.  The
cause is unclear and I'm not sure if anyone is working on it.

If you really need a working JDK you should use -STABLE or try one of
the Linux JDK ports (although they also have some problems on -CURRENT,
at least under amd64 it seems).

-- 
Greg Lewis                          Email   : glewis_at_eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis_at_FreeBSD.org
Received on Mon Jun 04 2007 - 16:53:05 UTC

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