Created
March 6, 2021 15:32
-
-
Save johan1a/d7c5c4236fc9a2a54730e65d0a002d04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lein native-image | |
Compiling ClojureScript... | |
Compiling ClojureScript... | |
Executing [ | |
/usr/lib/jvm/java-11-graalvm/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.IgnoreGraalVersionCheck=true \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.aarch64=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.amd64=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.site=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.stack=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.common=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.sparc=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.meta=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.runtime=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.services=ALL-UNNAMED \ | |
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.sparc=ALL-UNNAMED \ | |
--add-exports=org.graalvm.truffle/com.oracle.truffle.api=ALL-UNNAMED \ | |
--add-opens=jdk.internal.vm.compiler/org.graalvm.compiler.debug=ALL-UNNAMED \ | |
--add-opens=jdk.internal.vm.compiler/org.graalvm.compiler.nodes=ALL-UNNAMED \ | |
--add-opens=jdk.unsupported/sun.reflect=ALL-UNNAMED \ | |
--add-opens=java.base/jdk.internal.module=ALL-UNNAMED \ | |
--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED \ | |
--add-opens=java.base/jdk.internal.reflect=ALL-UNNAMED \ | |
--add-opens=java.base/java.io=ALL-UNNAMED \ | |
--add-opens=java.base/java.lang=ALL-UNNAMED \ | |
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \ | |
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED \ | |
--add-opens=java.base/java.lang.ref=ALL-UNNAMED \ | |
--add-opens=java.base/java.net=ALL-UNNAMED \ | |
--add-opens=java.base/java.nio=ALL-UNNAMED \ | |
--add-opens=java.base/java.nio.file=ALL-UNNAMED \ | |
--add-opens=java.base/java.security=ALL-UNNAMED \ | |
--add-opens=java.base/javax.crypto=ALL-UNNAMED \ | |
--add-opens=java.base/java.util=ALL-UNNAMED \ | |
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED \ | |
--add-opens=java.base/sun.security.x509=ALL-UNNAMED \ | |
--add-opens=java.base/jdk.internal.logger=ALL-UNNAMED \ | |
--add-opens=org.graalvm.sdk/org.graalvm.nativeimage.impl=ALL-UNNAMED \ | |
--add-opens=org.graalvm.sdk/org.graalvm.polyglot=ALL-UNNAMED \ | |
--add-opens=org.graalvm.truffle/com.oracle.truffle.polyglot=ALL-UNNAMED \ | |
--add-opens=org.graalvm.truffle/com.oracle.truffle.api.impl=ALL-UNNAMED \ | |
-XX:+UseJVMCINativeLibrary \ | |
-Xss10m \ | |
-Xms1g \ | |
-Xmx14g \ | |
-Duser.country=US \ | |
-Duser.language=en \ | |
-Djava.awt.headless=true \ | |
-Dorg.graalvm.version=21.0.0.2 \ | |
-Dorg.graalvm.config= \ | |
-Dcom.oracle.graalvm.isaot=true \ | |
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \ | |
-Dawt.toolkit=sun.awt.X11.XToolkit \ | |
-Djava.awt.graphicsenv=sun.awt.X11GraphicsEnvironment \ | |
-Djava.awt.printerjob=sun.print.PSPrinterJob \ | |
-Xshare:off \ | |
--module-path \ | |
/usr/lib/jvm/java-11-graalvm/lib/truffle/truffle-api.jar \ | |
-Djdk.internal.lambda.disableEagerInitialization=true \ | |
-Djdk.internal.lambda.eagerlyInitialize=false \ | |
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \ | |
-Dclojure.spec.skip-macros=true \ | |
-Dclojure.compiler.direct-linking=true \ | |
-Xmx3g \ | |
-javaagent:/usr/lib/jvm/java-11-graalvm/lib/svm/builder/svm.jar \ | |
-cp \ | |
/usr/lib/jvm/java-11-graalvm/lib/svm/builder/javacpp-shadowed.jar:/usr/lib/jvm/java-11-graalvm/lib/svm/builder/llvm-platform-specific-shadowed.jar:/usr/lib/jvm/java-11-graalvm/lib/svm/builder/pointsto.jar:/usr/lib/jvm/java-11-graalvm/lib/svm/builder/svm-llvm.jar:/usr/lib/jvm/java-11-graalvm/lib/svm/builder/llvm-wrapper-shadowed.jar:/usr/lib/jvm/java-11-graalvm/lib/svm/builder/svm.jar:/usr/lib/jvm/java-11-graalvm/lib/svm/builder/objectfile.jar \ | |
'com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus' \ | |
-watchpid \ | |
81494 \ | |
-imagecp \ | |
/usr/lib/jvm/java-11-graalvm/lib/svm/library-support.jar:/home/johan/dev/cljfmt/cljfmt/test:/home/johan/dev/cljfmt/cljfmt/src:/home/johan/dev/cljfmt/cljfmt/resources:/home/johan/dev/cljfmt/cljfmt/target/classes:/home/johan/.m2/repository/com/google/protobuf/protobuf-java/3.11.1/protobuf-java-3.11.1.jar:/home/johan/.m2/repository/org/checkerframework/checker-qual/2.0.0/checker-qual-2.0.0.jar:/home/johan/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar:/home/johan/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar:/home/johan/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.8.7/jackson-core-2.8.7.jar:/home/johan/.m2/repository/org/clojure/clojurescript/1.10.773/clojurescript-1.10.773.jar:/home/johan/.m2/repository/com/google/code/gson/gson/2.7/gson-2.7.jar:/home/johan/.m2/repository/org/clojure/tools.reader/1.3.3/tools.reader-1.3.3.jar:/home/johan/.m2/repository/org/clojure/tools.nrepl/0.2.12/tools.nrepl-0.2.12.jar:/home/johan/.m2/repository/org/clojure/google-closure-library/0.0-20191016-6ae1f72f/google-closure-library-0.0-20191016-6ae1f72f.jar:/home/johan/.m2/repository/clojure-complete/clojure-complete/0.2.4/clojure-complete-0.2.4.jar:/home/johan/.m2/repository/com/google/elemental2/elemental2-core/1.0.0-RC1/elemental2-core-1.0.0-RC1.jar:/home/johan/.m2/repository/com/googlecode/java-diff-utils/diffutils/1.3.0/diffutils-1.3.0.jar:/home/johan/.m2/repository/com/cognitect/transit-clj/0.8.309/transit-clj-0.8.309.jar:/home/johan/.m2/repository/com/google/guava/guava/25.1-jre/guava-25.1-jre.jar:/home/johan/.m2/repository/com/cognitect/transit-java/0.8.332/transit-java-0.8.332.jar:/home/johan/.m2/repository/rewrite-cljs/rewrite-cljs/0.4.5/rewrite-cljs-0.4.5.jar:/home/johan/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar:/home/johan/.m2/repository/args4j/args4j/2.0.26/args4j-2.0.26.jar:/home/johan/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar:/home/johan/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar:/home/johan/.m2/repository/com/google/jsinterop/base/1.0.0/base-1.0.0.jar:/home/johan/.m2/repository/rewrite-clj/rewrite-clj/0.6.1/rewrite-clj-0.6.1.jar:/home/johan/.m2/repository/com/google/jsinterop/jsinterop-annotations/1.0.2/jsinterop-annotations-1.0.2.jar:/home/johan/.m2/repository/com/google/re2j/re2j/1.3/re2j-1.3.jar:/home/johan/.m2/repository/com/google/errorprone/error_prone_annotations/2.3.1/error_prone_annotations-2.3.1.jar:/home/johan/.m2/repository/com/google/javascript/closure-compiler-externs/v20200315/closure-compiler-externs-v20200315.jar:/home/johan/.m2/repository/org/clojure/google-closure-library-third-party/0.0-20191016-6ae1f72f/google-closure-library-third-party-0.0-20191016-6ae1f72f.jar:/home/johan/.m2/repository/org/clojure/tools.cli/1.0.194/tools.cli-1.0.194.jar:/home/johan/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar:/home/johan/.m2/repository/org/msgpack/msgpack/0.6.12/msgpack-0.6.12.jar:/home/johan/.m2/repository/org/clojure/data.json/0.2.6/data.json-0.2.6.jar:/home/johan/.m2/repository/com/google/javascript/closure-compiler-unshaded/v20200315/closure-compiler-unshaded-v20200315.jar:/home/johan/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar \ | |
-H:Path=/home/johan/dev/cljfmt/cljfmt \ | |
-H:+ReportExceptionStackTraces \ | |
-H:ClassInitialization=:build_time \ | |
-H:Log=registerResource: \ | |
-H:FallbackThreshold=0 \ | |
-H:Name=/home/johan/dev/cljfmt/cljfmt/target/cljfmt \ | |
-H:CLibraryPath=/usr/lib/jvm/java-11-graalvm/lib/svm/clibraries/linux-amd64 \ | |
-H:ReflectionConfigurationFiles=/home/johan/dev/cljfmt/cljfmt/reflection.json \ | |
-H:Class=cljfmt.main \ | |
] | |
[/home/johan/dev/cljfmt/cljfmt/target/cljfmt:81517] classlist: 1,896.33 ms, 1.18 GB | |
[/home/johan/dev/cljfmt/cljfmt/target/cljfmt:81517] (cap): 369.22 ms, 1.18 GB | |
[/home/johan/dev/cljfmt/cljfmt/target/cljfmt:81517] setup: 1,398.43 ms, 1.18 GB | |
[Use -Dgraal.LogFile=<path> to redirect Graal log output to a file.] | |
[thread:42] scope: ForkJoinPool-2-worker-13 | |
[thread:42] scope: ForkJoinPool-2-worker-13.ClosedWorldAnalysis | |
Context: StructuredGraph:19285{AnalysisMethod<clojure.lang.DynamicClassLoader.defineClass -> HotSpotMethod<DynamicClassLoader.defineClass(String, byte[], Object)>>} | |
Context: AnalysisMethod<clojure.lang.DynamicClassLoader.defineClass -> HotSpotMethod<DynamicClassLoader.defineClass(String, byte[], Object)>> | |
[thread:42] scope: ForkJoinPool-2-worker-13.ClosedWorldAnalysis.AnalysisGraphBuilderPhase | |
Exception raised in scope ForkJoinPool-2-worker-13.ClosedWorldAnalysis.AnalysisGraphBuilderPhase: org.graalvm.compiler.java.BytecodeParser$BytecodeParserError: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.ClassLoader.defineClass(String, byte[], int, int) is reachable | |
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time. | |
at parsing clojure.lang.DynamicClassLoader.defineClass(DynamicClassLoader.java:46) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.throwParserError(BytecodeParser.java:2586) | |
at com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.throwParserError(SharedGraphBuilderPhase.java:106) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3441) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3243) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:1109) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:1003) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.GraphBuilderPhase$Instance.run(GraphBuilderPhase.java:84) | |
at com.oracle.svm.hosted.phases.SharedGraphBuilderPhase.run(SharedGraphBuilderPhase.java:76) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.run(Phase.java:49) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:212) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.apply(Phase.java:42) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.apply(Phase.java:38) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:223) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:357) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlow.doParse(MethodTypeFlow.java:313) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureParsed(MethodTypeFlow.java:302) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlow.addContext(MethodTypeFlow.java:103) | |
at com.oracle.graal.pointsto.DefaultAnalysisPolicy$DefaultVirtualInvokeTypeFlow.onObservedUpdate(DefaultAnalysisPolicy.java:227) | |
at com.oracle.graal.pointsto.flow.TypeFlow.notifyObservers(TypeFlow.java:470) | |
at com.oracle.graal.pointsto.flow.TypeFlow.update(TypeFlow.java:542) | |
at com.oracle.graal.pointsto.BigBang$2.run(BigBang.java:547) | |
at com.oracle.graal.pointsto.util.CompletionExecutor.lambda$execute$0(CompletionExecutor.java:173) | |
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426) | |
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) | |
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) | |
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) | |
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) | |
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) | |
Caused by: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.ClassLoader.defineClass(String, byte[], int, int) is reachable | |
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time. | |
at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.lookup(AnnotationSubstitutionProcessor.java:187) | |
at com.oracle.graal.pointsto.infrastructure.SubstitutionProcessor$ChainedSubstitutionProcessor.lookup(SubstitutionProcessor.java:128) | |
at com.oracle.graal.pointsto.infrastructure.SubstitutionProcessor$ChainedSubstitutionProcessor.lookup(SubstitutionProcessor.java:128) | |
at com.oracle.graal.pointsto.meta.AnalysisUniverse.lookupAllowUnresolved(AnalysisUniverse.java:409) | |
at com.oracle.graal.pointsto.infrastructure.WrappedConstantPool.lookupMethod(WrappedConstantPool.java:125) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.lookupMethodInPool(BytecodeParser.java:4345) | |
at com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.lookupMethodInPool(SharedGraphBuilderPhase.java:119) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.lookupMethod(BytecodeParser.java:4339) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genInvokeVirtual(BytecodeParser.java:1700) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5404) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3436) | |
... 25 more | |
Context obj com.oracle.svm.hosted.phases.AnalysisGraphBuilderPhase@69323f87 | |
Context obj StructuredGraph:19285{AnalysisMethod<clojure.lang.DynamicClassLoader.defineClass -> HotSpotMethod<DynamicClassLoader.defineClass(String, byte[], Object)>>} | |
Context obj AnalysisMethod<clojure.lang.DynamicClassLoader.defineClass -> HotSpotMethod<DynamicClassLoader.defineClass(String, byte[], Object)>> | |
Context obj com.oracle.svm.hosted.analysis.flow.SVMMethodTypeFlowBuilder@702fc7ae | |
[thread:25] scope: ForkJoinPool-4-worker-3 | |
[thread:25] scope: ForkJoinPool-4-worker-3.registerResource | |
ServiceLoaderFeature: registerResource: META-INF/services/java.nio.file.spi.FileSystemProvider | |
[thread:25] scope: ForkJoinPool-4-worker-3.registerResource | |
Resources have been added by ServiceLoaderFeature. Automatic registration can be disabled with -H:-UseServiceLoaderFeature | |
[/home/johan/dev/cljfmt/cljfmt/target/cljfmt:81517] (clinit): 247.07 ms, 1.66 GB | |
[/home/johan/dev/cljfmt/cljfmt/target/cljfmt:81517] (typeflow): 7,219.76 ms, 1.66 GB | |
[/home/johan/dev/cljfmt/cljfmt/target/cljfmt:81517] (objects): 13,067.46 ms, 1.66 GB | |
[/home/johan/dev/cljfmt/cljfmt/target/cljfmt:81517] (features): 507.17 ms, 1.66 GB | |
[/home/johan/dev/cljfmt/cljfmt/target/cljfmt:81517] analysis: 22,026.09 ms, 1.66 GB | |
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.ClassLoader.defineClass(String, byte[], int, int) is reachable | |
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time. | |
Detailed message: | |
Trace: | |
at parsing clojure.lang.DynamicClassLoader.defineClass(DynamicClassLoader.java:46) | |
Call path from entry point to clojure.lang.DynamicClassLoader.defineClass(String, byte[], Object): | |
at clojure.lang.DynamicClassLoader.defineClass(DynamicClassLoader.java:45) | |
at clojure.core$get_proxy_class.invokeStatic(core_proxy.clj:268) | |
at clojure.core$get_proxy_class.doInvoke(core_proxy.clj:256) | |
at clojure.lang.RestFn.applyTo(RestFn.java:137) | |
at cljfmt.main.main(Unknown Source) | |
at com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:146) | |
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:182) | |
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0) | |
com.oracle.svm.core.util.UserError$UserException: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.ClassLoader.defineClass(String, byte[], int, int) is reachable | |
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time. | |
Detailed message: | |
Trace: | |
at parsing clojure.lang.DynamicClassLoader.defineClass(DynamicClassLoader.java:46) | |
Call path from entry point to clojure.lang.DynamicClassLoader.defineClass(String, byte[], Object): | |
at clojure.lang.DynamicClassLoader.defineClass(DynamicClassLoader.java:45) | |
at clojure.core$get_proxy_class.invokeStatic(core_proxy.clj:268) | |
at clojure.core$get_proxy_class.doInvoke(core_proxy.clj:256) | |
at clojure.lang.RestFn.applyTo(RestFn.java:137) | |
at cljfmt.main.main(Unknown Source) | |
at com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:146) | |
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:182) | |
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0) | |
at com.oracle.svm.core.util.UserError.abort(UserError.java:82) | |
at com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:233) | |
at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:773) | |
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:563) | |
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:476) | |
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407) | |
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) | |
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) | |
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) | |
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) | |
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) | |
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.ClassLoader.defineClass(String, byte[], int, int) is reachable | |
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time. | |
Detailed message: | |
Trace: | |
at parsing clojure.lang.DynamicClassLoader.defineClass(DynamicClassLoader.java:46) | |
Call path from entry point to clojure.lang.DynamicClassLoader.defineClass(String, byte[], Object): | |
at clojure.lang.DynamicClassLoader.defineClass(DynamicClassLoader.java:45) | |
at clojure.core$get_proxy_class.invokeStatic(core_proxy.clj:268) | |
at clojure.core$get_proxy_class.doInvoke(core_proxy.clj:256) | |
at clojure.lang.RestFn.applyTo(RestFn.java:137) | |
at cljfmt.main.main(Unknown Source) | |
at com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:146) | |
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:182) | |
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0) | |
at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:126) | |
at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:770) | |
... 8 more | |
Caused by: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.ClassLoader.defineClass(String, byte[], int, int) is reachable | |
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time. | |
at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.lookup(AnnotationSubstitutionProcessor.java:187) | |
at com.oracle.graal.pointsto.infrastructure.SubstitutionProcessor$ChainedSubstitutionProcessor.lookup(SubstitutionProcessor.java:128) | |
at com.oracle.graal.pointsto.infrastructure.SubstitutionProcessor$ChainedSubstitutionProcessor.lookup(SubstitutionProcessor.java:128) | |
at com.oracle.graal.pointsto.meta.AnalysisUniverse.lookupAllowUnresolved(AnalysisUniverse.java:409) | |
at com.oracle.graal.pointsto.infrastructure.WrappedConstantPool.lookupMethod(WrappedConstantPool.java:125) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.lookupMethodInPool(BytecodeParser.java:4345) | |
at com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.lookupMethodInPool(SharedGraphBuilderPhase.java:119) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.lookupMethod(BytecodeParser.java:4339) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.genInvokeVirtual(BytecodeParser.java:1700) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBytecode(BytecodeParser.java:5404) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(BytecodeParser.java:3436) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.processBlock(BytecodeParser.java:3243) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.build(BytecodeParser.java:1109) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.BytecodeParser.buildRootMethod(BytecodeParser.java:1003) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.java.GraphBuilderPhase$Instance.run(GraphBuilderPhase.java:84) | |
at com.oracle.svm.hosted.phases.SharedGraphBuilderPhase.run(SharedGraphBuilderPhase.java:76) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.run(Phase.java:49) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:212) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.apply(Phase.java:42) | |
at jdk.internal.vm.compiler/org.graalvm.compiler.phases.Phase.apply(Phase.java:38) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:223) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:357) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlow.doParse(MethodTypeFlow.java:313) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureParsed(MethodTypeFlow.java:302) | |
at com.oracle.graal.pointsto.flow.MethodTypeFlow.addContext(MethodTypeFlow.java:103) | |
at com.oracle.graal.pointsto.DefaultAnalysisPolicy$DefaultVirtualInvokeTypeFlow.onObservedUpdate(DefaultAnalysisPolicy.java:227) | |
at com.oracle.graal.pointsto.flow.TypeFlow.notifyObservers(TypeFlow.java:470) | |
at com.oracle.graal.pointsto.flow.TypeFlow.update(TypeFlow.java:542) | |
at com.oracle.graal.pointsto.BigBang$2.run(BigBang.java:547) | |
at com.oracle.graal.pointsto.util.CompletionExecutor.lambda$execute$0(CompletionExecutor.java:173) | |
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426) | |
... 5 more | |
Error: Image build request failed with exit status 1 | |
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 1 | |
at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1676) | |
at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1426) | |
at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1387) | |
at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1374) | |
at com.oracle.svm.driver.NativeImage$JDK9Plus.main(NativeImage.java:1858) | |
Failed to create native image |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment