bbqsrc / cargo-ndk

Compile Rust projects against the Android NDK without hassle
Apache License 2.0
712 stars 64 forks source link

Can't use `cargo-ndk` with `ubuntu-latest` runner #149

Closed jmartinesp closed 1 month ago

jmartinesp commented 1 month ago

When we try using cargo-ndk in Github CI with the ubuntu-latest runner we now get:

failing: /home/runner/.cargo/bin/cargo-ndk: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.39' not found (required by /home/runner/.cargo/bin/cargo-ndk)

This happened after ubuntu-latest changed the version it pointed to from 22.04 to 24.04, which now uses glibc-2.40.

Could this be related to the libc crate version used in the project? I don't know much about how the libc version to use by this crate is selected, to be honest.


Actually, we tried downgrading the GH runner to ubuntu-22.04 and it's failing again for us, so it might not be related to using the latest runner.

jmartinesp commented 1 month ago

It seems like the issue was the opposite, we were in 22.04 and manually upgrading to 24.04 installed glibc v2.39.0 which made the CI work again. I'm still trying to figure out what changed in between, but it's probably not related to this crate.