substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Missing CAP cache value for: NativeCodeInfo:PosixDirectives:ConstantInfo:CLOCK_REALTIME (android)

Open Hugolarson opened this issue 2 years ago • 2 comments

Using substrate 0.0.61 with maven plugin 1.0.22 on Ubuntu 22.04 Wsl2

mvn -Pandroid gluonfx:build

[Wed Dec 06 16:28:15 CET 2023][INFO] [SUB] Error: Missing CAP cache value for: NativeCodeInfo:PosixDirectives:ConstantInfo:CLOCK_REALTIME [Wed Dec 06 16:28:15 CET 2023][INFO] [SUB] com.oracle.svm.core.util.UserError$UserException: Missing CAP cache value for: NativeCodeInfo:PosixDirectives:ConstantInfo:CLOCK_REALTIME [Wed Dec 06 16:28:15 CET 2023][INFO] [SUB] at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:73) [Wed Dec 06 16:28:15 CET 2023][INFO] [SUB] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.c.info.InfoTreeVisitor.processChildren(InfoTreeVisitor.java:78)

Hugolarson avatar Dec 06 '23 15:12 Hugolarson

Which GraalVM build are you using? For mobile, you should only use Gluon's GraalVM build 22.1.0.1-Final from https://github.com/gluonhq/graal/releases/latest

jperedadnr avatar Dec 06 '23 20:12 jperedadnr

graalvm-community-openjdk-21.0.1+12.1

I thought the latest fix on Substrate fixed this issue. It's sad that for mobile we are stuck with old Jre and JavaFX

Hugolarson avatar Dec 07 '23 09:12 Hugolarson