bincode icon indicating copy to clipboard operation
bincode copied to clipboard

Fix CI for `x86_64-linux-android` and `i686-linux-android`

Open VictorKoenders opened this issue 1 year ago • 2 comments

The CI breaks on android with the error cannot find -lunwind.

VictorKoenders avatar Mar 30 '23 09:03 VictorKoenders

The Android NDK used to include libgcc for unwind support (which is required by Rust among others). From NDK r23, libgcc is removed, replaced by LLVM's libunwind (https://github.com/android/ndk/issues/1230).

Rust 1.68.0 (released March 9 2023, shortly before this issue was opened) migrated to requiring NDK r25+ (the LTS at the time) for this reason.

So the cannot find -lunwind error should be avoidable as long as you're building with Rust 1.68+ and a recent NDK. The ubuntu-22.04 GitHub runner (used for ubuntu-latest) defaults to NDK r25, so it should work fine.

str4d avatar May 09 '24 23:05 str4d

We're using cargo cross for this, it might be worth investigating running containers directly ourselves

VictorKoenders avatar May 28 '24 08:05 VictorKoenders