oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.35k stars 1.63k forks source link

Getting Error: Missing CAP cache value for: NativeCodeInfo:RISCV64LibCHelperDirectives:StructInfo:CPUFeatures #9458

Open alina-yur opened 2 months ago

alina-yur commented 2 months ago

Discussed in https://github.com/oracle/graal/discussions/9455

Originally posted by **saradhipb** August 6, 2024 I am very new to GraalVM tool, While run simple HelloWorld.java getting this error. Am using java 17.0.11 2024-04-16 LTS Java(TM) SE Runtime Environment Oracle GraalVM 17.0.11+7.1 (build 17.0.11+7-LTS-jvmci-23.0-b34) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 17.0.11+7.1 (build 17.0.11+7-LTS-jvmci-23.0-b34, mixed mode, sharing) GraalVM Native Image: Generating 'helloworld' (executable)... ======================================================================================================================== For detailed information and explanations on the build output, visit: https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md ------------------------------------------------------------------------------------------------------------------------ [1/8] Initializing... (0.0s @ 0.09GB) Error: Missing CAP cache value for: NativeCodeInfo:RISCV64LibCHelperDirectives:StructInfo:CPUFeatures Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception ------------------------------------------------------------------------------------------------------------------------ 0.2s (4.8% of total time) in 10 GCs | Peak RSS: 0.46GB | CPU load: 2.24 ======================================================================================================================== Finished generating 'helloworld' in 4.4s. How to get out from this error?
alina-yur commented 2 months ago

hi @saradhipb, can you please provide more info, such as information about your build environment and a reproducer? thank you!

alina-yur commented 2 months ago

Additional info:

I am using VSCode Community Edition 2022.
Am using java 17.0.11 2024-04-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 17.0.11+7.1 (build 17.0.11+7-LTS-jvmci-23.0-b34)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 17.0.11+7.1 (build 17.0.11+7-LTS-jvmci-23.0-b34,
Windows 10 Enterprise
Version 22H2
OS Build 1905.4651
Zeavee commented 2 months ago

Hi, I'm sorry, but I cannot reproduce the issue.

I suppose you downloaded the JDK from https://www.oracle.com/java/technologies/javase/graalvm-jdk17-archive-downloads.html ?

If you did, can I please know what commands did you use?