Bootstrapping with Apple's JDK 6 on Snow Leopard

Kent R. Spillner kspillner at acm.org
Fri Mar 26 14:34:25 PDT 2010


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?

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

[OUTPUT SNIPPED]
>>>Making sec-files-win @ Thu Mar 25 14:00:30 CDT 2010 ...
>>>Making jgss-files @ Thu Mar 25 14:00:30 CDT 2010 ...
>>>Finished making images @ Thu Mar 25 14:00:30 CDT 2010 ...
########################################################################
##### Leaving  jdk for target  sanity all  images                  #####
########################################################################
########################################################################

Control bsd i586 1.7.0-internal build_product_image build finished: 10-03-25 14:00
Control bsd i586 1.7.0-internal all_product_build build finished: 10-03-25 14:00
Control bsd i586 1.7.0-internal all build finished: 10-03-25 14:00

real	58m24.447s
user	42m37.251s
sys	9m14.620s
$

Thanks in advance!

Best,
Kent

plato:openjdk sl4mmy$ uname -a
Darwin plato 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
plato:openjdk sl4mmy$ hg summary
parent: 192:9f250d0d1b40 tip
 Merge from main OpenJDK repository
branch: default
commit: (clean)
update: (current)
plato:openjdk sl4mmy$ hg fstatus
[.]

[corba]

[hotspot]

[jaxp]

[jaxws]

[jdk]

[langtools]

plato:openjdk sl4mmy$ env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin make ALT_BOOTDIR=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home 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

Control bsd i586 1.7.0-internal all build started: 10-03-25 11:02
( cd  ./jdk/make && \
	  make sanity HOTSPOT_IMPORT_CHECK=false JDK_TOPDIR=/Users/sl4mmy/Work/openjdk/jdk JDK_MAKE_SHARED_DIR=/Users/sl4mmy/Work/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=internal BUILD_NUMBER=b00 JDK_BUILD_NUMBER=b00 FULL_VERSION=1.7.0-internal-sl4mmy_2010_03_25_11_02-b00 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 ARCH_DATA_MODEL=32 COOKED_BUILD_NUMBER=0 ANT_HOME="/usr/share/ant" ALT_OUTPUTDIR=/Users/sl4mmy/Work/openjdk/build/bsd-i586 ALT_LANGTOOLS_DIST=/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/dist ALT_CORBA_DIST=/Users/sl4mmy/Work/openjdk/build/bsd-i586/corba/dist ALT_JAXP_DIST=/Users/sl4mmy/Work/openjdk/build/bsd-i586/jaxp/dist ALT_JAXWS_DIST=/Users/sl4mmy/Work/openjdk/build/bsd-i586/jaxws/dist ALT_HOTSPOT_IMPORT_PATH=/Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import BUILD_HOTSPOT=true ; )

Build Machine Information:
   build machine = plato

Build Directory Structure:
   CWD = /Users/sl4mmy/Work/openjdk
   TOPDIR = .
   CONTROL_TOPDIR = .
   LANGTOOLS_TOPDIR = ./langtools
   JAXP_TOPDIR = ./jaxp
   JAXWS_TOPDIR = ./jaxws
   CORBA_TOPDIR = ./corba
   HOTSPOT_TOPDIR = ./hotspot
   JDK_TOPDIR = ./jdk

Build Directives:
   BUILD_LANGTOOLS = true 
   BUILD_JAXP = true 
   BUILD_JAXWS = true 
   BUILD_CORBA = true 
   BUILD_HOTSPOT = true 
   BUILD_JDK    = true 
   DEBUG_CLASSFILES =  
   DEBUG_BINARIES =  

Hotspot Settings: \n      HOTSPOT_BUILD_JOBS  =  \n      HOTSPOT_OUTPUTDIR   = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/outputdir \n      HOTSPOT_EXPORT_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import \n \n

