Error building Babylon in Fedora 41
Juan Fumero
juan.fumero at manchester.ac.uk
Fri Jan 10 10:07:26 UTC 2025
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/20250110/4374084b/attachment.htm>
More information about the babylon-dev
mailing list