Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2007 11:22:30 -0700
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Vladimir Grebenschikov <vova@sw.ru>
Cc:        java@freesbd.org, current <current@freebsd.org>
Subject:   Re: failed to build java/jdk15 on recent current - gcc4 issue ?
Message-ID:  <20070604182230.GA26966@misty.eyesbeyond.com>
In-Reply-To: <1180976737.24934.4.camel@localhost>
References:  <1180976737.24934.4.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org



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