Configuration script unable to detect boot JDK's modules support

Filipp Zhinkin filipp.zhinkin at gmail.com
Thu Mar 31 07:56:08 UTC 2016


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



More information about the build-dev mailing list