Skip to content
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

Android library cannot be built using the ubuntu-22.04 image #346

Closed
thunderbiscuit opened this issue Apr 19, 2023 · 1 comment
Closed
Assignees
Labels
CI Continuous integration pipeline related

Comments

@thunderbiscuit
Copy link
Member

See this run for complete logs.

The error is related to the NDK version we are using (see issues #243 and #242 for why we need an older version of the NDK at the moment).

Logs:

   Compiling bdk v0.28.0
error: linking with `aarch64-linux-android21-clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.18-10/x64/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/lib/android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/bin" VSLANG="1033" "aarch64-linux-android21-clang" "-Wl,--version-script=/tmp/rustcvAWt3N/list" "/tmp/rustcvAWt3N/symbols.o" 

...

 "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-linux-android/lib/libcompiler_builtins-3681d9e380a25a20.rlib" "-Wl,-Bdynamic" "-ldl" "-llog" "-lunwind" "-ldl" "-lm" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-linux-android/lib" "-o" "/home/runner/work/bdk-ffi/bdk-ffi/target/aarch64-linux-android/release-smaller/deps/libbdkffi.so" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro,-znow" "-Wl,--strip-all" "-nodefaultlibs"
  = note: /usr/local/lib/android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lunwind
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
@thunderbiscuit thunderbiscuit added the CI Continuous integration pipeline related label Apr 19, 2023
@thunderbiscuit
Copy link
Member Author

This was due to the upgrade to Rust 1.68 in the image, and so was causing the problem on ubuntu-20.04 as well.

See #348 and #345 for more info.

Likely related to this issue: cross-rs/cross#1222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration pipeline related
Projects
None yet
Development

No branches or pull requests

2 participants