Bootstrapping with Apple's JDK 6 on Snow Leopard
christos at zoulas.com
Fri Mar 26 14:50:50 PDT 2010
On Mar 26, 4:34pm, kspillner at acm.org ("Kent R. Spillner") wrote:
-- Subject: Bootstrapping with Apple's JDK 6 on Snow Leopard
| 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?
| Also, setting ARCH_DATA_MODEL=64 causes the sanity goal to fail with the error:
| ERROR: FreeType version 2.3.0 or higher is required. \n /Users/sl4mmy/Work/openjdk/build/bsd-amd64/btbins/freetype_versioncheck
| Failed to build freetypecheck. \n
| Exiting because of the above error(s). \n
| make: *** [post-sanity] Error 1
| Does anyone know how to build a 64-bit JDK with the version of freetype that ships with Snow Leopard?
| With the Soylatte v1.0.3 32-bit binaries on Snow Leopard, I'm able to successfully build a 32-bit version of OpenJDK on my MacBook with the command:
| $ time env -i PATH=/Users/sl4mmy/Downloads/tmp/soylatte16-i386-1.0.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin make ALT_BOOTDIR=/Users/sl4mmy/Downloads/tmp/soylatte16-i386-1.0.3 ALT_FREETYPE_HEADERS_PATH=/usr/X11/include ALT_FREETYPE_LIB_PATH=/usr/X11/lib ALT_CUPS_HEADERS_PATH=/usr/include ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts LIBFFI_CFLAGS="-I/usr/include/ffi" ANT_HOME=/usr/share/ant NO_DOCS=true CC=gcc-4.0 CXX=g++-4.0
Are you using the correct version of jibx?
More information about the bsd-port-dev