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

Building for x86_64-linux-android fails with sqlite3-related linker errors #134

Closed
snormore opened this issue Jun 4, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@snormore
Copy link
Contributor

snormore commented Jun 4, 2023

Example: https://github.com/xmtp/libxmtp/actions/runs/5166007186/jobs/9305846305

ld: error: undefined symbol: __extenddftf2
          >>> referenced by sqlite3.c
          >>>               sqlite3.o:(sqlite3_str_vappendf) in archive /target/x86_64-linux-android/release/deps/liblibsqlite3_sys-a59c0c668a489339.rlib
          >>> referenced by sqlite3.c
          >>>               sqlite3.o:(sqlite3_str_vappendf) in archive /target/x86_64-linux-android/release/deps/liblibsqlite3_sys-a59c0c668a489339.rlib
          >>> referenced by sqlite3.c
          >>>               sqlite3.o:(sqlite3_str_vappendf) in archive /target/x86_64-linux-android/release/deps/liblibsqlite3_sys-a59c0c668a489339.rlib
          >>> referenced 6 more times

This seems to happen both in CI and locally.

Related errors reports:

@snormore snormore added the bug Something isn't working label Jun 4, 2023
richardhuaaa pushed a commit that referenced this issue Jun 12, 2023
This PR adds a GH workflow that builds across platforms, specifically the android platforms referenced in the cross_build.sh scripts, but can be extended to build for others. It seems like one of the next steps is to hook up version publishing in general for these packages/platforms, but this PR just focuses on getting the builds running in CI for continuous validation/testing and further iteration. The builds are still relatively slow in CI, taking about 15 minutes to complete, but not nearly as slow as when running locally on a mac via qemu.

https://github.com/bitcoindevkit/bdk-ffi/blob/master/.github/workflows/publish-android.yaml seems like a good example of the full build + publish workflow that we'd want to evolve this into.

Note that the `x86_64-linux-android` build is failing, with some context in #134. I spent some time trying to figure this out, unsuccessfully, and ultimately decided to spin up an issue to track it separately and get a PR up for the builds that work.
@tuddman
Copy link
Contributor

tuddman commented Jan 25, 2024

Closing.
The example run referenced is no longer even available to view.
This issue appears to have been fixed. Update to the latest.

@tuddman tuddman closed this as completed Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants