From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26980 invoked by alias); 8 Mar 2010 12:35:06 -0000 Received: (qmail 26972 invoked by uid 22791); 8 Mar 2010 12:35:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Mar 2010 12:34:59 +0000 Received: by fg-out-1718.google.com with SMTP id 19so774666fgg.8 for ; Mon, 08 Mar 2010 04:34:57 -0800 (PST) MIME-Version: 1.0 Reply-To: gnu_andrew@member.fsf.org Received: by 10.239.186.133 with SMTP id g5mr433091hbh.118.1268051696607; Mon, 08 Mar 2010 04:34:56 -0800 (PST) In-Reply-To: <4B94E374.9090700@ubuntu.com> References: <4B894D27.5080804@ubuntu.com> <17c6771e1003011154l556ea301h92e54ff2d457eb6a@mail.gmail.com> <4B94E374.9090700@ubuntu.com> Date: Mon, 08 Mar 2010 12:35:00 -0000 Message-ID: <17c6771e1003080434r30405864v4e362752bc146ef3@mail.gmail.com> Subject: Re: icedtea6 build failures on alpha and armel using gcj From: Andrew John Hughes To: Matthias Klose Cc: GCC Java , debian-arm@lists.debian.org, debian-alpha@lists.debian.org, distro-pkg-dev@openjdk.java.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00006.txt.bz2 On 8 March 2010 11:45, Matthias Klose wrote: > On 01.03.2010 20:54, Andrew John Hughes wrote: >> >> On 27 February 2010 16:49, Matthias Klose =C2=A0wrote: >>> >>> Building icedtea6 on alpha and armel using a two stage bootstrap fails >>> with >>> different errors. These are no new errors, just rechecked the two stage >>> bootstrap, because the one stage build fails to build cacao after the b= 18 >>> update. On alpha: >>> >>> mkdir -p lib/rt >>> /home/doko/openjdk/openjdk-6-6b18~pre1/build/bootstrap/jdk1.6.0/bin/jav= ac >>> =C2=A0-g -d lib/rt \ >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-source 1.5 \ >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-sourcepath \ >>> >>> >>> 'openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/= langtools/src/share/classes:openjdk/corba/src/share/classes:/home/doko/open= jdk/openjdk-6-6b18~pre1/build/generated' >>> \ >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-classpath /usr/lib/jvm/java-gcj/jre/= lib/rt.jar \ >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-bootclasspath \'\' @rt-source-files.= txt ; >>> incorrect classpath: '' >>> ---------- >>> 1. ERROR in >>> >>> /home/doko/openjdk/openjdk-6-6b18~pre1/build/openjdk/jdk/src/share/clas= ses/sun/misc/FloatConsts.java >>> (at line 52) >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0public static final float =C2=A0 MIN_NORMAL = =C2=A0 =C2=A0 =C2=A0=3D 1.17549435E-38f; >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^^^^^^^^^^^^^^^ >>> The literal 1.17549435E-38f of type float is out of range >>> ---------- >>> 1 problem (1 error)make[1]: *** [stamps/rt-class-files.stamp] Error 255 >>> >>> >>> I vaguely remember we had a patch in the past to back out some of the >>> constants stuff. >>> >> >> We do still have a patch. =C2=A0It's applied to the ecj build. =C2=A0Why= are you >> using ecj for a non-bootstrap build, as it appears here? > > comparing the build logs on alpha and i386, this is the > stamps/rt-class-files.stamp target, which succeeds to build on i386, but = not > on alpha. This target always uses the openjdk sourcepath, not the > openjdk-ecj source path. > Ok, so it occurs in the early bootstrap stage which still uses the openjdk tree on IcedTea6 tree. IcedTea7 uses the patched bootstrap/ecj tree with the additional fixes to build the bootstrapping classes, so I'll backport this to 6. > and it looks like the patch is applied, but ecj can't parse this value on > alpha; the test program > > =C2=A0class Test { > =C2=A0 =C2=A0 =C2=A0 =C2=A0public static final float =C2=A0 MIN_NORMAL = =C2=A0 =C2=A0 =C2=A0=3D 1.17549435E-38f; > =C2=A0} > > fails to build: > > ---------- > 1. ERROR in Test.java (at line 2) > =C2=A0 =C2=A0 =C2=A0 =C2=A0public static final float =C2=A0 MIN_NORMAL = =C2=A0 =C2=A0 =C2=A0=3D 1.17549435E-38f; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^^^^^^^^^^^^^^^ > The literal 1.17549435E-38f of type float is out of range > ---------- > > > further, is it correct that the -ecj patch is applied to *both* the openj= dk > and openjdk-ecj directory? > > $ ls -l build/openjdk*/jdk/src/share/classes/sun/misc/FloatConsts.java > -rw-rw-r-- 2 doko doko 4147 Feb 17 03:14 > build/openjdk-ecj/jdk/src/share/classes/sun/misc/FloatConsts.java > -rw-rw-r-- 2 doko doko 4147 Feb 17 03:14 > build/openjdk/jdk/src/share/classes/sun/misc/FloatConsts.java > > these are still hard links. No it's specifically only applied to -ecj patches. You should only ever ship a build created from the openjdk tree and not openjdk-ecj/boot (i.e. the second stage of a full build or the result of a --with-openjdk/--disable-bootstrap build), which has a number of features turned off (including Nimbus). > > =C2=A0Matthias > --=20 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