mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #200] arm build "bash: ./dust: cannot execute binary file: Exec format error" but can build from source #91
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bbugh on GitHub (Nov 29, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/200
Hi! 👋🏻 Thank you for making dust, it's awesome!
debian-11.1.0-arm64 virtualized in an Apple M1:
However, building it from source works:
@anirvan-majumdar commented on GitHub (Dec 1, 2021):
Hi — we are trying to get Dust installed on an AWS Graviton (Aarch64) instance and facing a similar issue:
You seem to have built dust from source using
docker, but is there a way to build the binary from source natively on the instance?@bbugh commented on GitHub (Dec 1, 2021):
@anirvan-majumdar I used docker because the server I was running this on doesn't need Rust installed. If you have Rust installed, you should be able to just run
cargo build --releasein the project's source folder!@bootandy commented on GitHub (Dec 3, 2021):
Hi,
Sorry to hear that.
This might be a silly suggestion but do any of the other releases work?
Should we be building a separate release for the M1 processor ?
I'm afraid I don't know much about creating the releases but I'm happy to help if I can.
@bbugh commented on GitHub (Dec 3, 2021):
Hey @bootandy, thanks for the reply! Nothing special is needed for the M1, it's just an arm64. The executable also doesn't run on a Rasperry Pi, which is also arm64. If you could also output an arm64 build, that would solve it.
I can check later to see if any old versions ran, but unless they were built for arm64 they most likely won't.
@bbugh commented on GitHub (Dec 5, 2021):
This came up on the sidebar of dev.to and it seems like it might be useful! https://dev.to/marcoieni/rust-makes-cross-compilation-child-s-play-4e4g
@anirvan-majumdar commented on GitHub (Dec 5, 2021):
Worked like a charm @bbugh!
Installed
cargoon the Ubuntu instance and ran the command you'd suggested.@bootandy commented on GitHub (Dec 7, 2021):
Thanks for the info. I'll add an arm64 build when I next fiddle round with the releases
(I confess I don't much like touching the release scripts!).
@bootandy commented on GitHub (Feb 26, 2022):
I'm not sure I can help anymore on this.
If someone wants to add a new release to dust that would be welcome, the file is here:
https://github.com/bootandy/dust/blob/master/.github/workflows/CICD.yml
(I don't have an arm system and have not had much luck including a new arm64 build).
@adamcstephens commented on GitHub (Feb 27, 2022):
Confirmed v0.8.1-alpha.2 musl and gnu binaries both work on a raspberry pi running Ubuntu aarch64