Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Native Image] GraalPy/Regex fails to build with --link-at-build-time #10775

Open
1 task done
sgammon opened this issue Feb 27, 2025 · 0 comments
Open
1 task done

[Native Image] GraalPy/Regex fails to build with --link-at-build-time #10775

sgammon opened this issue Feb 27, 2025 · 0 comments
Assignees

Comments

@sgammon
Copy link

sgammon commented Feb 27, 2025

Describe the Issue

(1) Use GraalPython in a native image
(2) Use the flag --link-at-build-time
(3) Observe the exception:

Error: Discovered unresolved type during parsing: com.oracle.truffle.regex.chardata.UnicodeCharacterAliases. This error is reported at image build time because class com.oracle.graal.python.builtins.objects.str.StringUtils is registered for linking at image build time by command line and command line.
Error encountered while parsing com.oracle.graal.python.builtins.objects.str.StringUtils.getCodePoint(StringUtils.java:599)
Parsing context:
   at com.oracle.graal.python.charset.PythonUnicodeEscapeCharsetDecoder.decodeLoop(PythonUnicodeEscapeCharsetDecoder.java:202)
   at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:588)
   at java.nio.charset.CharsetEncoder.isLegalReplacement(CharsetEncoder.java:355)
   at sun.nio.cs.UTF_8$Encoder.isLegalReplacement(UTF_8.java:430)
   at java.nio.charset.CharsetEncoder.replaceWith(CharsetEncoder.java:301)
   at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:209)
   at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:236)
   at com.oracle.svm.core.code.FactoryMethodHolder.UTF_8$Encoder_gEklx4HQTUAFHkvj7xbADB(generated:0)
   at sun.nio.cs.UTF_8.newEncoder(UTF_8.java:77)
   at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:258)
   at com.oracle.svm.core.code.FactoryMethodHolder.StreamEncoder_Midrc0q9WBB3isZXITAwJE(generated:0)
   at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:145)
   at com.oracle.svm.core.code.FactoryMethodHolder.OutputStreamWriter_4rOPIRMHcv4wKkzWKgSLF8(generated:0)
   at java.io.PrintWriter.<init>(PrintWriter.java:170)
   at java.io.PrintWriter.<init>(PrintWriter.java:151)
   at com.oracle.svm.core.code.FactoryMethodHolder.PrintWriter_Yy459M22Ii313DSmzmpghG(generated:0)
   at com.oracle.svm.enterprise.core.q.at(stripped:67)
   at com.oracle.svm.enterprise.core.q.dumpImageMethods(stripped:153)
   at com.oracle.svm.core.code.IsolateEnterStub.q_dumpImageMethods_hBsbB4ZKdhI7Ws4QixIvfH(generated:0)
   at static root method.(Unknown Source)

Using the latest version of GraalVM can resolve many issues.

GraalVM Version

