Open kaja-mohideen opened 1 year ago
Looks like an incompatible JVMCI implementation being mixed with Graal. Please try using a labsjdk binary instead.
Thanks @dougxc for your suggestion. I have tried using a nightly build of Java taken from the page here --> https://adoptium.net/temurin/nightly/?version=11 and it's visible in the java -version output as well.
Do you mean something different when you say "labsjdk"? If so, kindly help by providing link from where I can obtain the binary.
Thanks again.
Slack thread link --> https://graalvm.slack.com/archives/CNBFR78F9/p1684137184970519 - There, I got input from @chumer about trying it on latest java.
If I understand GraalJS versioning properly, then GraalJS 22.3.2 should be compatible with https://github.com/graalvm/labs-openjdk-11/releases/tag/jvmci-22.3-b04. @chumer @woess can you pease confirm that.
Sounds right to me.
Describe the issue Trying to use the Graal JS (23.3.2) with latest stock OpenJDK with Apache Karaf throws "jdk.vm.ci.common.JVMCIError: Unknown JVM_CONSTANT tag 17"
Steps to reproduce the issue
openjdk version "11.0.20-beta" 2023-07-18 OpenJDK Runtime Environment Temurin-11.0.20+2-202305161807 (build 11.0.20-beta+2-202305161807) OpenJDK 64-Bit Server VM Temurin-11.0.20+2-202305161807 (build 11.0.20-beta+2-202305161807, mixed mode)
chromeinspector-22.3.2.jar compiler-22.3.2.jar compiler-management-22.3.2.jar graal-sdk-22.3.2.jar icu4j-73.1.jar js-22.3.2.jar js-scriptengine-22.3.2.jar profiler-22.3.2.jar regex-22.3.2.jar truffle-api-22.3.2.jar
compilerJarName="compiler-22.3.2.jar" compilerMgmtJarName="compiler-management-22.3.2.jar" export JAVA_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler --module-path=${KARAF_HOME}/lib/graal --upgrade-module-path=${KARAF_HOME}/lib/graal/${compilerJarName}:${KARAF_HOME}/lib/graal/${compilerMgmtJarName}"
${KARAF_HOME}/bin/karaf
Describe GraalVM and your environment:
More details Add any other information about the problem here. Especially important are stack traces or log output. Feel free to link to gists or to screenshots if necessary.