-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Target aarch64-linux-android
link failure: unwind.
#1222
Comments
Try building it as debug version, this might work (if you just need it now). |
I checked the latest HEAD of cross 99b8069 and the linker is happy. I didn't find something suspicious in the commit log. Pinned my cross installs and I'm fine for now. |
What version of rust are you using? Does it work if you use rust before 1.68? say 1.67? 1.68 updated minimal NDK, which has only been fixed on main, not on 0.2.5, see #1023 |
Would it be possible to get a 0.2.6 release that includes the fix? We don't compile cross in our CI, so we're stuck on the latest pre-compiled release. |
Cross is currently broken on Android, see cross-rs/cross#1222 The bug is fixed on master, but a new release of cross hasn't come out yet. Signed-off-by: Joe Richey <joerichey@google.com>
1.68
No. As expected. :-)
That makes sense. thanks! |
It would not be super easy to include it in 0.2.6, it would have to be made out-of-tree. I'm considering releasing 0.3.0 soon, there's not a lot left and some of the stuff can be added in patch releases. I'll work on it this weekend |
I have a similar problem. Two weeks ago i686-linux-android could be built, but now it can not.
I'm not sure GitHub changes the GitHub Actions environment or cross is affected by some external environment. edit: Using Rust 1.67.0 solved my problem: https://github.com/nwtgck/piping-server-rust/actions/runs/4512963306/jobs/7947129405 |
@nwtgck The issue is due to https://blog.rust-lang.org/2023/01/09/android-ndk-update-r25.html being included in 1.68, the fix is for us to bump the NDK, which was done in #1023 as previously mentioned |
I'm looking forward to the next release. edit: Until the release, I added |
Support for Rust 1.68.2 is important for security reasons. |
The security issue presented in 1.68.2 can be prevented for other versions of rust by having the correct key trusted. The bundled key is only used when a key for |
Is a new version coming soon?
|
Use `cross` for building target `aarch64-linux-android`. In the `ci` workflow the matrix branch of `os` `ubuntu-latest` is used because the matrix organization is host os centric instead of target. Releases are build with `cross` for target `aarch64-linux-android`. Install `cross` if needed for a run. At the time of writing the latest release of `cross` can't build binaries for target `aarch64-linux-android` and it's common sense that the latest git tag or `master` shall be used [1]. [1] cross-rs/cross#1222
Use `cross` for building target `aarch64-linux-android`. In the `ci` workflow the matrix branch of `os` `ubuntu-latest` is used because the matrix organization is host os centric instead of target. Releases are build with `cross` for target `aarch64-linux-android`. Install `cross` if needed for a run. At the time of writing the latest release of `cross` can't build binaries for target `aarch64-linux-android` and it's common sense that the latest git tag or `master` shall be used [1]. [1] cross-rs/cross#1222
* Support build for target_os android The target_os `android` is quite similar to `linux` but must be mentioned in the guards explicitly. Tested for target `aarch64-linux-android`. * Add target aarch64-linux-android to ci Use `cross` for building target `aarch64-linux-android`. In the `ci` workflow the matrix branch of `os` `ubuntu-latest` is used because the matrix organization is host os centric instead of target. Releases are build with `cross` for target `aarch64-linux-android`. Install `cross` if needed for a run. At the time of writing the latest release of `cross` can't build binaries for target `aarch64-linux-android` and it's common sense that the latest git tag or `master` shall be used [1]. [1] cross-rs/cross#1222 * Add android related readme section
error
Works on ubuntu2404 |
Has someone found a fix for the original problem? |
@Manuel030 have you tried using cross from the main branch or using rust 1.67? |
I tried both. This results in cryptic error messages:
|
please open a new issue, that seems unrelated to this |
Checklist
Describe your issue
Building an empty bin crate for target
aarch64-linux-android
fails to link. The linker fails to findlibunwind
.What target(s) are you cross-compiling for?
aarch64-linux-android
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5
Example
Additional information / notes
Same build is fine for e.g
aarch64-unknown-linux-gnu
.The text was updated successfully, but these errors were encountered: