Bootstrapping with Apple's JDK 6 on Snow Leopard

Michael Franz mvfranz at gmail.com
Sat Mar 27 20:52:14 PDT 2010


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/20100327/f56029cf/attachment.html 


More information about the bsd-port-dev mailing list