[GH-ISSUE #79] MultiArch ARM64 Support #33

Closed
opened 2026-02-27 08:14:47 +03:00 by kerem · 11 comments
Owner

Originally created by @xavier83 on GitHub (Nov 17, 2021).
Original GitHub issue: https://github.com/lldap/lldap/issues/79

Would be great if the container images support MultiArch/ARM64 for running on arm64 embedded hardware like raspberry pi or arm64 based cloud instances.

Originally created by @xavier83 on GitHub (Nov 17, 2021). Original GitHub issue: https://github.com/lldap/lldap/issues/79 Would be great if the container images support MultiArch/ARM64 for running on arm64 embedded hardware like raspberry pi or arm64 based cloud instances.
kerem 2026-02-27 08:14:47 +03:00
Author
Owner

@nitnelave commented on GitHub (Nov 18, 2021):

Damn, I'm working on it but it's surprisingly difficult! Right now I'm hitting issues with musl versions for the time library (undefined reference to __time64 & co). Something along these lines, maybe? https://stackoverflow.com/questions/61934997/undefined-reference-to-stat-time64-when-cross-compiling-rust-project-on-mu

<!-- gh-comment-id:973404157 --> @nitnelave commented on GitHub (Nov 18, 2021): Damn, I'm working on it but it's surprisingly difficult! Right now I'm hitting issues with musl versions for the time library (undefined reference to `__time64` & co). Something along these lines, maybe? https://stackoverflow.com/questions/61934997/undefined-reference-to-stat-time64-when-cross-compiling-rust-project-on-mu
Author
Owner

@nitnelave commented on GitHub (Nov 19, 2021):

@xavier83 Would you be okay with a non-dockerized version? Basically just the binary + compiled WASM, drop it anywhere and run it from there. That seems to be much easier to do than a docker image (although I guess you could also have a docker-in-docker to get cross to compile it?).

<!-- gh-comment-id:974169693 --> @nitnelave commented on GitHub (Nov 19, 2021): @xavier83 Would you be okay with a non-dockerized version? Basically just the binary + compiled WASM, drop it anywhere and run it from there. That seems to be much easier to do than a docker image (although I guess you could also have a docker-in-docker to get `cross` to compile it?).
Author
Owner

@nitnelave commented on GitHub (Nov 20, 2021):

I'll see whether I do pre-compiled binary releases, but I'll anyway add instructions for cross-compiling to the README

<!-- gh-comment-id:974656038 --> @nitnelave commented on GitHub (Nov 20, 2021): I'll see whether I do pre-compiled binary releases, but I'll anyway add instructions for cross-compiling to the README
Author
Owner

@nitnelave commented on GitHub (Nov 20, 2021):

Here are the cross-compile instructions, on the "mail" branch: https://github.com/nitnelave/lldap/tree/mail

They'll get merged into main when I merge the branch, and I'll probably do a release at that point with some precompiled binaries.

<!-- gh-comment-id:974682564 --> @nitnelave commented on GitHub (Nov 20, 2021): Here are the cross-compile instructions, on the "mail" branch: https://github.com/nitnelave/lldap/tree/mail They'll get merged into main when I merge the branch, and I'll probably do a release at that point with some precompiled binaries.
Author
Owner

@martadinata666 commented on GitHub (Jun 28, 2022):

Sorry for bumping this as i interested in this, are we must going to musl ? i mean building via glibc prove to be faster and easier, yes it lost the portability thing because musl build is static, but i think it doesn't really worth to pursue.

<!-- gh-comment-id:1168378506 --> @martadinata666 commented on GitHub (Jun 28, 2022): Sorry for bumping this as i interested in this, are we must going to musl ? i mean building via glibc prove to be faster and easier, yes it lost the `portability` thing because musl build is `static`, but i think it doesn't really worth to pursue.
Author
Owner

@nitnelave commented on GitHub (Jun 28, 2022):

So, with each release I provide a pre-compiled ARM binary that you can download. I don't provide a docker image because I couldn't figure out how to cross-compile inside docker, but I put instructions in the README on how to cross-compile it yourself, it's fairly straightforward.

<!-- gh-comment-id:1168390940 --> @nitnelave commented on GitHub (Jun 28, 2022): So, with each release I provide a pre-compiled ARM binary that you can download. I don't provide a docker image because I couldn't figure out how to cross-compile inside docker, but I put instructions in the README on how to cross-compile it yourself, it's fairly straightforward.
Author
Owner

@martadinata666 commented on GitHub (Jun 28, 2022):

I see, let me put a PR about this build then we can talk there. 👍🏼

<!-- gh-comment-id:1168457631 --> @martadinata666 commented on GitHub (Jun 28, 2022): I see, let me put a PR about this build then we can talk there. 👍🏼
Author
Owner

@yamsu commented on GitHub (Jul 7, 2022):

Unable to run the docker image on an Arm64 ubuntu 20.04 host. Using the example docker-compose.yml. I get the following error:

> docker-compose up
[+] Running 1/1
 ⠿ Container lldap-lldap-1  Recreated                                                      0.1s
Attaching to lldap-lldap-1
lldap-lldap-1  | exec /app/docker-entrypoint.sh: exec format error
lldap-lldap-1 exited with code 1

The same config, on an x86 ubuntu 20.04 host, works without trouble.

<!-- gh-comment-id:1176869228 --> @yamsu commented on GitHub (Jul 7, 2022): Unable to run the docker image on an Arm64 ubuntu 20.04 host. Using the example docker-compose.yml. I get the following error: ``` > docker-compose up [+] Running 1/1 ⠿ Container lldap-lldap-1 Recreated 0.1s Attaching to lldap-lldap-1 lldap-lldap-1 | exec /app/docker-entrypoint.sh: exec format error lldap-lldap-1 exited with code 1 ``` The same config, on an x86 ubuntu 20.04 host, works without trouble.
Author
Owner

@martadinata666 commented on GitHub (Jul 7, 2022):

Currently only :latest tag support arm64 and armv7, as this is still testing purpose, please open issue or join discord if the lldap got issues.

<!-- gh-comment-id:1177066158 --> @martadinata666 commented on GitHub (Jul 7, 2022): Currently only `:latest` tag support arm64 and armv7, as this is still testing purpose, please open issue or join discord if the lldap got issues.
Author
Owner

@yamsu commented on GitHub (Jul 12, 2022):

Currently only :latest tag support arm64 and armv7, as this is still testing purpose, please open issue or join discord if the lldap got issues.

nitnelave/lldap:latest works on arm64, Thanks
updated docker-compose.yml accordingly

<!-- gh-comment-id:1181348742 --> @yamsu commented on GitHub (Jul 12, 2022): > Currently only `:latest` tag support arm64 and armv7, as this is still testing purpose, please open issue or join discord if the lldap got issues. `nitnelave/lldap:latest` works on arm64, Thanks updated docker-compose.yml accordingly
Author
Owner

@nitnelave commented on GitHub (Jul 12, 2022):

You can even use :stable now, there was a release!

<!-- gh-comment-id:1181353033 --> @nitnelave commented on GitHub (Jul 12, 2022): You can even use `:stable` now, there was a release!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#33
No description provided.