java 23.0.2 2025-01-21
Java(TM) SE Runtime Environment Oracle GraalVM 23.0.2+7.1 (build 23.0.2+7-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 23.0.2+7.1 (build 23.0.2+7-jvmci-b01, mixed mode, sharing)

Operating System and Version

Linux 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build Command

Through Gradle:

/usr/lib/jvm/gvm.jdk23/bin/java \
-XX:+UseParallelGC \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
-Dtruffle.TrustAllTruffleRuntimeProviders=true \
-Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime \
-Dgraalvm.ForcePolyglotInvalid=true \
-Dgraalvm.locatorDisabled=true \
-Dsubstratevm.HostLibC=glibc \
--add-exports=java.base/com.sun.crypto.provider=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.access=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.event=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.loader=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.logger=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.misc=com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile,org.graalvm.nativeimage.pointsto \
--add-exports=java.base/jdk.internal.module=org.graalvm.nativeimage.base,org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.org.objectweb.asm=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.perf=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.platform=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.ref=org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=java.base/jdk.internal.reflect=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.util=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.vm.annotation=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.vm=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.invoke.util=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.net.www=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.net=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.nio.ch=org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=java.base/sun.reflect.annotation=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.factory=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.repository=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.scope=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.tree=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.jca=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.provider=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.ssl=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.util=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.x509=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.text.spi=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.calendar=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.cldr=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.locale.provider=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.locale=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.resources=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util=org.graalvm.nativeimage.builder \
--add-exports=java.management/com.sun.jmx.mbeanserver=org.graalvm.nativeimage.builder \
--add-exports=java.management/sun.management=org.graalvm.nativeimage.builder,org.graalvm.nativeimage.pointsto \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.aarch64=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.amd64=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.site=com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.stack=jdk.graal.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile,org.graalvm.nativeimage.pointsto,org.graalvm.truffle.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.common=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.pointsto \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=jdk.graal.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=jdk.graal.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.riscv64=jdk.graal.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot=com.oracle.graal.graal_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.meta=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.base,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile,org.graalvm.nativeimage.pointsto,org.graalvm.truffle.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.riscv64=com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.runtime=com.oracle.graal.graal_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.pointsto \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.services=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.graal.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.jfr/jdk.jfr.events=org.graalvm.nativeimage.builder \
--add-exports=jdk.jfr/jdk.jfr.internal.event=org.graalvm.nativeimage.builder \
--add-exports=jdk.jfr/jdk.jfr.internal.jfc=com.oracle.svm.svm_enterprise,org.graalvm.nativeimage.builder \
--add-exports=jdk.jfr/jdk.jfr.internal=com.oracle.svm.svm_enterprise,org.graalvm.nativeimage.builder \
--add-exports=jdk.management/com.sun.management.internal=org.graalvm.nativeimage.builder \
-XX:+UseJVMCINativeLibrary \
-Xss10m \
-XX:MaxRAMPercentage=47.00973726863212 \
-XX:GCTimeRatio=9 \
-XX:+ExitOnOutOfMemoryError \
-Djava.awt.headless=true \
'-Dorg.graalvm.vendor=Oracle Corporation' \
-Dorg.graalvm.vendorurl=https://www.graalvm.org/ \
'-Dorg.graalvm.vendorversion=Oracle GraalVM 23.0.2+7.1' \
-Dorg.graalvm.version=24.1.2 \
-Dcom.oracle.graalvm.isaot=true \
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \
-Xshare:off \
-Dgraalvm.ForcePolyglotInvalid=false \
-Dtruffle.TruffleRuntime=com.oracle.svm.truffle.api.SubstrateTruffleRuntime \
-Dgraalvm.ForcePolyglotInvalid=false \
-Djdk.reflect.useOldSerializableConstructor=true \
-Djdk.internal.lambda.disableEagerInitialization=true \
-Djdk.internal.lambda.eagerlyInitialize=false \
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \
-Djava.lang.invoke.MethodHandle.DONT_INLINE_THRESHOLD=-1 \
-Djava.lang.invoke.MethodHandle.PROFILE_GWT=false \
--enable-preview \
--add-modules=jdk.unsupported \
--add-modules=java.net.http \
-da \
-dsa \
--enable-native-access=elide,org.graalvm.js,org.graalvm.py,ALL-UNNAMED \
-XX:+UnlockExperimentalVMOptions \
-Dorg.graalvm.supporturl=https://elide.dev \
'-Dorg.graalvm.vendor=Elide (GraalVM)' \
-Dpolyglot.engine.WarnVirtualThreadSupport=false \
-Dpolyglotimpl.DisableVersionChecks=false \
-Dpolyglot.engine.SpawnIsolate=false \
-Dpolyglot.engine.WarnOptionDeprecation=false \
-Dpolyglot.engine.AllowExperimentalOptions=true \
-Dpolyglot.image-build-time.Cache=/tmp/elide-auxcache.bin \
-Dpolyglot.image-build-time.AllowExperimentalOptions=true \
-Delide.binpath.override=/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/build/native/nativeOptimizedCompile/labs \
-Delide.pkl=false \
-Delide.isolates=false \
-Delide.preinit=js,python \
-Delide.auxcache=true \
-Delide.auxcache.trace=true \
-Dpolyglot.engine.PreinitializeContexts=js,python \
-Dpolyglot.image-build-time.PreinitializeContexts=js,python \
-Dpolyglot.image-build-time.PreinitializeContextsWithNative=true \
-Dpolyglot.image-build-time.PreinitializeAllowExperimentalOptions=true \
--enable-preview \
-Dpolyglot.engine.Cache=/tmp/elide-auxcache.bin \
--add-modules=ALL-DEFAULT \
--module-path \
/usr/lib/jvm/gvm.jdk23/lib/svm/builder/native-image-base.jar:/usr/lib/jvm/gvm.jdk23/lib/svm/builder/pointsto.jar:/usr/lib/jvm/gvm.jdk23/lib/svm/builder/svm-enterprise.jar:/usr/lib/jvm/gvm.jdk23/lib/svm/builder/objectfile.jar:/usr/lib/jvm/gvm.jdk23/lib/svm/builder/svm-foreign.jar:/usr/lib/jvm/gvm.jdk23/lib/svm/builder/svm.jar \
-Dorg.graalvm.nativeimage.module.addmods=jdk.unsupported,java.net.http,jdk.incubator.vector,org.graalvm.truffle,com.oracle.truffle.enterprise,com.oracle.truffle.truffle_nfi_libffi,org.graalvm.polyglot,com.oracle.truffle.truffle_nfi,org.graalvm.truffle.runtime,org.graalvm.truffle.compiler,org.graalvm.nativebridge,org.graalvm.jniutils,org.graalvm.collections,org.graalvm.nativeimage,org.graalvm.word \
--add-modules=jdk.unsupported,java.net.http,jdk.incubator.vector,org.graalvm.truffle.compiler,org.graalvm.collections,org.graalvm.nativeimage,org.graalvm.word \
--module \
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner \
-keepalive \
/proc/211847/comm \
-imagecp \
/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/clikt-jvm.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/clikt-mordant-jvm.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/colormath-jvm.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/mordant-jvm.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/mordant-jvm-graal-ffi-jvm.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/mordant-markdown-jvm.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/mordant-omnibus-jvm.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/mosaic-runtime-jvm.jar \
-imagemp \
/home/sam/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/2.1.20-RC/ba278977842888e62868939ba0974bd6474ba27b/kotlin-stdlib-jdk7-2.1.20-RC.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.sdk/nativebridge/24.1.2/49f5bccacb02ba144ae7021c5128933d14078f9e/nativebridge-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-jvm/0.27.0/c67347bbbc14ff9f4308cee5a3d2e5bdac76da21/atomicfu-jvm-0.27.0.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/2.1.20-RC/791a250bd5c1878d55ead0800270e2aaa7b1c62c/kotlin-stdlib-2.1.20-RC.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/graaljs.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.sdk/jniutils/24.1.2/52b1040d974d3ba992e0c2d49c6af29dbacaaadf/jniutils-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-enterprise/24.1.2/9f8404ab06d8c116bbbc7be8c791ad52591dfd5f/truffle-enterprise-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-jvm/1.10.1/fe066928754beda3d59c8282e04289546465a360/kotlinx-coroutines-core-jvm-1.10.1.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-runtime/24.1.2/391459b97b8c1594f5549589ed0ed51d7224682e/truffle-runtime-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.llvm/llvm-api/24.1.2/cc474fdead374f4d115fda104ad29599e90d2e41/llvm-api-24.1.2.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.python/python-resources/24.1.2/bc2fad544b5410865f9151f12cdbf9c191695b50/python-resources-24.1.2.jar:/usr/lib/jvm/gvm.jdk23/lib/truffle/builder/truffle-enterprise-svm.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/2.1.20-RC/3cd977e98042cbf7fd6e82fd3c86cfea50131103/kotlin-stdlib-jdk8-2.1.20-RC.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/23.0.0/8cc20c07506ec18e0834947b84a864bfc094484e/annotations-23.0.0.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.shadowed/xz/24.1.2/61579370ea70d458603acc7167ccc1723232688d/xz-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.polyglot/polyglot/24.1.2/8f954ecda2c30def4cbd6f90d3871fa803a24d5/polyglot-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi-libffi/24.1.2/c049a9864fe4172a4eb5b04ea31387b0e61e51c9/truffle-nfi-libffi-24.1.2.jar:/usr/lib/jvm/gvm.jdk23/lib/svm/library-support.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.tools/profiler-tool/24.1.2/bcd8dc338c0eee869d0384bb86c41d0eb472056a/profiler-tool-24.1.2.jar:/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/build/libs/labs-0.1.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi/24.1.2/b9116063036c678ce1eb86e08b0495059ed13646/truffle-nfi-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcpkix-jdk18on/1.78.1/17b3541f736df97465f87d9f5b5dfa4991b37bb3/bcpkix-jdk18on-1.78.1.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.shadowed/icu4j/24.1.2/1a806bec5fad11a030eb0d6177d2c9b6e227b7e/icu4j-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk18on/1.78.1/39e9e45359e20998eb79c1828751f94a818d25f8/bcprov-jdk18on-1.78.1.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.regex/regex/24.1.2/c9850df88d2e8e99ca3103e8a28cf8d34f08cf5b/regex-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.shadowed/json/24.1.2/d9088286219463addba45418bbe56935dcba8b42/json-24.1.2.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcutil-jdk18on/1.78.1/5353ca39fe2f148dab9ca1d637a43d0750456254/bcutil-jdk18on-1.78.1.jar:/home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.python/python-language/24.1.2/838643c265d89f0bf80295389f8d72d183e9081a/python-language-24.1.2.jar:/usr/lib/jvm/gvm.jdk23/lib/truffle/builder/truffle-runtime-svm.jar \
-H:CLibraryPath=/usr/lib/jvm/gvm.jdk23/lib/svm/clibraries/linux-amd64/musl,/usr/lib/jvm/gvm.jdk23/lib/svm/clibraries/linux-amd64,/usr/lib/jvm/gvm.jdk23/lib/svm/clibraries \
-H:Path@driver=/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/build/native/nativeOptimizedCompile \
'-H:ResourceConfigurationResources@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/mordant-jvm-graal-ffi-jvm.jar!/META-INF/native-image/com.github.ajalt.mordant/mordant-jvm-graal-ffi/resource-config.json+api=META-INF/native-image/com.github.ajalt.mordant/mordant-jvm-graal-ffi/resource-config.json' \
-H:FallbackThreshold@user+api=0 \
-H:Name@user+api=elide \
-H:ConfigurationFileDirectories@user=/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/build/native/generated/generateOptimizedResourcesConfigFile,/home/sam/.gradle/native-build-tools/repositories/afa09c2415d35ce80c31de5ef6b32c66d2522603/exploded/org.jetbrains.kotlin/kotlin-stdlib/1.7.10,/home/sam/.gradle/native-build-tools/repositories/afa09c2415d35ce80c31de5ef6b32c66d2522603/exploded/org.bouncycastle/bcpkix-jdk18on/1.77 \
-H:RuntimeAssertions@user+api=- \
-H:-RuntimeSystemAssertions@user+api \
-H:PGOEnabled@user+api=/home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/default.iprof \
-H:+UseSerialGC@user+api \
-H:MicroArchitecture@user+api=x86-64-v3 \
-H:AddExports@user+api=elide/elidemin.dev.elide=org.graalvm.nativeimage.builder \
-H:ClassInitialization@user+api=:build_time \
-H:LinkAtBuildTime@user+api= \
-H:Color@user+api=always \
-H:Emit@user+api=build-report \
-R:MinHeapSize=48m \
-R:MaxHeapSize=16g \
-R:MaxNewSize=32m \
-H:+SourceLevelDebug@user \
-H:+UnlockExperimentalVMOptions@user \
-H:+UseCompressedReferences@user \
-H:+PreserveFramePointer@user \
-H:IncludeResources@user=org/graalvm/shadowed/com/ibm/icu/ICUConfig.properties \
-H:+CopyLanguageResources@user \
-H:+RemoveUnusedSymbols@user \
-H:ThrowMissingRegistrationErrors@user+api= \
-H:CCompilerPath@user+api=/usr/bin/gcc-14 \
-H:CCompilerOption@user+api=-flto \
-H:CCompilerOption@user+api=-O3 \
-H:CCompilerOption@user+api=-fuse-ld=mold \
-H:CCompilerOption@user+api=-fuse-linker-plugin \
-H:CCompilerOption@user+api=-fno-omit-frame-pointer \
-H:CCompilerOption@user+api=-ffunction-sections \
-H:CCompilerOption@user+api=-fdata-sections \
-H:CCompilerOption@user+api=-fstack-protector \
-H:CCompilerOption@user+api=-fmerge-all-constants \
-H:CCompilerOption@user+api=-fgcse-sm \
-H:CCompilerOption@user+api=-fgcse-las \
-H:CCompilerOption@user+api=-fno-semantic-interposition \
-H:CCompilerOption@user+api=-fipa-pta \
-H:CCompilerOption@user+api=-fipa-icf \
-H:CCompilerOption@user+api=-fno-fat-lto-objects \
-H:CCompilerOption@user+api=-Wl,-flto \
-H:CCompilerOption@user+api=-Wl,--emit-relocs \
-H:CCompilerOption@user+api=-Wl,--gc-sections \
-H:+AuxiliaryEngineCache@user \
-H:ReservedAuxiliaryImageBytes@user=107374182 \
-H:IncludeSBOM@user+api=cyclonedx \
-H:ClassInitialization@user+api=kotlin.coroutines.jvm.internal.BaseContinuationImpl:run_time \
-H:ClassInitialization@user+api=org.pkl.core.runtime.VmUtils:run_time \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.VmMapping$EmptyHolder:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.VmDynamic$EmptyHolder:run_time' \
-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule:run_time \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$BooleanClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$MappingClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$ListingClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$ListClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$DynamicClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$FloatClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$ResourceClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$ModuleClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$IntClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$StringClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$DataSizeClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$Function0Class:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$Function1Class:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$Function2Class:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$Function3Class:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$Function4Class:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$Function5Class:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$Function6Class:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$AnnotationClass:run_time' \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.BaseModule$ModuleInfoClass:run_time' \
-H:ClassInitialization@user+api=org.pkl.core.runtime.ReflectModule:run_time \
'-H:ClassInitialization@user+api=org.pkl.core.runtime.ReflectModule$DeclaredTypeClass:run_time' \
-H:ClassInitialization@user+api=org.pkl.core.runtime.BenchmarkModule:run_time \
-H:ClassInitialization@user+api=org.pkl.core.runtime.JsonnetModule:run_time \
-H:ClassInitialization@user+api=org.pkl.core.runtime.SemVerModule:run_time \
-H:ClassInitialization@user+api=org.pkl.core.runtime.AnalyzeModule:run_time \
-H:ClassInitialization@user+api=org.pkl.core.runtime.ProjectModule:run_time \
-H:ClassInitialization@user+api=org.pkl.core.runtime.XmlModule:run_time \
-H:ClassInitialization@user+api=org.pkl.core.runtime.TestModule:run_time \
-H:ClassInitialization@user+api=org.pkl.core.runtime.SettingsModule:run_time \
'-H:ClassInitialization@user+api=org.pkl.core.stdlib.platform.PlatformNodes$current:run_time' \
-H:ClassInitialization@user+api=org.pkl.core.stdlib.protobuf.RendererNodes:run_time \
-H:ClassInitialization@user+api=org.pkl.core.stdlib.analyze.AnalyzeNodes:run_time \
'-H:MaxRuntimeCompileMethods@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/graaljs.jar!/META-INF/native-image/org.graalvm.js/native-image.properties=10000' \
'-H:ClassInitialization@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/graaljs.jar!/META-INF/native-image/org.graalvm.js/native-image.properties+api=com.oracle.truffle.js:build_time,com.oracle.js.parser:build_time,com.oracle.truffle.regex:build_time' \
'-H:AddOpens@jar:file:///usr/lib/jvm/gvm.jdk23/lib/truffle/builder/truffle-runtime-svm.jar!/META-INF/native-image/org.graalvm.truffle.runtime.svm/native-image.properties+api=org.graalvm.polyglot/org.graalvm.polyglot=org.graalvm.truffle' \
'-H:AddExports@jar:file:///usr/lib/jvm/gvm.jdk23/lib/truffle/builder/truffle-runtime-svm.jar!/META-INF/native-image/org.graalvm.truffle.runtime.svm/native-image.properties+api=jdk.internal.vm.ci/jdk.vm.ci.meta=org.graalvm.truffle.runtime.svm' \
'-H:AddExports@jar:file:///usr/lib/jvm/gvm.jdk23/lib/truffle/builder/truffle-runtime-svm.jar!/META-INF/native-image/org.graalvm.truffle.runtime.svm/native-image.properties+api=jdk.internal.vm.ci/jdk.vm.ci.code=org.graalvm.truffle.runtime.svm' \
'-H:AddExports@jar:file:///usr/lib/jvm/gvm.jdk23/lib/truffle/builder/truffle-runtime-svm.jar!/META-INF/native-image/org.graalvm.truffle.runtime.svm/native-image.properties+api=java.base/jdk.internal.misc=org.graalvm.truffle.runtime.svm' \
'-H:AddExports@jar:file:///usr/lib/jvm/gvm.jdk23/lib/truffle/builder/truffle-enterprise-svm.jar!/META-INF/native-image/com.oracle.truffle.enterprise.svm/native-image.properties+api=jdk.graal.compiler/jdk.graal.compiler.options=com.oracle.truffle.enterprise.svm' \
'-H:CLibraryPath@--macro:truffle-svm@file:///usr/lib/jvm/gvm.jdk23/lib/svm/macros/truffle-svm/@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties=/usr/lib/jvm/gvm.jdk23/lib/svm/macros/truffle-svm/builder' \
'-H:Features@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties+api=com.oracle.svm.truffle.TruffleBaseFeature' \
'-H:ClassInitialization@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties+api=com.oracle.truffle:build_time' \
'-H:ClassInitialization@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties+api=org.graalvm.jniutils:build_time' \
'-H:ClassInitialization@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties+api=org.graalvm.nativebridge:build_time' \
'-H:ClassInitialization@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties+api=org.graalvm.shadowed.org.json:build_time' \
'-H:ClassInitialization@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties+api=org.graalvm.shadowed.org.jline:build_time,org.graalvm.shadowed.org.fusesource.jansi:build_time' \
'-H:ClassInitialization@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties+api=sun.rmi:run_time' \
'-H:ClassInitialization@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/jars/truffle-api.jar!/META-INF/native-image/org.graalvm.truffle/native-image.properties+api=java.rmi:run_time' \
'-H:MaxRuntimeCompileMethods@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.python/python-language/24.1.2/838643c265d89f0bf80295389f8d72d183e9081a/python-language-24.1.2.jar!/META-INF/native-image/org.graalvm.py/native-image.properties=20000' \
'-H:ClassInitialization@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.python/python-language/24.1.2/838643c265d89f0bf80295389f8d72d183e9081a/python-language-24.1.2.jar!/META-INF/native-image/org.graalvm.py/native-image.properties+api=com.oracle.graal.python:build_time,com.oracle.truffle.regex:build_time,jline:build_time,org.fusesource:build_time' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.python/python-language/24.1.2/838643c265d89f0bf80295389f8d72d183e9081a/python-language-24.1.2.jar!/META-INF/native-image/org.graalvm.py/native-image.properties+api=com.oracle.graal.python.BouncyCastleFeature,com.oracle.graal.python.JNIFeature' \
'-H:AddExports@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.python/python-language/24.1.2/838643c265d89f0bf80295389f8d72d183e9081a/python-language-24.1.2.jar!/META-INF/native-image/org.graalvm.py/native-image.properties+api=org.graalvm.nativeimage/org.graalvm.nativeimage.impl=org.graalvm.py' \
'-H:ReflectionConfigurationResources@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.python/python-language/24.1.2/838643c265d89f0bf80295389f8d72d183e9081a/python-language-24.1.2.jar!/META-INF/native-image/org.graalvm.py/reflect-config.json+api=META-INF/native-image/org.graalvm.py/reflect-config.json' \
'-H:ResourceConfigurationResources@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.python/python-language/24.1.2/838643c265d89f0bf80295389f8d72d183e9081a/python-language-24.1.2.jar!/META-INF/native-image/org.graalvm.py/resource-config.json+api=META-INF/native-image/org.graalvm.py/resource-config.json' \
'-H:AddOpens@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.nativeimage/truffle-runtime-svm/24.1.2/d9c21beb51a9d8f11e92e0e0ab41d18d76042732/truffle-runtime-svm-24.1.2.jar!/META-INF/native-image/org.graalvm.truffle.runtime.svm/native-image.properties+api=org.graalvm.polyglot/org.graalvm.polyglot=org.graalvm.truffle' \
'-H:AddExports@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.nativeimage/truffle-runtime-svm/24.1.2/d9c21beb51a9d8f11e92e0e0ab41d18d76042732/truffle-runtime-svm-24.1.2.jar!/META-INF/native-image/org.graalvm.truffle.runtime.svm/native-image.properties+api=jdk.internal.vm.ci/jdk.vm.ci.meta=org.graalvm.truffle.runtime.svm' \
'-H:AddExports@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.nativeimage/truffle-runtime-svm/24.1.2/d9c21beb51a9d8f11e92e0e0ab41d18d76042732/truffle-runtime-svm-24.1.2.jar!/META-INF/native-image/org.graalvm.truffle.runtime.svm/native-image.properties+api=jdk.internal.vm.ci/jdk.vm.ci.code=org.graalvm.truffle.runtime.svm' \
'-H:AddExports@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.nativeimage/truffle-runtime-svm/24.1.2/d9c21beb51a9d8f11e92e0e0ab41d18d76042732/truffle-runtime-svm-24.1.2.jar!/META-INF/native-image/org.graalvm.truffle.runtime.svm/native-image.properties+api=java.base/jdk.internal.misc=org.graalvm.truffle.runtime.svm' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-enterprise/24.1.2/9f8404ab06d8c116bbbc7be8c791ad52591dfd5f/truffle-enterprise-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.enterprise/native-image.properties+api=com.oracle.truffle.runtime.enterprise.EnableEnterpriseFeature' \
'-H:ClassInitialization@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.regex/regex/24.1.2/c9850df88d2e8e99ca3103e8a28cf8d34f08cf5b/regex-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.regex/native-image.properties+api=com.oracle.truffle.regex:build_time' \
'-H:MaxRuntimeCompileMethods@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.regex/regex/24.1.2/c9850df88d2e8e99ca3103e8a28cf8d34f08cf5b/regex-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.regex/native-image.properties=900' \
'-H:ClassInitialization@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.shadowed/icu4j/24.1.2/1a806bec5fad11a030eb0d6177d2c9b6e227b7e/icu4j-24.1.2.jar!/META-INF/native-image/org.graalvm.shadowed.icu4j/native-image.properties+api=org.graalvm.shadowed.com.ibm.icu:run_time' \
'-H:ReflectionConfigurationResources@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.shadowed/icu4j/24.1.2/1a806bec5fad11a030eb0d6177d2c9b6e227b7e/icu4j-24.1.2.jar!/META-INF/native-image/org.graalvm.shadowed.icu4j/reflect-config.json+api=META-INF/native-image/org.graalvm.shadowed.icu4j/reflect-config.json' \
'-H:ResourceConfigurationResources@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.shadowed/icu4j/24.1.2/1a806bec5fad11a030eb0d6177d2c9b6e227b7e/icu4j-24.1.2.jar!/META-INF/native-image/org.graalvm.shadowed.icu4j/resource-config.json+api=META-INF/native-image/org.graalvm.shadowed.icu4j/resource-config.json' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi-libffi/24.1.2/c049a9864fe4172a4eb5b04ea31387b0e61e51c9/truffle-nfi-libffi-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.truffle_nfi_libffi/native-image.properties+api=com.oracle.svm.truffle.nfi.TruffleNFIFeature' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi-libffi/24.1.2/c049a9864fe4172a4eb5b04ea31387b0e61e51c9/truffle-nfi-libffi-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.truffle_nfi_libffi/native-image.properties+api=com.oracle.svm.truffle.nfi.posix.PosixTruffleNFIFeature' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi-libffi/24.1.2/c049a9864fe4172a4eb5b04ea31387b0e61e51c9/truffle-nfi-libffi-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.truffle_nfi_libffi/native-image.properties+api=com.oracle.svm.truffle.nfi.windows.WindowsTruffleNFIFeature' \
'-H:MaxRuntimeCompileMethods@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi-libffi/24.1.2/c049a9864fe4172a4eb5b04ea31387b0e61e51c9/truffle-nfi-libffi-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.truffle_nfi_libffi/native-image.properties=600' \
'-H:ClassInitialization@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.tools/profiler-tool/24.1.2/bcd8dc338c0eee869d0384bb86c41d0eb472056a/profiler-tool-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.tools.profiler/native-image.properties+api=com.oracle.truffle.tools.profiler:build_time' \
'-H:MaxRuntimeCompileMethods@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.tools/profiler-tool/24.1.2/bcd8dc338c0eee869d0384bb86c41d0eb472056a/profiler-tool-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.tools.profiler/native-image.properties=100' \
'-H:ResourceConfigurationResources@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.tools/profiler-tool/24.1.2/bcd8dc338c0eee869d0384bb86c41d0eb472056a/profiler-tool-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.tools.profiler/resource-config.json+api=META-INF/native-image/com.oracle.truffle.tools.profiler/resource-config.json' \
'-H:ClassInitialization@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.polyglot/polyglot/24.1.2/8f954ecda2c30def4cbd6f90d3871fa803a24d5/polyglot-24.1.2.jar!/META-INF/native-image/org.graalvm.polyglot/native-image.properties+api=org.graalvm.polyglot:build_time' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.polyglot/polyglot/24.1.2/8f954ecda2c30def4cbd6f90d3871fa803a24d5/polyglot-24.1.2.jar!/META-INF/native-image/org.graalvm.home/native-image.properties+api=org.graalvm.home.HomeFinderFeature' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi/24.1.2/b9116063036c678ce1eb86e08b0495059ed13646/truffle-nfi-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.truffle_nfi/native-image.properties+api=com.oracle.svm.truffle.nfi.TruffleNFIFeature' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi/24.1.2/b9116063036c678ce1eb86e08b0495059ed13646/truffle-nfi-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.truffle_nfi/native-image.properties+api=com.oracle.svm.truffle.nfi.posix.PosixTruffleNFIFeature' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi/24.1.2/b9116063036c678ce1eb86e08b0495059ed13646/truffle-nfi-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.truffle_nfi/native-image.properties+api=com.oracle.svm.truffle.nfi.windows.WindowsTruffleNFIFeature' \
'-H:MaxRuntimeCompileMethods@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-nfi/24.1.2/b9116063036c678ce1eb86e08b0495059ed13646/truffle-nfi-24.1.2.jar!/META-INF/native-image/com.oracle.truffle.truffle_nfi/native-image.properties=600' \
'-H:ClassInitialization@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.shadowed/xz/24.1.2/61579370ea70d458603acc7167ccc1723232688d/xz-24.1.2.jar!/META-INF/native-image/org.graalvm.shadowed.org.tukaani.xz/native-image.properties+api=org.graalvm.shadowed.org.tukaani.xz:build_time' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-runtime/24.1.2/391459b97b8c1594f5549589ed0ed51d7224682e/truffle-runtime-24.1.2.jar!/META-INF/native-image/org.graalvm.truffle.runtime/native-image.properties+api=com.oracle.svm.truffle.TruffleFeature' \
'-H:Features@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-runtime/24.1.2/391459b97b8c1594f5549589ed0ed51d7224682e/truffle-runtime-24.1.2.jar!/META-INF/native-image/org.graalvm.truffle.runtime/native-image.properties+api=com.oracle.svm.truffle.TruffleJFRFeature' \
'-H:MaxRuntimeCompileMethods@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.truffle/truffle-runtime/24.1.2/391459b97b8c1594f5549589ed0ed51d7224682e/truffle-runtime-24.1.2.jar!/META-INF/native-image/org.graalvm.truffle.runtime/native-image.properties=2500' \
'-H:ClassInitialization@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.shadowed/json/24.1.2/d9088286219463addba45418bbe56935dcba8b42/json-24.1.2.jar!/META-INF/native-image/org.graalvm.shadowed.org.json/native-image.properties+api=org.graalvm.shadowed.org.json:build_time' \
'-H:AddExports@jar:file:///home/sam/.gradle/caches/modules-2/files-2.1/org.graalvm.sdk/nativeimage/24.1.2/7565eb3a984f7aece7769950e936ec12638977b6/nativeimage-24.1.2.jar!/META-INF/native-image/org.graalvm.nativeimage/native-image.properties+api=org.graalvm.nativeimage/org.graalvm.nativeimage.impl=ALL-UNNAMED' \
'-H:ReachabilityMetadataResources@jar:file:///home/sam/workspace/labs/gvm-min/elidemin-purekt-truffle/build/libs/labs-0.1.jar!/META-INF/native-image/reachability-metadata.json+api=META-INF/native-image/reachability-metadata.json' \
-H:+StaticExecutable@user+api \
-H:UseLibC@user+api=musl \
-H:+InstallExitHandlers@user \
-R:+InstallSegfaultHandler \
-H:-UnlockExperimentalVMOptions@user \
-H:FallbackThreshold@driver=0 \
'-H:Class@explicit main-class=elidemin.dev.elide.ApplicationKt' \
-H:ImageBuildID@driver=0893c1bd-40e4-b23c-2bfc-76eb762a886e \
'-H:Features@jar:file:///usr/lib/jvm/gvm.jdk23/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/thirdparty/native-image.properties+api=com.oracle.svm.thirdparty.gson.GsonFeature' \
'-H:Features@jar:file:///usr/lib/jvm/gvm.jdk23/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/polyglot/native-image.properties+api=com.oracle.svm.polyglot.groovy.GroovyIndyInterfaceFeature,com.oracle.svm.polyglot.scala.ScalaFeature'
]

Expected Behavior

Should build...

Actual Behavior

... does not

Steps to Reproduce

(1) Use GraalPython in a native image
(2) Use the flag --link-at-build-time
(3) Observe the exception:

Additional Context

No response

Build Log Output and Error Messages

Error: Discovered unresolved type during parsing: com.github.ajalt.clikt.command.SuspendingCliktCommand. This error is reported at image build time because class elidemin.dev.elide.ApplicationKt is registered for linking at image build time by command line and command line.
Error encountered while parsing elidemin.dev.elide.NativeEntry.startElideMain(Application.kt:693)
Parsing context:
   at com.oracle.svm.core.code.IsolateEnterStub.NativeEntry_startElideMain_fqQa4aZPJg6X0dbynZ7dyF(generated:0)
   at static root method.(Unknown Source)

Error: Discovered unresolved type during parsing: com.oracle.truffle.regex.chardata.UnicodeCharacterAliases. This error is reported at image build time because class com.oracle.graal.python.builtins.objects.str.StringUtils is registered for linking at image build time by command line and command line.
Error encountered while parsing com.oracle.graal.python.builtins.objects.str.StringUtils.getCodePoint(StringUtils.java:599)
Parsing context:
   at com.oracle.graal.python.charset.PythonUnicodeEscapeCharsetDecoder.decodeLoop(PythonUnicodeEscapeCharsetDecoder.java:202)
   at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:588)
   at java.nio.charset.CharsetEncoder.isLegalReplacement(CharsetEncoder.java:355)
   at sun.nio.cs.UTF_8$Encoder.isLegalReplacement(UTF_8.java:430)
   at java.nio.charset.CharsetEncoder.replaceWith(CharsetEncoder.java:301)
   at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:209)
   at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:236)
   at com.oracle.svm.core.code.FactoryMethodHolder.UTF_8$Encoder_gEklx4HQTUAFHkvj7xbADB(generated:0)
   at sun.nio.cs.UTF_8.newEncoder(UTF_8.java:77)
   at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:258)
   at com.oracle.svm.core.code.FactoryMethodHolder.StreamEncoder_Midrc0q9WBB3isZXITAwJE(generated:0)
   at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:145)
   at com.oracle.svm.core.code.FactoryMethodHolder.OutputStreamWriter_4rOPIRMHcv4wKkzWKgSLF8(generated:0)
   at java.io.PrintWriter.<init>(PrintWriter.java:170)
   at java.io.PrintWriter.<init>(PrintWriter.java:151)
   at com.oracle.svm.core.code.FactoryMethodHolder.PrintWriter_Yy459M22Ii313DSmzmpghG(generated:0)
   at com.oracle.svm.enterprise.core.q.at(stripped:67)
   at com.oracle.svm.enterprise.core.q.dumpImageMethods(stripped:153)
   at com.oracle.svm.core.code.IsolateEnterStub.q_dumpImageMethods_hBsbB4ZKdhI7Ws4QixIvfH(generated:0)
   at static root method.(Unknown Source)


Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Unsupported features in 2 methods
Detailed message:
Error: Discovered unresolved type during parsing: com.github.ajalt.clikt.command.SuspendingCliktCommand. This error is reported at image build time because class elidemin.dev.elide.ApplicationKt is registered for linking at image build time by command line and command line.
Error encountered while parsing elidemin.dev.elide.NativeEntry.startElideMain(Application.kt:693)
Parsing context:
   at com.oracle.svm.core.code.IsolateEnterStub.NativeEntry_startElideMain_fqQa4aZPJg6X0dbynZ7dyF(generated:0)
   at static root method.(Unknown Source)

