spring-attic / spring-native

Spring Native is now superseded by Spring Boot 3 official native support
https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html
Apache License 2.0
2.74k stars 356 forks source link

webmvc-kotlin fails with GraalVM 22.1 #1556

Closed mhalbritter closed 2 years ago

mhalbritter commented 2 years ago
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment GraalVM CE 22.1.0-dev (build 17.0.3+4-jvmci-22.1-b03)
OpenJDK 64-Bit Server VM GraalVM CE 22.1.0-dev (build 17.0.3+4-jvmci-22.1-b03, mixed mode, sharing)

build fails with

========================================================================================================================
GraalVM Native Image: Generating 'webmvc-kotlin' (executable)...
========================================================================================================================

[1/7] Initializing...                                                                                    (0,0s @ 0,18GB)
Error: ImageSingletons do not contain key com.oracle.svm.hosted.LinkAtBuildTimeSupport
------------------------------------------------------------------------------------------------------------------------
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
                         0,1s (6,8% of total time) in 8 GCs | Peak RSS: 0,64GB | CPU load: 6,13
========================================================================================================================
Failed generating 'webmvc-kotlin' after 1,2s.
mhalbritter commented 2 years ago

Could be related to https://github.com/oracle/graal/issues/4424

mhalbritter commented 2 years ago

Works with latest graal code, built from commit https://github.com/oracle/graal/commit/3eb1d111ab25565acbbc015128a2c787656e2675