graalvm-mobile

Jon Eskin 2023-05-07T10:38:52.489939Z

hello! i'm trying to build grease, does anyone know where "bb.h" might be found? https://github.com/phronmophobic/grease/blob/325a049bc1a1c7a18be8520be6f14122b2b6cf00/xcode/TestSkia/TestSkia/MembraneView.h#L9

borkdude 2023-05-07T10:40:19.034379Z

I hope @smith.adriane will be able to answer this question :)

phronmophobic 2023-05-07T15:36:54.611239Z

Hi @eskinjp, "bb.h" is created by graalvm's native-image during the ./scripts/compile-shared step. Are you following the steps from https://github.com/phronmophobic/grease#usage ?

phronmophobic 2023-05-07T15:37:52.660619Z

I just reran the gitbhub CI action to make sure things are still working. You can see what a typical output looks like in the log output, https://github.com/phronmophobic/grease/actions/runs/4907952002/jobs/8763390832.

Jon Eskin 2023-05-07T18:14:29.178549Z

@smith.adriane ahh thank you for pointing me in the right direction, i did follow those steps but i wasn't paying attention and didn't notice that command errored out with Error: Missing CAP cache value for: NativeCodeInfo:AArch64LibCHelperDirectives:StructInfo:CPUFeatures:StructFieldInfo:fDMB_ATOMICS

Jon Eskin 2023-05-07T18:16:08.944809Z

i'll try to figure out what's going on with that

phronmophobic 2023-05-07T18:16:26.011279Z

My best guess is that there is some version dependency

phronmophobic 2023-05-07T18:16:39.071869Z

You can see the versions I use here, https://github.com/phronmophobic/grease/blob/main/.github/workflows/mobiletest.yml

phronmophobic 2023-05-07T18:17:00.848009Z

are you on an M1 mac?

phronmophobic 2023-05-07T18:17:30.506489Z

I would try with graalvm-ce-java17-22.0.0.2 to see if that helps

Jon Eskin 2023-05-07T18:22:52.756979Z

yeah i'm on M1 mac, i've been copying commands out of that file and it got past where it failed for me previously at least!

Jon Eskin 2023-05-07T18:23:40.722559Z

i was running some graalvm homebrew cask i found before, looks like it was version graalvm-ce-java17-22.3.1

phronmophobic 2023-05-07T18:25:41.758799Z

ok, if you can confirm that having a different version caused it to fail, then I can update the docs to mention. At some point, I can look into either updating to the latest version or making the process more tolerant of different versions.

Jon Eskin 2023-05-07T18:28:39.331189Z

yup it built successfully, thanks for the help!

🎉 2