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

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

Open
alina-yur opened this issue Aug 6, 2024 Discussed in #9455 · 3 comments
Assignees

Comments

@alina-yur
Copy link
Member

Discussed in #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
Copy link
Member Author

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

@alina-yur
Copy link
Member Author

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
Copy link
Contributor

Zeavee commented Aug 16, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants