update on macosx build support for mlvm
Stephen Bannasch
stephen.bannasch at deanbrook.org
Sat Mar 3 22:04:41 PST 2012
At 11:51 PM -0500 3/3/12, Stephen Bannasch wrote:
>Also, I thought coro used to be included with the guards: "buildable testable"
>
> [sources ]$ ls jdk/test/java/dyn/CoroutineTest.java
> ls: jdk/test/java/dyn/CoroutineTest.java: No such file or directory
>
>I'll add "coro" and try again.
Building the latest mlvm on Mac OS X 10.6.8 works!
Adding the "coro" guard included CoroutineTest.java
The problem with the tests failing was due to jtreg not finding junit.
One solution is putting a copy of junit.jar in jtreg's lib/ dir:
$ curl -L http://sourceforge.net/projects/junit/files/junit/4.5/junit-4.5.jar -o jtreg/lib/junit.jar
Now all the invoke and coro tests pass.
This is what I am using to invoke jtreg:
JTREG_INVOKE="jtreg -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -ignore:quiet -agentvm -jdk:$BUILD_HOME"
The tests run about 50% faster with the -agentvm argument.
ref: https://blogs.oracle.com/jjg/entry/j
The only failure now is running SingSet2 -- but that probably has nothing to do with mlvm.
$ ./build/macosx-amd64/j2sdk-bundle/1.8.0.jdk/Contents/Home/bin/java -jar /Developer/Extras/Java/JFC/SwingSet2/SwingSet2.jar
Exception in thread "main" java.awt.HeadlessException
at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:77)
at SwingSet2.main(SwingSet2.java:251)
More information about the mlvm-dev
mailing list