\nBootstrap Settings:\n  BOOTDIR = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home\n    ALT_BOOTDIR = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home\n  BOOT_VER = 1.6.0 [requires at least 1.5]\n  OUTPUTDIR = /Users/sl4mmy/Work/openjdk/build/bsd-i586\n    ALT_OUTPUTDIR = /Users/sl4mmy/Work/openjdk/build/bsd-i586\n  ABS_OUTPUTDIR = /Users/sl4mmy/Work/openjdk/build/bsd-i586\n \nBuild Tool Settings:\n  SLASH_JAVA = /NOT-SET\n    ALT_SLASH_JAVA = \n  VARIANT = OPT\n  JDK_DEVTOOLS_DIR = /NOT-SET/devtools\n    ALT_JDK_DEVTOOLS_DIR = \n  ANT_HOME = /usr/share/ant\n  UNIXCOMMAND_PATH = /bin/\n    ALT_UNIXCOMMAND_PATH = \n  COMPILER_PATH = /usr/bin/\n    ALT_COMPILER_PATH = \n  DEVTOOLS_PATH = /opt/local/bin/\n    ALT_DEVTOOLS_PATH = \n  COMPILER_NAME = GCC4\n  COMPILER_VERSION = GCC4\n  CC_VER = 4.2.1 [requires at least 3.2]\n  ZIP_VER = 3.0 [requires at least 2.2]\n  UNZIP_VER = 5.52 [requires at least 5.12]\n  ANT_VER = 1.7.1 [requires at least 1.6.3]\n  TEMPDIR = /Users/sl4mmy/Work/openjdk/build/bsd-i586/tmp\n \nBuild Directives:\n  OPENJDK = true\n  USE_HOTSPOT_INTERPRETER_MODE = \n  PEDANTIC = \n  DEV_ONLY = \n  NO_DOCS = true\n  NO_IMAGES = \n  TOOLS_ONLY = \n  INSANE = \n  COMPILE_APPROACH = parallel\n  PARALLEL_COMPILE_JOBS = 2\n    ALT_PARALLEL_COMPILE_JOBS = \n  FASTDEBUG = \n  COMPILER_WARNINGS_FATAL = false\n  COMPILER_WARNING_LEVEL = \n  INCREMENTAL_BUILD = false\n  CC_HIGHEST_OPT = \n  CC_HIGHER_OPT = \n  CC_LOWER_OPT = \n  CXXFLAGS =  -O2 -fPIC -DCC_NOEX -W -Wall  -Wno-unused -Wno-parentheses -m32 -fno-omit-frame-pointer -D_LITTLE_ENDIAN -mstackrealign \n  CFLAGS =  -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -m32 -fno-omit-frame-pointer -D_LITTLE_ENDIAN -mstackrealign \n  BOOT_JAVA_CMD = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m\n  BOOT_JAVAC_CMD = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/javac  -J-XX:ThreadStackSize=768 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -encoding ascii -source 6 -target 6 -XDignore.symbol.file=true\n  BOOT_JAR_CMD = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/jar\n  BOOT_JARSIGNER_CMD = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/jarsigner\n  JAVAC_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javac  -J-XX:ThreadStackSize=768 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m  -source 7 -target 7 -encoding ascii -Xbootclasspath:/Users/sl4mmy/Work/openjdk/build/bsd-i586/classes \n  JAVAH_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah -bootclasspath /Users/sl4mmy/Work/openjdk/build/bsd-i586/classes\n  JAVADOC_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javadoc -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -bootclasspath /Users/sl4mmy/Work/openjdk/build/bsd-i586/classes\n \nBuild Platform Settings:\n  USER = sl4mmy\n  PLATFORM = bsd\n  ARCH = i586\n  LIBARCH = i386\n  ARCH_FAMILY = i586\n  ARCH_DATA_MODEL = 32\n  ARCHPROP = i386\n  OS_VERSION = 10.2.0 [requires at least 8.0]\n  OS_VARIANT_NAME = \n  OS_VARIANT_VERSION = \n  TEMP_FREE_SPACE = 155629664\n  FREE_SPACE = 155629664\n  MB_OF_MEMORY = 2048\n \nGNU Make Settings:\n  MAKE = make\n  MAKE_VER = 3.81 [requires at least 3.78]\n  MAKECMDGOALS = sanity\n  MAKEFLAGS = \n  SHELL = /bin/sh\n \nTarget Build Versions:\n  JDK_VERSION = 1.7.0\n  MILESTONE = internal\n  RELEASE = 1.7.0-internal\n  FULL_VERSION = 1.7.0-internal-sl4mmy_2010_03_25_11_02-b00\n  BUILD_NUMBER = b00\n \nExternal File/Binary Locations:\n  USRJDKINSTANCES_PATH = /opt/local\n  BUILD_JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries\n    ALT_BUILD_JDK_IMPORT_PATH = \n  JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586\n    ALT_JDK_IMPORT_PATH = \n  LANGTOOLS_DIST = \n    ALT_LANGTOOLS_DIST = /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/dist\n  CORBA_DIST = \n    ALT_CORBA_DIST = /Users/sl4mmy/Work/openjdk/build/bsd-i586/corba/dist\n  JAXP_DIST = \n    ALT_JAXP_DIST = /Users/sl4mmy/Work/openjdk/build/bsd-i586/jaxp/dist\n  JAXWS_DIST = \n    ALT_JAXWS_DIST = /Users/sl4mmy/Work/openjdk/build/bsd-i586/jaxws/dist\n  HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR\n    ALT_HOTSPOT_DOCS_IMPORT_PATH = \n  HOTSPOT_IMPORT_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import\n    ALT_HOTSPOT_IMPORT_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import\n  HOTSPOT_CLIENT_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import/jre/lib/i386/client\n    ALT_HOTSPOT_CLIENT_PATH = \n  HOTSPOT_SERVER_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import/jre/lib/i386/server\n    ALT_HOTSPOT_SERVER_PATH = \n  CACERTS_FILE = /System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts\n    ALT_CACERTS_FILE = /System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts\n  CUPS_HEADERS_PATH = /usr/include\n    ALT_CUPS_HEADERS_PATH = /usr/include\n \nOpenJDK-specific settings:\n  FREETYPE_HEADERS_PATH = /usr/X11/include\n    ALT_FREETYPE_HEADERS_PATH = /usr/X11/include\n  FREETYPE_LIB_PATH = /usr/X11/lib\n    ALT_FREETYPE_LIB_PATH = /usr/X11/lib\n  X11_PATH = /usr/X11R6\n    ALT_X11_PATH = \n \nOPENJDK Import Binary Plug Settings:\n  IMPORT_BINARY_PLUGS = \n  BINARY_PLUGS_JARFILE = /NOT-SET/re/jdk/1.7.0/promoted/latest/openjdk/binaryplugs/bsd-i586/jre/lib/rt-closed.jar\n    ALT_BINARY_PLUGS_JARFILE = \n  BINARY_PLUGS_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/openjdk/binaryplugs/bsd-i586\n    ALT_BINARY_PLUGS_PATH = \n  BUILD_BINARY_PLUGS_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/openjdk/binaryplugs\n    ALT_BUILD_BINARY_PLUGS_PATH = \n  PLUG_LIBRARY_NAMES = \n \nPrevious JDK Settings:\n  PREVIOUS_RELEASE_PATH = USING-PREVIOUS_RELEASE_IMAGE\n    ALT_PREVIOUS_RELEASE_PATH = \n  PREVIOUS_JDK_VERSION = 1.6.0\n    ALT_PREVIOUS_JDK_VERSION = \n  PREVIOUS_JDK_FILE = \n    ALT_PREVIOUS_JDK_FILE = \n  PREVIOUS_JRE_FILE = \n    ALT_PREVIOUS_JRE_FILE = \n  PREVIOUS_RELEASE_IMAGE = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home\n    ALT_PREVIOUS_RELEASE_IMAGE = \n

