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

Remove legacy truffle bits for the non-jlink case #7695

Closed
wants to merge 1 commit into from

Conversation

jerboaa
Copy link
Collaborator

@jerboaa jerboaa commented Oct 30, 2023

This is a clean-up patch as discussed in #7205. There should be no need to manually add truffle-runtime-svm to the module path on GraalVM >= 23.1.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 30, 2023
@jerboaa
Copy link
Collaborator Author

jerboaa commented Oct 30, 2023

@chumer This should address #7205 (comment) correct?

@fniephaus fniephaus requested a review from chumer November 6, 2023 10:11
@jerboaa
Copy link
Collaborator Author

jerboaa commented Nov 8, 2023

FWIW, the public gate failures seem related. However, this contradicts what was said in #7205 (comment)

I'm able to reproduce the gate failure with something like (and this PR):

mx --dynamicimports '/substratevm,/sulong' --primary-suite-path vm --native-images="polyglot" build
[...]
WARNING: Unknown module: org.graalvm.truffle.runtime.svm specified to --add-exports
[polyglot:105324] ========================================================================================================================
[polyglot:105324] GraalVM Native Image: Generating 'polyglot' (executable)...
[polyglot:105324] ========================================================================================================================
[polyglot:105324] [1/8] Initializing...
                                                                  (0.0s @ 0.19GB)
Error: Feature com.oracle.svm.truffle.TruffleFeature class not found on the classpath. Ensure that the name is correct and that the class is on the classpath.
com.oracle.svm.core.util.UserError$UserException: Feature com.oracle.svm.truffle.TruffleFeature class not found on the classpath. Ensure that the name is correct and that the class is on the classpath.
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:73)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.registerFeatures(FeatureHandler.java:183)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:890)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:573)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:540)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:524)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:699)
	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)
[polyglot:105324] ------------------------------------------------------------------------------------------------------------------------
[polyglot:105324]                          0.2s (7.2% of total time) in 9 GCs | Peak RSS: 0.70GB | CPU load: 5.87
[polyglot:105324] ========================================================================================================================
[polyglot:105324] Finished generating 'polyglot' in 2.4s.

Building polyglot.image: Failed due to error: 1

So I guess it's needed after all in > 23.1 land? Happy to drop this PR, fwiw. Up to @chumer to decide.

@jerboaa
Copy link
Collaborator Author

jerboaa commented Nov 8, 2023

Apparently TruffleFeature class is in truffle-runtime-svm.jar. And that jar is not on the imagecp due to this change:

$ sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/bin/native-image --macro:polyglot-launcher --verbose
Apply jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/jline3.jar!/META-INF/native-image/org.graalvm.shadowed.org.jline/native-image.properties
Apply jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/jline3.jar!/META-INF/native-image/org.graalvm.shadowed.org.jline/resource-config.json
Apply jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/launcher-common.jar!/META-INF/native-image/org.graalvm.launcher/native-image.properties
Apply jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/launcher-common.jar!/META-INF/native-image/org.graalvm.launcher/jni-config.json
Apply jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/polyglot/native-image.properties
Apply jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/thirdparty/native-image.properties
Executing [
HOME=/home/sgehwolf \
LANG=en_US.UTF-8 \
PATH=/home/sgehwolf/.local/bin:/home/sgehwolf/bin:/home/sgehwolf/Documents/eclipse/eclipse-2022/eclipse:/home/sgehwolf/.local/bin:/home/sgehwolf/bin:/home/sgehwolf/Documents/eclipse/eclipse-2022/eclipse:/usr/lib64/qt-3.3/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin \
PWD=/disk/graal/upstream-sources/graal \
USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM=true \
/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/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=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=jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.amd64=jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.site=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=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=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=jdk.graal.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.meta=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=jdk.graal.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.runtime=jdk.graal.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.pointsto \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.services=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=org.graalvm.nativeimage.builder \
--add-exports=jdk.jfr/jdk.jfr.internal=org.graalvm.nativeimage.builder \
--add-exports=jdk.management/com.sun.management.internal=org.graalvm.nativeimage.builder \
-XX:-UseJVMCICompiler \
-Xss10m \
-XX:MaxRAMPercentage=31.75036027440138 \
-XX:GCTimeRatio=9 \
-XX:+ExitOnOutOfMemoryError \
-Djava.awt.headless=true \
'-Dorg.graalvm.vendor=GraalVM Community' \
-Dorg.graalvm.vendorurl=https://www.graalvm.org/ \
'-Dorg.graalvm.vendorversion=GraalVM CE 21.0.1-dev+12.1' \
-Dorg.graalvm.version=dev \
-Dcom.oracle.graalvm.isaot=true \
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \
-Xshare:off \
-Dtruffle.TruffleRuntime=com.oracle.svm.truffle.api.SubstrateTruffleRuntime \
-Dgraalvm.ForcePolyglotInvalid=false \
--add-exports \
org.graalvm.nativeimage/org.graalvm.nativeimage.impl=ALL-UNNAMED \
--add-exports \
java.base/jdk.internal.module=org.graalvm.truffle.runtime.svm \
--add-exports \
java.base/jdk.internal.misc=org.graalvm.truffle.runtime.svm \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.meta=org.graalvm.truffle.runtime.svm \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.code=org.graalvm.truffle.runtime.svm \
--add-exports \
org.graalvm.truffle.runtime/com.oracle.truffle.runtime=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle.compiler/com.oracle.truffle.compiler=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.debug=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.debug.impl=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.dsl=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.exception=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.frame=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.impl=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.impl.asm=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.impl.asm.commons=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.impl.asm.signature=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.impl.asm.tree=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.instrumentation=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.interop=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.io=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.library=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.memory=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.nodes=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.object=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.profiles=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.source=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.staticobject=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.strings=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.api.utilities=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.host=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.object=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.object.basic=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/com.oracle.truffle.polyglot=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings.ascii=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings.constants=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings.exception=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings.specific=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings.transcode=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings.transcode.specific=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings.unicode=ALL-UNNAMED \
--add-exports \
org.graalvm.truffle/org.graalvm.shadowed.org.jcodings.util=ALL-UNNAMED \
-Djdk.reflect.useOldSerializableConstructor=true \
-Djdk.internal.lambda.disableEagerInitialization=true \
-Djdk.internal.lambda.eagerlyInitialize=false \
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \
-Dorg.graalvm.version=24.0.0-dev \
-Dorg.graalvm.launcher.relative.home=lib/polyglot/bin/polyglot \
-Dorg.graalvm.launcher.classpath=lib/graalvm/jline3.jar:lib/graalvm/launcher-common.jar \
--add-modules=ALL-DEFAULT \
--module-path \
/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/native-image-base.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/javacpp-platform-specific-shadowed.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/llvm-wrapper-shadowed.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/pointsto.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/javacpp-shadowed.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/objectfile.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/llvm-platform-specific-shadowed.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/svm-llvm.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/builder/svm.jar \
--module \
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner \
-keepalive \
/proc/107905/comm \
-imagecp \
/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/tools/pbi/polybench-instruments.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/jline3.jar:/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/launcher-common.jar \
-imagemp \
/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/library-support.jar \
-H:CLibraryPath=/disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/clibraries/linux-amd64 \
-H:Path@driver=/disk/graal/upstream-sources/graal \
-H:Features@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=com.oracle.svm.truffle.TruffleFeature \
-H:Features@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=com.oracle.svm.truffle.TruffleBaseFeature \
-H:Features@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=com.oracle.svm.truffle.TruffleJFRFeature \
-H:Features@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=org.graalvm.home.HomeFinderFeature \
-H:ClassInitialization@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=com.oracle.truffle:build_time \
-H:ClassInitialization@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=org.graalvm.shadowed.org.jcodings:build_time \
-H:ClassInitialization@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=org.graalvm.jniutils:build_time \
-H:ClassInitialization@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=org.graalvm.nativebridge:build_time \
-H:ClassInitialization@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=org.graalvm.shadowed.org.json:build_time \
-H:ClassInitialization@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=org.graalvm.shadowed.org.jline:build_time,org.graalvm.shadowed.org.fusesource.jansi:build_time \
-H:ClassInitialization@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=sun.rmi:run_time \
-H:ClassInitialization@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user+api=java.rmi:run_time \
-H:MaxRuntimeCompileMethods@--macro:truffle@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/truffle/@user=2500 \
-H:ClassInitialization@--tool:pbi@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/tools/pbi/@user+api=org.graalvm.polybench.instruments:build_time \
-H:ClassInitialization@--tool:pbi@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/tools/pbi/@user+api=java.beans:run_time,com.sun.jmx:run_time,org.graalvm.visualvm.lib.jfluid.heap:run_time \
'-H:ClassInitialization@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/jline3.jar!/META-INF/native-image/org.graalvm.shadowed.org.jline/native-image.properties+api=org.graalvm.shadowed.org.jline:build_time' \
'-H:ClassInitialization@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/jline3.jar!/META-INF/native-image/org.graalvm.shadowed.org.jline/native-image.properties+api=org.graalvm.shadowed.org.jline.utils.AttributedCharSequence:run_time,org.graalvm.shadowed.org.jline.utils.OSUtils:run_time' \
'-H:ResourceConfigurationResources@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/jline3.jar!/META-INF/native-image/org.graalvm.shadowed.org.jline/resource-config.json+api=META-INF/native-image/org.graalvm.shadowed.org.jline/resource-config.json' \
'-H:AddExports@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/launcher-common.jar!/META-INF/native-image/org.graalvm.launcher/native-image.properties+api=java.base/jdk.internal.module=ALL-UNNAMED' \
'-H:Features@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/launcher-common.jar!/META-INF/native-image/org.graalvm.launcher/native-image.properties+api=org.graalvm.launcher.JLine3FeatureModuleAccessFeature' \
'-H:ClassInitialization@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/launcher-common.jar!/META-INF/native-image/org.graalvm.launcher/native-image.properties+api=org.graalvm.launcher:build_time,org.graalvm.shadowed.org.jline:build_time' \
'-H:JNIConfigurationResources@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/graalvm/launcher-common.jar!/META-INF/native-image/org.graalvm.launcher/jni-config.json+api=META-INF/native-image/org.graalvm.launcher/jni-config.json' \
-H:Name=polyglot \
-H:Class=org.graalvm.launcher.PolyglotLauncher \
-H:FallbackThreshold@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user+api=0 \
-H:MicroArchitecture@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user+api=compatibility \
-H:+UnlockExperimentalVMOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:+AssertInitializationSpecifiedForAllClasses@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:+EnforceMaxRuntimeCompileMethods@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:-UnlockExperimentalVMOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:GenerateDebugInfo@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user+api=2 \
-H:LinkAtBuildTime@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user+api= \
-H:Features@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user+api=org.graalvm.home.HomeFinderFeature \
-H:+InstallExitHandlers@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user+api \
-H:EnableMonitoringFeatures@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user+api=jvmstat,heapdump,jfr \
-H:+UnlockExperimentalVMOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:+DumpRuntimeCompilationOnSignal@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:+ReportExceptionStackTraces@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:-UnlockExperimentalVMOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:+UnlockExperimentalVMOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:-ParseRuntimeOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:-UnlockExperimentalVMOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:Features@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user+api=org.graalvm.launcher.PolyglotLauncherFeature \
-H:+UnlockExperimentalVMOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:-ParseRuntimeOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:-UnlockExperimentalVMOptions@--macro:polyglot-launcher@file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/macros/polyglot-launcher/@user \
-H:FallbackThreshold@driver=0 \
-H:ImageBuildID@driver=da4e636f-2b0a-375c-1d61-4c3845862f69 \
'-H:Features@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/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' \
'-H:Features@jar:file:///disk/graal/upstream-sources/graal/sdk/mxbuild/linux-amd64/GRAALVM_CB288CE7FF_JAVA21_STAGE1/graalvm-cb288ce7ff-java21-24.0.0-dev/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/thirdparty/native-image.properties+api=com.oracle.svm.thirdparty.gson.GsonFeature' \
-H:Color@driver=always \
-H:+BuildOutputProgress@driver \
-H:+BuildOutputLinks@driver
]
WARNING: Unknown module: org.graalvm.truffle.runtime.svm specified to --add-exports
WARNING: Unknown module: org.graalvm.truffle.runtime.svm specified to --add-exports
WARNING: Unknown module: org.graalvm.truffle.runtime.svm specified to --add-exports
WARNING: Unknown module: org.graalvm.truffle.runtime.svm specified to --add-exports
========================================================================================================================
GraalVM Native Image: Generating 'polyglot' (executable)...
========================================================================================================================
[1/8] Initializing...
                                                                                    (0.0s @ 0.23GB)
Error: Feature com.oracle.svm.truffle.TruffleFeature class not found on the classpath. Ensure that the name is correct and that the class is on the classpath.
com.oracle.svm.core.util.UserError$UserException: Feature com.oracle.svm.truffle.TruffleFeature class not found on the classpath. Ensure that the name is correct and that the class is on the classpath.
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:73)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.registerFeatures(FeatureHandler.java:183)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:890)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:573)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:540)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:524)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:699)
	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)
------------------------------------------------------------------------------------------------------------------------
                         0.1s (5.3% of total time) in 6 GCs | Peak RSS: 0.50GB | CPU load: 5.43
========================================================================================================================
Finished generating 'polyglot' in 1.5s.
com.oracle.svm.driver.NativeImage$NativeImageError
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.showError(NativeImage.java:2235)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.build(NativeImage.java:1817)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1776)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.main(NativeImage.java:1758)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement. redhat-interest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants