You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems to be breaking the ability to use graalvm native image for me:
here is an error output:
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.LambdaForm$MH/634445912.invoke_MT(Object, Object)
[bosatsu:3147] analysis: 57,890.61 ms, 2.52 GB
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed.
Detailed message:
Trace:
at parsing scala.collection.immutable.VM.releaseFence(VM.java:25)
Call path from entry point to scala.collection.immutable.VM.releaseFence():
at scala.collection.immutable.VM.releaseFence(VM.java:25)
at scala.collection.immutable.HashSet$HashSetBuilder.result(HashSet.scala:1283)
at scala.collection.immutable.Set$SetBuilderImpl.result(Set.scala:344)
at scala.collection.immutable.Set$SetBuilderImpl.result(Set.scala:329)
at scala.collection.generic.GenericCompanion.apply(GenericCompanion.scala:57)
at fastparse.parsers.Combinators$Repeat.toString(Combinators.scala:496)
at java.lang.String.valueOf(String.java:2994)
at java.nio.charset.IllegalCharsetNameException.<init>(IllegalCharsetNameException.java:55)
at java.nio.charset.Charset.checkName(Charset.java:315)
at com.oracle.svm.core.jdk.Target_java_nio_charset_Charset.lookup(CharsetSubstitutions.java:78)
at java.nio.charset.Charset.isSupported(Charset.java:505)
at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_ARRAY:Ljava_nio_charset_Charset_2_0002eisSupported_00028Ljava_lang_String_2_00029Z(generated:0)
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1
my current work around is to use 2.12.11 which does not have this code and I can build. Obviously using 2.12.11 forever isn't a great long term strategy.
This PR:
scala/scala#8779
seems to be breaking the ability to use graalvm native image for me:
here is an error output:
It seems related to this graal issue: oracle/graal#955
It's a real shame to lose the ability to get native-image in scala.
original comment here:
scala/scala#8779 (comment)
The text was updated successfully, but these errors were encountered: