gluonhq / substrate

Create native Java(FX) apps for desktop, mobile and embedded
GNU General Public License v2.0
390 stars 52 forks source link

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

Open Hugolarson opened 10 months ago

Hugolarson commented 10 months ago

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)

jperedadnr commented 10 months ago

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

Hugolarson commented 10 months ago

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