WARNING: This build does not include running javadoc.\n 
Sanity check passed.
Control bsd i586 1.7.0-internal all_product_build build started: 10-03-25 11:02
Control bsd i586 1.7.0-internal build_product_image build started: 10-03-25 11:02
make \
	        SKIP_FASTDEBUG_BUILD=true \
	        SKIP_DEBUG_BUILD=true \
	         \
	        generic_build_repo_series
/bin/mkdir -p ./build/bsd-i586
/bin/mkdir -p ./build/bsd-i586/j2sdk-image
/bin/mkdir -p /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools


########################################################################
########################################################################
##### Entering  langtools for target  all                          #####
########################################################################
(cd  ./langtools/make && \
	  make JDK_TOPDIR=/Users/sl4mmy/Work/openjdk/jdk JDK_MAKE_SHARED_DIR=/Users/sl4mmy/Work/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=internal BUILD_NUMBER=b00 JDK_BUILD_NUMBER=b00 FULL_VERSION=1.7.0-internal-sl4mmy_2010_03_25_11_02-b00 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 ARCH_DATA_MODEL=32 COOKED_BUILD_NUMBER=0 ANT_HOME="/usr/share/ant" ALT_OUTPUTDIR=/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools ALT_BOOTDIR=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home all)
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home ANT_OPTS=-Djava.io.tmpdir='/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/ant-tmp' /usr/share/ant/bin/ant -diagnostics > /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/ant-diagnostics.log
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home ANT_OPTS=-Djava.io.tmpdir='/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/ant-tmp' /usr/share/ant/bin/ant -Djdk.version=1.7.0 -Dfull.version='1.7.0-internal-sl4mmy_2010_03_25_11_02-b00'  -Dmilestone=internal -Dbuild.number=b00 -Djavac.target=7 -Djavac.source=7 -Dboot.java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home -Dimport.jdk=/Users/sl4mmy/Work/openjdk/jdk -Dbuild.dir=/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build -Ddist.dir=/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/dist build
Buildfile: build.xml