Error: Discovered unresolved type during parsing: com.oracle.truffle.regex.chardata.UnicodeCharacterAliases. This error is reported at image build time because class com.oracle.graal.python.builtins.objects.str.StringUtils is registered for linking at image build time by command line and command line.
Error encountered while parsing com.oracle.graal.python.builtins.objects.str.StringUtils.getCodePoint(StringUtils.java:599)
Parsing context:
   at com.oracle.graal.python.charset.PythonUnicodeEscapeCharsetDecoder.decodeLoop(PythonUnicodeEscapeCharsetDecoder.java:202)
   at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:588)
   at java.nio.charset.CharsetEncoder.isLegalReplacement(CharsetEncoder.java:355)
   at sun.nio.cs.UTF_8$Encoder.isLegalReplacement(UTF_8.java:430)
   at java.nio.charset.CharsetEncoder.replaceWith(CharsetEncoder.java:301)
   at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:209)
   at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:236)
   at com.oracle.svm.core.code.FactoryMethodHolder.UTF_8$Encoder_gEklx4HQTUAFHkvj7xbADB(generated:0)
   at sun.nio.cs.UTF_8.newEncoder(UTF_8.java:77)
   at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:258)
   at com.oracle.svm.core.code.FactoryMethodHolder.StreamEncoder_Midrc0q9WBB3isZXITAwJE(generated:0)
   at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:145)
   at com.oracle.svm.core.code.FactoryMethodHolder.OutputStreamWriter_4rOPIRMHcv4wKkzWKgSLF8(generated:0)
   at java.io.PrintWriter.<init>(PrintWriter.java:170)
   at java.io.PrintWriter.<init>(PrintWriter.java:151)
   at com.oracle.svm.core.code.FactoryMethodHolder.PrintWriter_Yy459M22Ii313DSmzmpghG(generated:0)
   at com.oracle.svm.enterprise.core.q.at(stripped:67)
   at com.oracle.svm.enterprise.core.q.dumpImageMethods(stripped:153)
   at com.oracle.svm.core.code.IsolateEnterStub.q_dumpImageMethods_hBsbB4ZKdhI7Ws4QixIvfH(generated:0)
   at static root method.(Unknown Source)


        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:129)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:866)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:592)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:554)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:528)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:711)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:139)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:94)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants