IcedTea bootstrap and OpenJDK build broken with ecj-3.8/4.2
Andrew Hughes
gnu.andrew at redhat.com
Mon Apr 15 06:31:29 PDT 2013
----- Original Message -----
> I'm trying to update the ecj.jar shipped with Debian and Ubuntu, then
> noticing
> build problems not yet reported, and then noticing about the updated version
> in
> Fedora. Isn't the OpenJDK bootstrap used anymore?
>
Yes, I do a full bootstrap on every change. I use either the gcj version of ecj
with CACAO or the later 3.6 natively compiled for gcj:
$ /home/andrew/build/cacao-jdk/bin/javac -version
Eclipse Java Compiler 0.972_R35x, 3.5.1 release, Copyright IBM Corp 2000, 2009. All rights reserved.
$ /usr/lib/gcj-jdk-4.8.0/bin/javac -version
Eclipse Compiler for Java(TM) 0.A58, 3.6.0, Copyright IBM Corp 2000, 2010. All rights reserved.
I have 3.8/4.2 installed too, but it doesn't even build with gcj.
> See http://gcc.gnu.org/ml/java-patches/2013-q2/msg00009.html for the ecj
> updates
> (R3_8_2), the jar can be found at
> http://people.debian.org/~doko/tmp/eclipse-gcj/.
>
I see this has literally just been posted.
I asked you about updating the version used by gcj some time ago, but don't recall
ever seeing a reply.
> Tried to build the 2.3.x branch with this new javac.
>
> The build fails first in the stamps/rt-class-files.stamp target with some
> hundred warnings:
>
> 1. ERROR in .../openjdk-boot/jdk/src/share/classes/java/lang/Thread.java
> (at
> line 1619)
> Map<Thread, StackTraceElement[]> m = new HashMap<>(threads.length);
> ^^^^^^^
> '<>' operator is not allowed for source level below 1.7
>
> Setting IT_LANGUAGE_SOURCE_VERSION=7 and IT_CLASS_TARGET_VERSION=7 fixes this
> for me. Is there anything going wrong when setting this to 7 for the stage1
> build? If not, then these two macros should be set by autoconf depending on
> the
> compiler accepting this operator.
>
It does. You have a configuration error here, whereby configure is detecting you
have a javac capable of using <> and is not applying the diamond patch.
Please post your config.log.
>
> Next the build fails for some java classes (ecj-hacks.diff). Could somebody
> look at these errors? Are these ecj compiler bugs? My work around was to
> comment out the offending lines, and add these hacks to ICEDTEA_BOOT_PATCHES.
> The resulting build and jtreg runs look fine to me.
The build works fine for me using the above mentioned versions of ecj. Please
stick to these for now.
>
> Matthias
>
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
More information about the distro-pkg-dev
mailing list