IcedTea/OpenJDK bootstrapping issue

Ludovic Courtès ludo at gnu.org
Mon Mar 8 05:08:20 PST 2010


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].

In hindsight, I’m guessing these hacks aren’t the right thing.  Can you
please provide me with pointers to documentation explaining how to do it
right?

Thanks,
Ludo’.

[0] http://ant.apache.org/manual/install.html#buildingant
[1] https://svn.nixos.org/repos/nix/nixpkgs/trunk/pkgs/development/tools/build-managers/apache-ant/use-gcj.patch
[2] https://svn.nixos.org/repos/nix/nixpkgs/trunk/pkgs/development/tools/build-managers/apache-ant/from-source.nix



More information about the distro-pkg-dev mailing list