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

sync server v25.02 can not be build static on armv7 anymore #3819

Open
LuckyTurtleDev opened this issue Feb 15, 2025 · 2 comments
Open

sync server v25.02 can not be build static on armv7 anymore #3819

LuckyTurtleDev opened this issue Feb 15, 2025 · 2 comments

Comments

@LuckyTurtleDev
Copy link

The anki sync server can not be build static on armv7 anymore, since release 25.02.
I get the error message that library not found: dl.
This error does not occur on armv8 or amd64.

Build the following docker image for armv7 with docker build --platform linux/arm/v7 --build-arg version=25.02 . .
https://github.com/LuckyTurtleDev/docker-images/blob/862887d9fb58f06c40c360e7a93ace74256ce813/dockerfiles/anki/Dockerfile

  • docker build --platform linux/arm/v7 --build-arg version=24.11 . works
  • docker build --platform linux/arm/v7 --build-arg version=25.02 . fail
  • docker build --platform linux/arm64/v8 --build-arg version=25.02 . works
  • docker build --platform linux/amd64 --build-arg version=25.02 . works

Full error message:

677.4   = note: clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
677.4           mold: fatal: library not found: dl
677.4           clang: error: linker command failed with exit code 1 (use -v to see invocation)
677.4           
677.4 
677.4 error: could not compile `anki-sync-server` (bin "anki-sync-server") due to 1 previous error
@dae
Copy link
Member

dae commented Feb 16, 2025

@mikehardy AnkiDroid still targets arm7, right? If it's still working there, perhaps this is just an issue with the docker environment.

@mikehardy
Copy link
Contributor

mikehardy commented Feb 16, 2025

Hey @dae - can't say whether anyone has actually tested this and sees it running still by loading up the APK and using it, or whether we build all the things required to say syncserver is working or not but yes, we do generate an armeabi-v7a artifact still:

backend build with target list, includes armeabi-v7a

https://github.com/ankidroid/Anki-Android-Backend/blob/fc42c211fbd9f14198821703745b03dba57987e3/build_rust/src/main.rs#L208-L225

Our built artifacts on front-end, consuming that library:

https://github.com/ankidroid/Anki-Android/releases/tag/v2.21alpha13

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

No branches or pull requests

3 participants