IcedTea/OpenJDK bootstrapping issue

Andrew John Hughes ahughes at redhat.com
Wed Apr 7 09:17:35 PDT 2010


On 7 April 2010 15:54, Matthias Klose <doko at ubuntu.com> wrote:
> On 07.04.2010 17:34, Andrew John Hughes wrote:
>>
>> On 7 April 2010 14:30, Michal Vyskocil<mvyskocil at suse.cz>  wrote:
>>>
>>> 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.
>>>
>>
>> The gcj 4.4 support _is_ java-gcj-compat integrated into gcc.
>>
>> ./configure --prefix=/home/andrew/build/gcj --enable-java-home
>> --with-jvm-root-dir=/home/andrew/build/gcj/jdk
>> --with-jvm-jar-dir=/home/andrew/build/gcj/jvm-exports
>
> you forgot --with-java-home=/home/andrew/build/gcj/jdk/jre
>
>

Is that necessary? Works here without it.
-- 
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



More information about the distro-pkg-dev mailing list