From: Andrew John Hughes <ahughes@redhat.com>
To: Matthias Klose <doko@ubuntu.com>
Cc: GCC Java <java@gcc.gnu.org>,
debian-arm@lists.debian.org, debian-alpha@lists.debian.org,
distro-pkg-dev@openjdk.java.net
Subject: Re: icedtea6 build failures on alpha and armel using gcj
Date: Mon, 08 Mar 2010 12:35:00 -0000 [thread overview]
Message-ID: <17c6771e1003080434r30405864v4e362752bc146ef3@mail.gmail.com> (raw)
In-Reply-To: <4B94E374.9090700@ubuntu.com>
On 8 March 2010 11:45, Matthias Klose <doko@ubuntu.com> wrote:
> On 01.03.2010 20:54, Andrew John Hughes wrote:
>>
>> On 27 February 2010 16:49, Matthias Klose<doko@ubuntu.com> wrote:
>>>
>>> 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 b18
>>> update. On alpha:
>>>
>>> mkdir -p lib/rt
>>> /home/doko/openjdk/openjdk-6-6b18~pre1/build/bootstrap/jdk1.6.0/bin/javac
>>> -g -d lib/rt \
>>> -source 1.5 \
>>> -sourcepath \
>>>
>>>
>>> 'openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/corba/src/share/classes:/home/doko/openjdk/openjdk-6-6b18~pre1/build/generated'
>>> \
>>> -classpath /usr/lib/jvm/java-gcj/jre/lib/rt.jar \
>>> -bootclasspath \'\' @rt-source-files.txt ;
>>> incorrect classpath: ''
>>> ----------
>>> 1. ERROR in
>>>
>>> /home/doko/openjdk/openjdk-6-6b18~pre1/build/openjdk/jdk/src/share/classes/sun/misc/FloatConsts.java
>>> (at line 52)
>>> public static final float MIN_NORMAL = 1.17549435E-38f;
>>> ^^^^^^^^^^^^^^^
>>> 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. It's applied to the ecj build. Why 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
>
> class Test {
> public static final float MIN_NORMAL = 1.17549435E-38f;
> }
>
> fails to build:
>
> ----------
> 1. ERROR in Test.java (at line 2)
> public static final float MIN_NORMAL = 1.17549435E-38f;
> ^^^^^^^^^^^^^^^
> 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 openjdk
> 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).
>
> Matthias
>
--
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
next prev parent reply other threads:[~2010-03-08 12:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-27 16:49 Matthias Klose
2010-03-01 19:54 ` Andrew John Hughes
2010-03-08 11:46 ` Matthias Klose
2010-03-08 12:35 ` Andrew John Hughes [this message]
2010-03-08 12:41 ` Matthias Klose
2010-03-08 12:45 ` Andrew John Hughes
2010-03-08 14:36 ` Lennart Sorensen
2010-03-08 15:17 ` Andrew John Hughes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17c6771e1003080434r30405864v4e362752bc146ef3@mail.gmail.com \
--to=ahughes@redhat.com \
--cc=debian-alpha@lists.debian.org \
--cc=debian-arm@lists.debian.org \
--cc=distro-pkg-dev@openjdk.java.net \
--cc=doko@ubuntu.com \
--cc=gnu_andrew@member.fsf.org \
--cc=java@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).