Configuration script unable to detect boot JDK's modules support
filipp.zhinkin at gmail.com
Sat Apr 2 11:36:26 UTC 2016
On Thu, Mar 31, 2016 at 5:14 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> Are you sure your boot JDK is jdk-9+111? If it doesn't support -Xpatch then
> it's probably older build.
Yes, it's was a jdk-9+111 and as Erik said it seems to be an issue
with test performed to detect modules support.
> 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).
Not sure why I used jdk-9 as a boot JDK, but with 8 everything works
> 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
>> 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
>> $ 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 :
>> 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
More information about the build-dev