-def-pcompile:
    [mkdir] Created dir: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/toolclasses
    [javac] Compiling 2 source files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/toolclasses

-def-build-classes:

-def-build-bootstrap-classes:

-def-build-jar:

-def-build-bootstrap-jar:

-def-check:

-check-boot.java.home:

-def-build-tool:

-def-build-bootstrap-tool:

build-bootstrap-javac:
    [mkdir] Created dir: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/gensrc
    [mkdir] Created dir: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/classes
 [pcompile] Generating 7 resource files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/gensrc
     [copy] Copying 1 file to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/gensrc
 [pcompile] Generating 1 resource files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/gensrc
    [javac] Compiling 281 source files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/classes
    [javac] /Users/sl4mmy/Work/openjdk/langtools/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java:860: reference to Version is ambiguous, both class com.sun.tools.javac.jvm.ClassFile.Version in com.sun.tools.javac.jvm.ClassFile and class com.sun.tools.javac.util.Version in com.sun.tools.javac.util match
    [javac]         AttributeReader(Name name, Version version, Set<AttributeKind> kinds) {
    [javac]                                    ^
    [javac] /Users/sl4mmy/Work/openjdk/langtools/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java:873: reference to Version is ambiguous, both class com.sun.tools.javac.jvm.ClassFile.Version in com.sun.tools.javac.jvm.ClassFile and class com.sun.tools.javac.util.Version in com.sun.tools.javac.util match
    [javac]         final Version version;
    [javac]               ^
    [javac] 2 errors

BUILD FAILED
/Users/sl4mmy/Work/openjdk/langtools/make/build.xml:242: The following error occurred while executing this line:
/Users/sl4mmy/Work/openjdk/langtools/make/build.xml:553: Compile failed; see the compiler error output for details.

Total time: 5 seconds
make[2]: *** [build] Error 1
make[1]: *** [langtools-build] Error 2
make: *** [build_product_image] Error 2

plato:openjdk sl4mmy$ sed -e "s/Version version/com.sun.tools.javac.jvm.ClassFile.Version version/" -i .orig langtools/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java 
plato:openjdk sl4mmy$ env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin make ALT_BOOTDIR=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home 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

Control bsd i586 1.7.0-internal all build started: 10-03-25 11:03
( cd  ./jdk/make && \
	  make sanity HOTSPOT_IMPORT_CHECK=false JDK_TOPDIR=/Users/sl4mmy/Work/openjdk/jdk JDK_MAKE_SHARED_DIR=/Users/sl4mmy/Work/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=internal BUILD_NUMBER=b00 JDK_BUILD_NUMBER=b00 FULL_VERSION=1.7.0-internal-sl4mmy_2010_03_25_11_03-b00 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 ARCH_DATA_MODEL=32 COOKED_BUILD_NUMBER=0 ANT_HOME="/usr/share/ant" ALT_OUTPUTDIR=/Users/sl4mmy/Work/openjdk/build/bsd-i586 ALT_LANGTOOLS_DIST=/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/dist ALT_CORBA_DIST=/Users/sl4mmy/Work/openjdk/build/bsd-i586/corba/dist ALT_JAXP_DIST=/Users/sl4mmy/Work/openjdk/build/bsd-i586/jaxp/dist ALT_JAXWS_DIST=/Users/sl4mmy/Work/openjdk/build/bsd-i586/jaxws/dist ALT_HOTSPOT_IMPORT_PATH=/Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import BUILD_HOTSPOT=true ; )

Build Machine Information:
   build machine = plato

Build Directory Structure:
   CWD = /Users/sl4mmy/Work/openjdk
   TOPDIR = .
   CONTROL_TOPDIR = .
   LANGTOOLS_TOPDIR = ./langtools
   JAXP_TOPDIR = ./jaxp
   JAXWS_TOPDIR = ./jaxws
   CORBA_TOPDIR = ./corba
   HOTSPOT_TOPDIR = ./hotspot
   JDK_TOPDIR = ./jdk

Build Directives:
   BUILD_LANGTOOLS = true 
   BUILD_JAXP = true 
   BUILD_JAXWS = true 
   BUILD_CORBA = true 
   BUILD_HOTSPOT = true 
   BUILD_JDK    = true 
   DEBUG_CLASSFILES =  
   DEBUG_BINARIES =  

Hotspot Settings: \n      HOTSPOT_BUILD_JOBS  =  \n      HOTSPOT_OUTPUTDIR   = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/outputdir \n      HOTSPOT_EXPORT_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import \n \n

\nBootstrap Settings:\n  BOOTDIR = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home\n    ALT_BOOTDIR = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home\n  BOOT_VER = 1.6.0 [requires at least 1.5]\n  OUTPUTDIR = /Users/sl4mmy/Work/openjdk/build/bsd-i586\n    ALT_OUTPUTDIR = /Users/sl4mmy/Work/openjdk/build/bsd-i586\n  ABS_OUTPUTDIR = /Users/sl4mmy/Work/openjdk/build/bsd-i586\n \nBuild Tool Settings:\n  SLASH_JAVA = /NOT-SET\n    ALT_SLASH_JAVA = \n  VARIANT = OPT\n  JDK_DEVTOOLS_DIR = /NOT-SET/devtools\n    ALT_JDK_DEVTOOLS_DIR = \n  ANT_HOME = /usr/share/ant\n  UNIXCOMMAND_PATH = /bin/\n    ALT_UNIXCOMMAND_PATH = \n  COMPILER_PATH = /usr/bin/\n    ALT_COMPILER_PATH = \n  DEVTOOLS_PATH = /opt/local/bin/\n    ALT_DEVTOOLS_PATH = \n  COMPILER_NAME = GCC4\n  COMPILER_VERSION = GCC4\n  CC_VER = 4.2.1 [requires at least 3.2]\n  ZIP_VER = 3.0 [requires at least 2.2]\n  UNZIP_VER = 5.52 [requires at least 5.12]\n  ANT_VER = 1.7.1 [requires at least 1.6.3]\n  TEMPDIR = /Users/sl4mmy/Work/openjdk/build/bsd-i586/tmp\n \nBuild Directives:\n  OPENJDK = true\n  USE_HOTSPOT_INTERPRETER_MODE = \n  PEDANTIC = \n  DEV_ONLY = \n  NO_DOCS = true\n  NO_IMAGES = \n  TOOLS_ONLY = \n  INSANE = \n  COMPILE_APPROACH = parallel\n  PARALLEL_COMPILE_JOBS = 2\n    ALT_PARALLEL_COMPILE_JOBS = \n  FASTDEBUG = \n  COMPILER_WARNINGS_FATAL = false\n  COMPILER_WARNING_LEVEL = \n  INCREMENTAL_BUILD = false\n  CC_HIGHEST_OPT = \n  CC_HIGHER_OPT = \n  CC_LOWER_OPT = \n  CXXFLAGS =  -O2 -fPIC -DCC_NOEX -W -Wall  -Wno-unused -Wno-parentheses -m32 -fno-omit-frame-pointer -D_LITTLE_ENDIAN -mstackrealign \n  CFLAGS =  -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -m32 -fno-omit-frame-pointer -D_LITTLE_ENDIAN -mstackrealign \n  BOOT_JAVA_CMD = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m\n  BOOT_JAVAC_CMD = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/javac  -J-XX:ThreadStackSize=768 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -encoding ascii -source 6 -target 6 -XDignore.symbol.file=true\n  BOOT_JAR_CMD = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/jar\n  BOOT_JARSIGNER_CMD = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/jarsigner\n  JAVAC_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javac  -J-XX:ThreadStackSize=768 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m  -source 7 -target 7 -encoding ascii -Xbootclasspath:/Users/sl4mmy/Work/openjdk/build/bsd-i586/classes \n  JAVAH_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah -bootclasspath /Users/sl4mmy/Work/openjdk/build/bsd-i586/classes\n  JAVADOC_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javadoc -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -bootclasspath /Users/sl4mmy/Work/openjdk/build/bsd-i586/classes\n \nBuild Platform Settings:\n  USER = sl4mmy\n  PLATFORM = bsd\n  ARCH = i586\n  LIBARCH = i386\n  ARCH_FAMILY = i586\n  ARCH_DATA_MODEL = 32\n  ARCHPROP = i386\n  OS_VERSION = 10.2.0 [requires at least 8.0]\n  OS_VARIANT_NAME = \n  OS_VARIANT_VERSION = \n  TEMP_FREE_SPACE = 155629664\n  FREE_SPACE = 155629664\n  MB_OF_MEMORY = 2048\n \nGNU Make Settings:\n  MAKE = make\n  MAKE_VER = 3.81 [requires at least 3.78]\n  MAKECMDGOALS = sanity\n  MAKEFLAGS = \n  SHELL = /bin/sh\n \nTarget Build Versions:\n  JDK_VERSION = 1.7.0\n  MILESTONE = internal\n  RELEASE = 1.7.0-internal\n  FULL_VERSION = 1.7.0-internal-sl4mmy_2010_03_25_11_03-b00\n  BUILD_NUMBER = b00\n \nExternal File/Binary Locations:\n  USRJDKINSTANCES_PATH = /opt/local\n  BUILD_JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries\n    ALT_BUILD_JDK_IMPORT_PATH = \n  JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586\n    ALT_JDK_IMPORT_PATH = \n  LANGTOOLS_DIST = \n    ALT_LANGTOOLS_DIST = /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/dist\n  CORBA_DIST = \n    ALT_CORBA_DIST = /Users/sl4mmy/Work/openjdk/build/bsd-i586/corba/dist\n  JAXP_DIST = \n    ALT_JAXP_DIST = /Users/sl4mmy/Work/openjdk/build/bsd-i586/jaxp/dist\n  JAXWS_DIST = \n    ALT_JAXWS_DIST = /Users/sl4mmy/Work/openjdk/build/bsd-i586/jaxws/dist\n  HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR\n    ALT_HOTSPOT_DOCS_IMPORT_PATH = \n  HOTSPOT_IMPORT_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import\n    ALT_HOTSPOT_IMPORT_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import\n  HOTSPOT_CLIENT_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import/jre/lib/i386/client\n    ALT_HOTSPOT_CLIENT_PATH = \n  HOTSPOT_SERVER_PATH = /Users/sl4mmy/Work/openjdk/build/bsd-i586/hotspot/import/jre/lib/i386/server\n    ALT_HOTSPOT_SERVER_PATH = \n  CACERTS_FILE = /System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts\n    ALT_CACERTS_FILE = /System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts\n  CUPS_HEADERS_PATH = /usr/include\n    ALT_CUPS_HEADERS_PATH = /usr/include\n \nOpenJDK-specific settings:\n  FREETYPE_HEADERS_PATH = /usr/X11/include\n    ALT_FREETYPE_HEADERS_PATH = /usr/X11/include\n  FREETYPE_LIB_PATH = /usr/X11/lib\n    ALT_FREETYPE_LIB_PATH = /usr/X11/lib\n  X11_PATH = /usr/X11R6\n    ALT_X11_PATH = \n \nOPENJDK Import Binary Plug Settings:\n  IMPORT_BINARY_PLUGS = \n  BINARY_PLUGS_JARFILE = /NOT-SET/re/jdk/1.7.0/promoted/latest/openjdk/binaryplugs/bsd-i586/jre/lib/rt-closed.jar\n    ALT_BINARY_PLUGS_JARFILE = \n  BINARY_PLUGS_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/openjdk/binaryplugs/bsd-i586\n    ALT_BINARY_PLUGS_PATH = \n  BUILD_BINARY_PLUGS_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/openjdk/binaryplugs\n    ALT_BUILD_BINARY_PLUGS_PATH = \n  PLUG_LIBRARY_NAMES = \n \nPrevious JDK Settings:\n  PREVIOUS_RELEASE_PATH = USING-PREVIOUS_RELEASE_IMAGE\n    ALT_PREVIOUS_RELEASE_PATH = \n  PREVIOUS_JDK_VERSION = 1.6.0\n    ALT_PREVIOUS_JDK_VERSION = \n  PREVIOUS_JDK_FILE = \n    ALT_PREVIOUS_JDK_FILE = \n  PREVIOUS_JRE_FILE = \n    ALT_PREVIOUS_JRE_FILE = \n  PREVIOUS_RELEASE_IMAGE = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home\n    ALT_PREVIOUS_RELEASE_IMAGE = \n

WARNING: This build does not include running javadoc.\n 
Sanity check passed.
Control bsd i586 1.7.0-internal all_product_build build started: 10-03-25 11:03
Control bsd i586 1.7.0-internal build_product_image build started: 10-03-25 11:03
make \
	        SKIP_FASTDEBUG_BUILD=true \
	        SKIP_DEBUG_BUILD=true \
	         \
	        generic_build_repo_series
/bin/mkdir -p ./build/bsd-i586
/bin/mkdir -p ./build/bsd-i586/j2sdk-image
/bin/mkdir -p /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools


########################################################################
########################################################################
##### Entering  langtools for target  all                          #####
########################################################################
(cd  ./langtools/make && \
	  make JDK_TOPDIR=/Users/sl4mmy/Work/openjdk/jdk JDK_MAKE_SHARED_DIR=/Users/sl4mmy/Work/openjdk/jdk/make/common/shared EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7 MILESTONE=internal BUILD_NUMBER=b00 JDK_BUILD_NUMBER=b00 FULL_VERSION=1.7.0-internal-sl4mmy_2010_03_25_11_03-b00 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 ARCH_DATA_MODEL=32 COOKED_BUILD_NUMBER=0 ANT_HOME="/usr/share/ant" ALT_OUTPUTDIR=/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools ALT_BOOTDIR=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home all)
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home ANT_OPTS=-Djava.io.tmpdir='/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/ant-tmp' /usr/share/ant/bin/ant -diagnostics > /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/ant-diagnostics.log
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home ANT_OPTS=-Djava.io.tmpdir='/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/ant-tmp' /usr/share/ant/bin/ant -Djdk.version=1.7.0 -Dfull.version='1.7.0-internal-sl4mmy_2010_03_25_11_03-b00'  -Dmilestone=internal -Dbuild.number=b00 -Djavac.target=7 -Djavac.source=7 -Dboot.java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home -Dimport.jdk=/Users/sl4mmy/Work/openjdk/jdk -Dbuild.dir=/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build -Ddist.dir=/Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/dist build
Buildfile: build.xml

-def-pcompile:

-def-build-classes:

-def-build-bootstrap-classes:

-def-build-jar:

-def-build-bootstrap-jar:

-def-check:

-check-boot.java.home:

-def-build-tool:

-def-build-bootstrap-tool:

build-bootstrap-javac:
    [javac] Compiling 281 source files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/classes
     [copy] Copying 4 files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/classes
    [mkdir] Created dir: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/lib
      [jar] Building jar: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/lib/javac.jar
    [mkdir] Created dir: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/bin
     [copy] Copying 1 file to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/bin

build-bootstrap-javadoc:
 [pcompile] Generating 3 resource files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/gensrc
    [javac] Compiling 72 source files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/classes
      [jar] Building jar: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/lib/javadoc.jar
     [copy] Copying 1 file to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/bin

build-bootstrap-doclets:
 [pcompile] Generating 6 resource files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/gensrc
    [javac] Compiling 131 source files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/classes
     [copy] Copying 2 files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/classes
      [jar] Building jar: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/lib/doclets.jar

build-bootstrap-javah:
 [pcompile] Generating 3 resource files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/gensrc
    [javac] Compiling 15 source files to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/classes
      [jar] Building jar: /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/lib/javah.jar
     [copy] Copying 1 file to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/bootstrap/bin

build-bootstrap-tools:

-def-genstubs:
    [javac] Compiling 1 source file to /Users/sl4mmy/Work/openjdk/build/bsd-i586/langtools/build/toolclasses
    [javac] /Users/sl4mmy/Work/openjdk/langtools/make/tools/GenStubs/GenStubs.java:301: cannot find symbol
    [javac] symbol  : method getTag()
    [javac] location: class com.sun.tools.javac.tree.JCTree
    [javac]                 if (def.getTag() == JCTree.IMPORT) {
    [javac]                        ^
    [javac] /Users/sl4mmy/Work/openjdk/langtools/make/tools/GenStubs/GenStubs.java:303: cannot find symbol
    [javac] symbol  : method getTag()
    [javac] location: class com.sun.tools.javac.tree.JCTree
    [javac]                     if (imp.qualid.getTag() == JCTree.SELECT) {
    [javac]                                   ^
    [javac] 2 errors

BUILD FAILED
/Users/sl4mmy/Work/openjdk/langtools/make/build.xml:628: Compile failed; see the compiler error output for details.

Total time: 13 seconds
make[2]: *** [build] Error 1
make[1]: *** [langtools-build] Error 2
make: *** [build_product_image] Error 2
plato:openjdk sl4mmy$





More information about the bsd-port-dev mailing list