OSX port
John Rose
john.r.rose at oracle.com
Tue Jul 10 10:05:20 PDT 2012
On Jul 4, 2012, at 11:46 PM, Henri Gomez wrote:
> What's current build process to be used ?
It appears that JDK 8 needs to be built with a JDK 8 release. (I don't have any information about whether this is intentional or why it is.)
Below are some recent changes I've made to my copy of build.sh, including a setting of ALT_BOOTDIR.
Another form of build breakage may show up also, if you use a very new JDK 8 release to build with. Some recent builds of javac get this error when building the new meth-lazy stuff:
> /Users/jrose/Projects/davinci/sources/jdk/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java:37: error: package com.sun.xml.internal.ws.org.objectweb.asm does not exist
> import com.sun.xml.internal.ws.org.objectweb.asm.*;
I haven't tracked down this bug, but it may be a change in the way javac performs filtering on rt.jar. My workaround is to use a slightly older version of JDK 8 to build with.
I hope this helps...
— John
diff -ru build.sh.~5~ build.sh
--- build.sh.~5~ 2012-02-15 23:45:46.000000000 -0800
+++ build.sh 2012-07-07 21:59:34.000000000 -0700
@@ -21,7 +21,9 @@
#export ALT_BOOTDIR=/usr/local/soylatte16-i386-1.0.3
#export ALT_BOOTDIR=/usr/local/soylatte16-amd64-1.0.3
#export ALT_BOOTDIR=$JAVA7X_HOME
-export ALT_BOOTDIR=$DAVINCI/sources/build-stable-bootstrap-0623/bsd-i586/j2sdk-image
+#export ALT_BOOTDIR=$DAVINCI/sources/build-stable-bootstrap-0623/bsd-amd64/j2sdk-image
+#export ALT_BOOTDIR=$HOME/env/JAVA7_HOME
+export ALT_BOOTDIR=$HOME/env/JAVA8_HOME
#for solaris hack this file: ./jdk/src/solaris/javavm/export/machine/endian.h
@@ -40,11 +42,10 @@
ALT_JIBX_LIBS_PATH=$HOME/Downloads/jibx/lib
ALT_JDK_IMPORT_PATH=$ALT_BOOTDIR
ALT_BOOTDIR=$ALT_BOOTDIR
- ALT_BINARY_PLUGS_PATH=$HOME/Downloads/JDK7/jdk-7-icedtea-plugs
- ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include
- ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib
ANT_HOME=/usr/share/ant
NO_DOCS=true
+ NO_DEMOS=true
+ NO_SAMPLES=true
HOTSPOT_BUILD_JOBS=2
BUILD_LANGTOOLS=true
BUILD_HOTSPOT=true
@@ -58,8 +62,8 @@
LD_LIBRARY_PATH=
COMMAND_MODE=unix2003
OPENJDK=true
- CC=gcc-4.2
- CXX=g++-4.2
+ CC=$( xcrun -find gcc )
+ CXX=$( xcrun -find g++ )
"
# MACOSX_UNIVERSAL=false
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20120710/28b0263c/attachment.html
More information about the mlvm-dev
mailing list