IcedTea/OpenJDK bootstrapping issue
Michal Vyskocil
mvyskocil at suse.cz
Wed Apr 7 07:30:24 PDT 2010
On Monday 08 March 2010 02:08:20 pm Ludovic Courtès wrote:
> Hi,
>
> Andrew John Hughes <gnu_andrew at member.fsf.org> writes:
> > 2010/1/21 Ludovic Courtès <ludo at gnu.org>:
> >> Andrew John Hughes <gnu_andrew at member.fsf.org> writes:
> [...]
>
> >>> Does ant work for you with other builds?
> >>
> >> Yes. This version of Ant was built with GCJ. It was then used to
> >> compile things like Xalan, Xerces, and Rhino.
> >
> > It seems something is broken with regard to Ant. The fact it's
> > looking for tools.jar in your gcj home directory rather than
> > bootstrap/jdk1.6.0 suggests it's ignoring the setting of
> > bootstrap.java.home. Have you checked that bootstrap/jd1.6.0 has a
> > valid jar file in jre/lib/rt.jar? I would guess it does as the
> > earlier stages have worked, but Ant is reverting to your system
> > install.
>
> Perhaps I should have started with this: how did you build the Ant
> that’s used to build IcedTea?
>
> I built it with GCJ, but Ant’s manual says it isn’t supported [0].
> I patched ‘build.properties’ to set ‘build.compiler’ to ‘gcj’ [1]. In
> addition I have gross hacks to make gcj/gij available as javac/java
> while building Ant itself [2].
The easiest way is simulate the Sun layout - see
http://sources.redhat.com/rhug/java-gcj-compat.html
ftp://sources.redhat.com/pub/rhug/java-gcj-compat
It create a structure similar to Sun's layout, so you don't need patch
anything, just use java-gcj-compat-devel as a build dependency. Not sure if
the gcj 4.4 layout support Andrew mentioned does not obsolete it.
Regards
Michal Vyskocil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20100407/613bd4d3/attachment.bin
More information about the distro-pkg-dev
mailing list