[jdk11u-dev] It is no longer possible to build jdk11u with a jdk10 boot JDK and --with-jtreg

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Wed Jun 5 18:03:06 UTC 2024


Hi

A while ago I proposed to change this to only require 11u build with 11.
I don't think there are any Java 10 JVMs out there where there is not 11 on that platform so that bootstrapping won't work.

This requirement is necessary for head development, but not for LTE releases I think.

If there is actually an 10 Jvm that is not available on 11u, you can still first build 11 (not updates!), then use that and build 11u.

At that time, I think RedHat insisted on the requirement to be able to build with 10.

So I would again propose to relax this starting with 11.0.24 or 11.0.25.

Best regards, Goetz.

> -----Original Message-----
> From: Frederic Thevenet <fthevene at redhat.com>
> Sent: Wednesday, June 5, 2024 9:53 AM
> To: jdk-updates-dev at openjdk.org
> Cc: goetz at openjdk.org
> Subject: [jdk11u-dev] It is no longer possible to build jdk11u with a jdk10 boot
> JDK and --with-jtreg
>
> [You don't often get email from fthevene at redhat.com. Learn why this is
> important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Hi,
>
> The build guide over on openjdk.org states that the "the boot JDK for
> building JDK major version N should be a JDK of major version N-1".
> This, however, appears to no longer be possible for 11u since 11.0.24+3
> under certain circumstances.
> Starting with the backport of 8314495[2], 'configure' now enforces that
> the version of jtreg passed using '--with-jtreg' is 7.3.1 or higher  as
> it now requires jtreg 7.3.1 [1] and fails if this is not the case.
> Jtreg 7.x, however, requires jdk11 or higher.
>
> As a result, when attempting to build jdk11u from the latest tag with  a
> jdk 10 bootJDK, you'll either be presented with the following error when
> running configure with jtreg 6.x:
> "configure: error: jtreg version is too old, at least version 7.3.1 is
> required"
>
> Or the following error when using jtreg 7.3.1:
> "checking jtreg version number... Error: LinkageError occurred while
> loading main class com.sun.javatest.regtest.Main
>      java.lang.UnsupportedClassVersionError:
> com/sun/javatest/regtest/Main has been compiled by a more recent version
> of the Java Runtime (class file version 55.0), this version of the Java
> Runtime only recognizes class file versions up to 54.0"
>
> As a result, it is only possible to successfully run configure using
> jdk11 as the bootJDK, which is in direct contradiction with the
> statement from the openjdk build guide, so I think it is important that
> things are clarified in one way or another.
>
> Regards,
> Frederic
>
> [1]
> https://htmlprev/
> iew.github.io%2F%3Fhttps%3A%2F%2Fraw.githubusercontent.com%2Fopenjdk
> %2Fjdk%2Fmaster%2Fdoc%2Fbuilding.html%23boot-jdk-
> requirements&data=05%7C02%7Cgoetz.lindenmaier%40sap.com%7C40198102
> efaf4617d6c608dc85349e74%7C42f7676cf455423c82f6dc2d99791af7%7C0%7
> C0%7C638531708251434218%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7
> C&sdata=VIOZ%2BSaskS0i6E4%2BCNdJMy1TYLTfEYBQ1BVaEE%2BlXuc%3D&res
> erved=0
> [2] https://github.com/openjdk/jdk11u-dev/pull/2612
>
> --
> Frederic Thevenet
> Senior Software Engineer - OpenJDK
> Red Hat France
> <https://www.re/
> dhat.com%2F&data=05%7C02%7Cgoetz.lindenmaier%40sap.com%7C40198102
> efaf4617d6c608dc85349e74%7C42f7676cf455423c82f6dc2d99791af7%7C0%7
> C0%7C638531708251448771%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7
> C&sdata=OcclwN5pT5jTHqEnnWKe2DpfYqJUvS3cOcG5dZs5gBI%3D&reserved=0
> >
> BAF5 C2D2 0BE0 1715 5EE1 0815 2065 AD47 B326 EB92



More information about the jdk-updates-dev mailing list