Re: OSX port
Thanks John. Could you provide me link or copy of your build.sh ? Cheers 2012/7/10 John Rose john.r.r...@oracle.com: 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.0 -0800 +++ build.sh 2012-07-07 21:59:34.0 -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 ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
Hi Henri By setting ALT_BOOTDIR and ALT_JDK_IMPORT_PATH to use a recent Java 1.8 build (from last week, 2012_07_07) my mlvm now compiles and runs fine on 10.6.8 Updated script here: https://gist.github.com/243072 Am running following jtreg tests: jdk/test/java/lang/invoke/ jdk/test/java/dyn/CoroutineTest.java Also testing GUI (is X11 linked in properly) by running /Developer/Extras/Java/JFC/SwingSet2/SwingSet2.jar latest build uploaded here: http://www.concord.org/~sbannasch/mlvm/java-1.8.0-internal-mlvm-2012_07_11.tar.gz ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
Does this build contain the coro patch? -dain On Jul 11, 2012, at 9:27 AM, Stephen Bannasch wrote: Hi Henri By setting ALT_BOOTDIR and ALT_JDK_IMPORT_PATH to use a recent Java 1.8 build (from last week, 2012_07_07) my mlvm now compiles and runs fine on 10.6.8 Updated script here: https://gist.github.com/243072 Am running following jtreg tests: jdk/test/java/lang/invoke/ jdk/test/java/dyn/CoroutineTest.java Also testing GUI (is X11 linked in properly) by running /Developer/Extras/Java/JFC/SwingSet2/SwingSet2.jar latest build uploaded here: http://www.concord.org/~sbannasch/mlvm/java-1.8.0-internal-mlvm-2012_07_11.tar.gz ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
On Jul 11, 2012, at 4:52 AM, Henri Gomez wrote: Could you provide me link or copy of your build.sh ? For what it's worth, I've refreshed my posting of build.sh: https://gist.github.com/118516 — John___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
Thanks to all. I'll update my build script and produce a new MLVM for OSX, in fastdebug mode (I don't forget Rémy :) 2012/7/11 John Rose john.r.r...@oracle.com: On Jul 11, 2012, at 4:52 AM, Henri Gomez wrote: Could you provide me link or copy of your build.sh ? For what it's worth, I've refreshed my posting of build.sh: https://gist.github.com/118516 — John ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
At 10:26 AM -0700 7/11/12, Dain Sundstrom wrote: Does this build contain the coro patch? -dain On Jul 11, 2012, at 9:27 AM, Stephen Bannasch wrote: Hi Henri By setting ALT_BOOTDIR and ALT_JDK_IMPORT_PATH to use a recent Java 1.8 build (from last week, 2012_07_07) my mlvm now compiles and runs fine on 10.6.8 Updated script here: https://gist.github.com/243072 Am running following jtreg tests: jdk/test/java/lang/invoke/ jdk/test/java/dyn/CoroutineTest.java I would think so since I am successfully running the Couroutine tests ;-) ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
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.0 -0800 +++ build.sh2012-07-07 21:59:34.0 -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 ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
Ping on this subject, ie MLVM build for OSX (but not only) in a simpler way ? 2012/5/9 John Rose john.r.r...@oracle.com: On May 9, 2012, at 11:07 AM, Charles Oliver Nutter wrote: I managed to get MLVM to build on OS X Snow Leopard with Henri's scripts. Notes: * I get a failure like this at the end of the build, but this appears to be after the jdk/jre have successfully built (or at least it appears to work fine): https://gist.github.com/749b4fe1d3b469644c11 Yes, I get this too. I don't know where it comes from. There is probably some configuration variable that will make it go away. Like you, I saw that the build was usable and moved on. * In order to get the meth-lazy patches to apply (I'm testing the new indy backend) I had to remove -testable from them. I'd like a cleaner way. Christian Thalinger, Michael Haupt, and I are working hard to get these patches ready for prime time. There are several problems that show up in comprehensive testing. The worst is that TieredCompilation mode shows some failures. Until we get cleaner tests, we're keeping -testable. (This raises the question of whether the keyword is misleading but I can't think of another candidate meaning for testable. Keyword means able to pass reasonable tests, not able to commence testing; the latter phrase is the meaning of buildable.) You could regard the act of removing -testable as the equivalent of clicking through the yes I know what I'm doing button. You can disable the testable filter by adjusting either the series file (which is managed source code) or the guards file (which is unmanaged and private to the installation). — John ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
On May 8, 2012, at 9:00 AM, Henri Gomez wrote: Any date about back port/merge of OSX support in mlvm project ? What exactly do you think is missing? Does the build fail for you? John updated the mlvm patches a couple of days ago to the recent hotspot-comp repository versions which should include OS X support. Good news. We still need multiples patches process ? I'm not sure I understand what you mean by multiple patches but your build script seems to be doing what is required. -- Chris cf: http://openjdk-osx-build.googlecode.com/svn/trunk/build-openjdk8-64-mlvm.sh ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
I managed to get MLVM to build on OS X Snow Leopard with Henri's scripts. Notes: * I get a failure like this at the end of the build, but this appears to be after the jdk/jre have successfully built (or at least it appears to work fine): https://gist.github.com/749b4fe1d3b469644c11 * In order to get the meth-lazy patches to apply (I'm testing the new indy backend) I had to remove -testable from them. I'd like a cleaner way. - Charlie On Wed, May 9, 2012 at 5:54 PM, Christian Thalinger christian.thalin...@oracle.com wrote: On May 8, 2012, at 9:00 AM, Henri Gomez wrote: Any date about back port/merge of OSX support in mlvm project ? What exactly do you think is missing? Does the build fail for you? John updated the mlvm patches a couple of days ago to the recent hotspot-comp repository versions which should include OS X support. Good news. We still need multiples patches process ? I'm not sure I understand what you mean by multiple patches but your build script seems to be doing what is required. -- Chris cf: http://openjdk-osx-build.googlecode.com/svn/trunk/build-openjdk8-64-mlvm.sh ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
On May 9, 2012, at 11:07 AM, Charles Oliver Nutter wrote: I managed to get MLVM to build on OS X Snow Leopard with Henri's scripts. Notes: * I get a failure like this at the end of the build, but this appears to be after the jdk/jre have successfully built (or at least it appears to work fine): https://gist.github.com/749b4fe1d3b469644c11 Yes, I get this too. I don't know where it comes from. There is probably some configuration variable that will make it go away. Like you, I saw that the build was usable and moved on. * In order to get the meth-lazy patches to apply (I'm testing the new indy backend) I had to remove -testable from them. I'd like a cleaner way. Christian Thalinger, Michael Haupt, and I are working hard to get these patches ready for prime time. There are several problems that show up in comprehensive testing. The worst is that TieredCompilation mode shows some failures. Until we get cleaner tests, we're keeping -testable. (This raises the question of whether the keyword is misleading but I can't think of another candidate meaning for testable. Keyword means able to pass reasonable tests, not able to commence testing; the latter phrase is the meaning of buildable.) You could regard the act of removing -testable as the equivalent of clicking through the yes I know what I'm doing button. You can disable the testable filter by adjusting either the series file (which is managed source code) or the guards file (which is unmanaged and private to the installation). — John ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
On Tue, May 8, 2012 at 4:00 PM, Henri Gomez henri.go...@gmail.com wrote: cf: http://openjdk-osx-build.googlecode.com/svn/trunk/build-openjdk8-64-mlvm.sh I'm trying a build with that on Snow Leopard now. Ran into an issue first time, now trying again with a clean env. - Charlie ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
On May 3, 2012, at 11:43 PM, Henri Gomez wrote: Back to this subject. Any date about back port/merge of OSX support in mlvm project ? What exactly do you think is missing? Does the build fail for you? John updated the mlvm patches a couple of days ago to the recent hotspot-comp repository versions which should include OS X support. -- Chris 2012/4/21 Martijn Verburg martijnverb...@gmail.com: This would be extremely helpful in being able to organise hack nights with the Java User Groups globally to beat up on an experimental feature and provide feedback on it here (such as coroutines). Cheers, Martijn On 20 April 2012 00:27, Henri Gomez henri.go...@gmail.com wrote: Hi to all, I'm wondering when OSX support will be merged in mlvm trunk. I'm releasing OSX packages for stock Java 8, jigsaw and lambda easily now but mlvm build is still too tricky and a pain. Any chance to get OSX code merged so OSX Java 8 early adopters could play with Continuous packages as they do with others Java 8 projects ? Cheers ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
On Mon, May 7, 2012 at 4:34 PM, Christian Thalinger christian.thalin...@oracle.com wrote: What exactly do you think is missing? Does the build fail for you? John updated the mlvm patches a couple of days ago to the recent hotspot-comp repository versions which should include OS X support. I'll try to give it a shot on my end later tonight. I need to do more frequent builds, so I don't have this bootstrapping process every time :) - Charlie ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
Back to this subject. Any date about back port/merge of OSX support in mlvm project ? 2012/4/21 Martijn Verburg martijnverb...@gmail.com: This would be extremely helpful in being able to organise hack nights with the Java User Groups globally to beat up on an experimental feature and provide feedback on it here (such as coroutines). Cheers, Martijn On 20 April 2012 00:27, Henri Gomez henri.go...@gmail.com wrote: Hi to all, I'm wondering when OSX support will be merged in mlvm trunk. I'm releasing OSX packages for stock Java 8, jigsaw and lambda easily now but mlvm build is still too tricky and a pain. Any chance to get OSX code merged so OSX Java 8 early adopters could play with Continuous packages as they do with others Java 8 projects ? Cheers ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
I need this to test the updated indy backend on OS X as well... - Charlie On Fri, May 4, 2012 at 6:43 AM, Henri Gomez henri.go...@gmail.com wrote: Back to this subject. Any date about back port/merge of OSX support in mlvm project ? 2012/4/21 Martijn Verburg martijnverb...@gmail.com: This would be extremely helpful in being able to organise hack nights with the Java User Groups globally to beat up on an experimental feature and provide feedback on it here (such as coroutines). Cheers, Martijn On 20 April 2012 00:27, Henri Gomez henri.go...@gmail.com wrote: Hi to all, I'm wondering when OSX support will be merged in mlvm trunk. I'm releasing OSX packages for stock Java 8, jigsaw and lambda easily now but mlvm build is still too tricky and a pain. Any chance to get OSX code merged so OSX Java 8 early adopters could play with Continuous packages as they do with others Java 8 projects ? Cheers ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Re: OSX port
This would be extremely helpful in being able to organise hack nights with the Java User Groups globally to beat up on an experimental feature and provide feedback on it here (such as coroutines). Cheers, Martijn On 20 April 2012 00:27, Henri Gomez henri.go...@gmail.com wrote: Hi to all, I'm wondering when OSX support will be merged in mlvm trunk. I'm releasing OSX packages for stock Java 8, jigsaw and lambda easily now but mlvm build is still too tricky and a pain. Any chance to get OSX code merged so OSX Java 8 early adopters could play with Continuous packages as they do with others Java 8 projects ? Cheers ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev