Closed geoaxis closed 3 years ago
The GLIBC_XXX issue comes from the fact that you are compiling and linking the native image from a host (i.e. Ubuntu 21) with a newer compiler version (2.32) than the one found on your Raspberry Pi (2.28). There is no easy workaround for this. One possible fix is installing Ubuntu on your Pi, and another, building your app from an older version of Ubuntu (this could be done from GitHub actions for instance)
Thank you. I managed to compile correct binary by using chroot on ubuntu (and using ubuntu 18.04 as chroot, based on instructions at https://help.ubuntu.com/community/BasicChroot). After that the sample builds correctly inside the chroot locally and runs on pi like a breeze. Will close the bug.
I Managed to compile jar file and native image for HelloPi after adapting the code . The jar file runs fine , but HelloPi native throws the following
./HelloPi: /lib/aarch64-linux-gnu/libc.so.6: version 'GLIBC_2.32' not found (required by ./HelloPi)
Here is the example (running on java https://photos.app.goo.gl/1vVxxEBfE3ZefmsW6)
More diagnostic data (ldd, ldd version, distribution and unme)