Bootstrapping with Apple's JDK 6 on Snow Leopard
Michael Franz
mvfranz at gmail.com
Sun Mar 28 16:24:09 PDT 2010
Kent,
I did some experimenting with this process. I was able to build OpenJDK
using Apple's JDK and an older version of OpenJDK7. The older version you
can get from here http://landonf.bikemonkey.org/2008/08/index.html
The process that I followed is based on the same process you used. Where it
is different is that I created a script to create a standard JDK layout
using Apple's JDK 1.6, applied small patches to langtools. The older JDK is
used only to run GenStubs. Where ever you install this JDK change the entry
I created in langtools/make/build.properties 'alt.java.home'.
Once this built, I used it to build the JDK again (I used two different
repos for this). I built it a second time so that I was not running any of
my patches - as they are only needed to work around limitation in Apple's
JDK.
Hope this works for you.
Michael
On Sat, Mar 27, 2010 at 11:52 PM, Michael Franz <mvfranz at gmail.com> wrote:
>
>
> On Fri, Mar 26, 2010 at 5:34 PM, Kent R. Spillner <kspillner at acm.org>wrote:
>
>> Howdy-
>>
>> Is anyone successfully building a 64-bit version of the latest source on
>> Snow Leopard with Apple's JDK 6? I can build a 32-bit version using the
>> Soylatte v1.0.3 32-bit binaries, but I can't successfully build any version
>> of OpenJDK using Apple's JDK 6.
>>
>> I tried following along with
>> http://justanapplication.wordpress.com/2009/11/17/bootstrapping-openjdk-7-on-snow-leopard/without success (see below). After patching
>> com.sun.tools.javac.jvm.ClassReader.java to fully qualify both references to
>> com.sun.tools.javac.jvm.ClassFile.Version, my langtools build fails during
>> the -def-genstubs Ant target because of an apparent API inconsistency
>> between Apple's com.sun.tools.javac.tree.JCTree and what OpenJDK expects.
>>
>> Might it be possible to work around this problem by pruning the list of
>> jars on the bootclasspath when invoking Apple's javac, or prepending the
>> OpenJDK build output directory containing JCTree to the bootclasspath? Are
>> there any Make variables I can use to explicitly override the bootclasspath?
>>
>>
> Here is a link to the portfile I put together for IcedTea 7 6 months ago.
> If you look at the post extract there are commands that work around some of
> the issues you have encountered. This was for JDK 5, but will probably be
> similar for JDK 6.
> http://trac.macports.org/attachment/ticket/21500/Portfile .
>
> I have not looked at this in probably 5 months as I have had limited free
> time.
>
> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20100328/5795878e/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create_jdk_structure.sh
Type: application/x-sh
Size: 873 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20100328/5795878e/create_jdk_structure.sh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: langools-applejdk-build.patch
Type: application/octet-stream
Size: 3021 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20100328/5795878e/langools-applejdk-build.patch
More information about the bsd-port-dev
mailing list