Error building Babylon in Fedora 41

Juan Fumero juan.fumero at manchester.ac.uk
Thu Jan 23 13:02:21 UTC 2025


Thanks Paul,
   that works.

Juan
________________________________
From: Paul Sandoz <paul.sandoz at oracle.com>
Sent: 17 January 2025 16:47
To: Juan Fumero <juan.fumero at manchester.ac.uk>
Cc: babylon-dev at openjdk.org <babylon-dev at openjdk.org>
Subject: Re: Error building Babylon in Fedora 41

First you build the Babylon JDK, which depends on a compatibility earlier version such as JDK 23. Then you build HAT, which depends on the Babylon JDK.

The Babylon JDK provides the code reflection feature that HAT depends on.

The Babylon JDK will keep up to date with jdk/master, regularly syncing with it, and therefore when synced will have the same JDK version as jdk/master.

Paul.

On Jan 17, 2025, at 1:40 AM, Juan Fumero <juan.fumero at manchester.ac.uk> wrote:

Thanks Paul,
    it seems HAT currently depends on JDK 24, correct? I could compile Code-Reflection with JDK23. However, to run HAT on the GPU, it fails if was not compiled with JDK24.

Juan
________________________________
From: Paul Sandoz <paul.sandoz at oracle.com>
Sent: 10 January 2025 17:34
To: Juan Fumero <juan.fumero at manchester.ac.uk>
Cc: babylon-dev at openjdk.org <babylon-dev at openjdk.org>
Subject: Re: Error building Babylon in Fedora 41

Hi Juan,

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.

(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.)

Paul.

On Jan 10, 2025, at 2:07 AM, Juan Fumero <juan.fumero at manchester.ac.uk> wrote:

Ok, nevermind.
   Installing an older JDK 24 version works. For example this one:

```
sdk install java 24.0.2.r22-mandrel
```

Juan
________________________________
From: babylon-dev <babylon-dev-retn at openjdk.org> on behalf of Juan Fumero <juan.fumero at manchester.ac.uk>
Sent: 10 January 2025 10:39
To: babylon-dev at openjdk.org <babylon-dev at openjdk.org>
Subject: Fw: Error building Babylon in Fedora 41

Hi all,
   I recently updated my system from Fedora 39 to 41, and I get the following error during the building of the code -reflection project.


```bash
Compiling up to 2 files for COMPILE_DEPEND
error: cannot access module-info
  bad class file: /modules/java.se/module-info.class
    bad requires flag: ACC_TRANSITIVE (0x0020
    Please remove or make sure it appears in the correct subdirectory of the classpath.
1 error
gmake[3]: *** [CompileToolsJdk.gmk:87: /home/juan/repos/babylon/babylon/build/linux-x86_64-server-release/buildtools/depend/_the.COMPILE_DEPEND_batch] Error 1
gmake[3]: *** Waiting for unfinished jobs....
error: cannot access module-info
  bad class file: /modules/java.se/module-info.class
    bad requires flag: ACC_TRANSITIVE (0x0020
    Please remove or make sure it appears in the correct subdirectory of the classpath.
1 error
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
gmake[2]: *** [make/Main.gmk:86: buildtools-jdk] Error 2
gmake[2]: *** Waiting for unfinished jobs....
Creating support/modules_libs/java.base/jrt-fs.jar

ERROR: Build failed for target 'images' in configuration 'linux-x86_64-server-release' (exit code 2)
Stopping javac server
```

My configuration summary seems to be correct:

```
Configuration summary:
* Name:           linux-x86_64-server-release
* Debug level:    release
* HS debug level: product
* JVM variants:   server
* JVM features:   server: 'cds compiler1 compiler2 epsilongc g1gc jfr jni-check jvmci jvmti management parallelgc serialgc services shenandoahgc vm-structs zgc'
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64
* Version string: 24-internal-adhoc.juan.babylon (24-internal)
* Source date:    1736501528 (2025-01-10T09:32:08Z)

Tools summary:
* 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)
* Toolchain:      gcc (GNU Compiler Collection)
* 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)
* 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++)

Build performance summary:
* Build jobs:     20
* Memory limit:   31807 MB
```

Any idea about how to fix this?

Kind regards,
Juan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/babylon-dev/attachments/20250123/3f153fe8/attachment-0001.htm>


More information about the babylon-dev mailing list