<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>Hi Juan,</div>
<div><br>
</div>
I recommend using a boot JDK that is the closest final released version to that you are building, in this case JDK 23 (JDK 24 will be released in March), otherwise you might hit odd transitive issues.
<div><br>
</div>
<div>(At some point soon I will merge jdk/master with babylon/code-reflection which will bump up the Babylon JDK version to 25, a boot JDK of 23 can still be used, and when 24 is released we can use that at the boot JDK. IIRC the configure script will tell
 you if you are using a version that is too old.)</div>
<div>
<div><br>
</div>
<div>Paul.</div>
<div><br>
<blockquote type="cite">
<div>On Jan 10, 2025, at 2:07 AM, Juan Fumero <juan.fumero@manchester.ac.uk> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Ok, nevermind.</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
   Installing an older JDK 24 version works. For example this one:</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
```</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
sdk install java 24.0.2.r22-mandrel</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
```</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Juan</div>
<div id="appendonsend" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
</div>
<hr tabindex="-1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline-block; width: 1030.953125px;">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;"></span>
<div id="divRplyFwdMsg" dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<font face="Calibri, sans-serif" style="font-size: 11pt;"><b>From:</b><span class="Apple-converted-space"> </span>babylon-dev <babylon-dev-retn@openjdk.org> on behalf of Juan Fumero <juan.fumero@manchester.ac.uk><br>
<b>Sent:</b><span class="Apple-converted-space"> </span>10 January 2025 10:39<br>
<b>To:</b><span class="Apple-converted-space"> </span>babylon-dev@openjdk.org <babylon-dev@openjdk.org><br>
<b>Subject:</b><span class="Apple-converted-space"> </span>Fw: Error building Babylon in Fedora 41</font>
<div> </div>
</div>
<div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="x_elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Hi all,</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
   I recently updated my system from Fedora 39 to 41, and I get the following error during the building of the code -reflection project.</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
```bash</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
Compiling up to 2 files for COMPILE_DEPEND</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
error: cannot access module-info</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
  bad class file: /modules/java.se/module-info.class</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
    bad requires flag: ACC_TRANSITIVE (0x0020</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
    Please remove or make sure it appears in the correct subdirectory of the classpath.</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
1 error</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
gmake[3]: *** [CompileToolsJdk.gmk:87: /home/juan/repos/babylon/babylon/build/linux-x86_64-server-release/buildtools/depend/_the.COMPILE_DEPEND_batch] Error 1</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
gmake[3]: *** Waiting for unfinished jobs....</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
error: cannot access module-info</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
  bad class file: /modules/java.se/module-info.class</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
    bad requires flag: ACC_TRANSITIVE (0x0020</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
    Please remove or make sure it appears in the correct subdirectory of the classpath.</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
1 error</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
gmake[3]: *** [CompileToolsJdk.gmk:48: /home/juan/repos/babylon/babylon/build/linux-x86_64-server-release/buildtools/jdk_tools_classes/_the.BUILD_TOOLS_JDK_batch] Error 1</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
gmake[2]: *** [make/Main.gmk:86: buildtools-jdk] Error 2</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
gmake[2]: *** Waiting for unfinished jobs....</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
Creating support/modules_libs/java.base/jrt-fs.jar</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
ERROR: Build failed for target 'images' in configuration 'linux-x86_64-server-release' (exit code 2) </div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
Stopping javac server</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
```</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
My configuration summary seems to be correct:</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
```</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
Configuration summary:</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* Name:           linux-x86_64-server-release</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* Debug level:    release</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* HS debug level: product</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* JVM variants:   server</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* JVM features:   server: 'cds compiler1 compiler2 epsilongc g1gc jfr jni-check jvmci jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc' </div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* Version string: 24-internal-adhoc.juan.babylon (24-internal)</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* Source date:    1736501528 (2025-01-10T09:32:08Z)</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
Tools summary:</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* Boot JDK:       openjdk version "24-ea" 2025-03-18 OpenJDK Runtime Environment (build 24-ea+30-3590) OpenJDK 64-Bit Server VM (build 24-ea+30-3590, mixed mode, sharing) (at /home/juan/.sdkman/candidates/java/24.ea.30-open)</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* Toolchain:      gcc (GNU Compiler Collection)</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* C Compiler:     Version 12.3.0 (at /home/juan/bin/spack/opt/spack/linux-fedora41-skylake/gcc-14.2.1/gcc-12.3.0-apvzdiido5i7pxdda4vx5zfjcdtjbup2/bin/gcc)</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* C++ Compiler:   Version 12.3.0 (at /home/juan/bin/spack/opt/spack/linux-fedora41-skylake/gcc-14.2.1/gcc-12.3.0-apvzdiido5i7pxdda4vx5zfjcdtjbup2/bin/g++)</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
Build performance summary:</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* Build jobs:     20</div>
<div style="direction: ltr; font-family: Consolas, Courier, monospace; font-size: 12pt;">
* Memory limit:   31807 MB</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
```</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Any idea about how to fix this? </div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Kind regards,</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Juan</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>