Are you sure your boot JDK is jdk-9+111? If it doesn't support -Xpatch then it's probably older build.
In any case, the boot JDK should be JDK 8. Yes, the JDK can build itself but it's can be very fragile to attempt to build it with a JDK 9 that isn't quite in sync (esp. as command-line options are changing).
-Alan On 31/03/2016 08:56, Filipp Zhinkin wrote:
Hi all, I'm trying to build OpenJDK from latest sources using JDK9-b111 as a boot JDK and configuration script is not able to detect modules support: $ bash configure --enable-option-checking=fatal --with-jvm-variants=server --with-debug-level=release --disable-headful --with-boot-jdk=/home/filipp/Downloads/bootdir/jdk-9 --with-jtreg=/home/filipp/Development/openjdk/jtreg ... $ grep modules build/linux-x86_64-normal-server-release/configure.log checking if Boot JDK supports modules... no I've looked into common/autoconf/boot-jdk.m4 to find out how modules support is detected and we simply pass '-Xpatch:' to JVM [1]: jdk-9/bin/java -Xpatch: -version Bad value for -Xpatch. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Am I missing something or that check should actually pass -Xpatch:blablabla? Regards, Filipp. [1] http://hg.openjdk.java.net/jdk9/jdk9/file/03543a758cd5/common/autoconf/boot-jdk.m4#l308
