mandrel icon indicating copy to clipboard operation
mandrel copied to clipboard

[24.1] Mandrel fails to build due to BootstrapMethodConfiguration feature init failure

Open jerboaa opened this issue 4 months ago • 1 comments

Description

Mandrel builds with JDK-23-beta+19-ea fail initializing the BootstrapMethodConfiguration feature when generating the native image agent:

========================================================================================================================
GraalVM Native Image: Generating 'native-image-agent' (shared library)...
========================================================================================================================
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
------------------------------------------------------------------------------------------------------------------------

[1/8] Initializing...                                                                                    (0.0s @ 0.08GB)
Error: Error instantiating Feature class com.oracle.svm.core.bootstrap.BootstrapMethodConfiguration. Ensure the class is not abstract and has a no-argument constructor.
------------------------------------------------------------------------------------------------------------------------
                        0.2s (5.4% of total time) in 10 GCs | Peak RSS: 0.28GB | CPU load: 2.48
========================================================================================================================
Failed generating 'native-image-agent' after 3.3s.
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Failed, exit code: 1
	at OperatingSystem.exec(build.java:1813)
	at build.buildAgents(build.java:290)
	at build.main(build.java:233)
Caused by: java.lang.RuntimeException: Failed, exit code: 1
	at OperatingSystem.exec(build.java:1802)
	at build.buildAgents(build.java:290)
	at build.main(build.java:233)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at jdk.compiler/com.sun.tools.javac.launcher.SourceLauncher.execute(SourceLauncher.java:268)
	at jdk.compiler/com.sun.tools.javac.launcher.SourceLauncher.run(SourceLauncher.java:153)
	at jdk.compiler/com.sun.tools.javac.launcher.SourceLauncher.main(SourceLauncher.java:78)
native-image 23-beta 2024-09-17
OpenJDK Runtime Environment Mandrel-24.1.0-deva65ec785 (build 23-beta+19-ea)
OpenJDK 64-Bit Server VM Mandrel-24.1.0-deva65ec785 (build 23-beta+19-ea, mixed mode)

See: https://github.com/graalvm/mandrel/actions/runs/8761583811/job/24048287236#step:8:473 (Windows) and https://github.com/graalvm/mandrel/actions/runs/8761583811/job/24048286667#step:8:500 (Linux)

jerboaa avatar Apr 22 '24 09:04 jerboaa