[IcedTea7] Bootstrap using GCJ-4.4 ?

Andrew John Hughes ahughes at redhat.com
Mon Apr 26 05:51:49 PDT 2010


On 19 April 2010 16:13, Damien Raude-Morvan <drazzib at drazzib.com> wrote:
> Hi,
>
> I'm trying to prepare some experimental OpenJDK-7 Debian packages based on
> Matthias Klose work. First step is to build current icedtea7 hg HEAD [0] but
> I haven't managed yet : I always get an exception during bootstrap (with
> GCJ) :
>
> -create-import-jdk-stubs:
>    [mkdir] Created dir:
> /tmp/buildd/openjdk-7-7b84/build/openjdk-boot/build/linux-amd64/langtools/build/genstubs
>  [genstubs] Generating 81 stub files to
> /tmp/buildd/openjdk-7-7b84/build/openjdk-boot/build/linux-amd64/langtools/build/genstubs
>
> BUILD FAILED
> java.lang.NoClassDefFoundError: GenStubs
>   at java.lang.Class.initializeClass(libgcj.so.10)
>   at GenStubs$Ant.execute(Unknown Source)
> [...]
> Caused by: java.lang.ClassNotFoundException:
> javax.tools.JavaFileManager$Location
> [...]
>   at java.lang.Class.initializeClass(libgcj.so.10)
>   ...15 more
>
> You can get my full build log here : [1].
>

There are some issues with HEAD I need to look at, that's why there
hasn't been a new release yet.  Have you tried 1.12?

> Some important informations :
> - AFAIK, javax.tools.JavaFileManager$Location is only available since 1.6
> Java API level (so it's not bundled with GCJ classpath implementation).

This is true of a lot of classes.  We pre-build them before entering
the OpenJDK build to get round this.  I'll have to look at your logs
to see why this is not being built here.

> - Bootstrap part end successfuly when using OpenJDK-6 as stage1 (getting
> other issues later on but that's another story...)

Use --disable-bootstrap when using OpenJDK6.  A full bootstrap cycle
with OpenJDK is not yet supported.

> - IcedTea's Build server IcedTea fails with the same stacktrace [2].
>

It's slightly different, but yes this is what I referred to above.

> Any ideas how to fix this ?
>
> [0] http://icedtea.classpath.org/hg/icedtea/
> [1] http://people.debian.org/~drazzib/openjdk-7_7b84-1~ppa1_amd64.build
> [2] http://icedtea.classpath.org/builds/icedtea7/build-icedtea7.log
>
>
> Cheers,
> --
> Damien
>



-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8



More information about the distro-pkg-dev mailing list