-
Notifications
You must be signed in to change notification settings - Fork 3
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
add AARM (aarch64, ARMv8) support #81
Comments
rickview$ cargo build --target aarch64-unknown-linux-gnu
[...]
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: /usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: /home/konrad/projekte/rust/rickview/target/aarch64-unknown-linux-gnu/debug/deps/rickview-de10ff75536621c7.00r2lj4688y5echhmsibucwe6.rcgu.o: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status |
The linker needed to be put into .cargo/config.toml:
Update: this is only needed when cross compiling. It could actually cause an error on an actual ARM machine in case gcc is installed but not gcc-aarch64-linux-gnu, which seems to be a redirect to gcc in that case. |
QEMU allows running aarch64 images on Arch Linux on AMD64 but it is very slow. |
While cross compiling the executable in the release workflow worked, creating the appropriate multi platform Dockerfile with musl is getting more time consuming then I thought. While this method does not allow cross compilation or multi platform Dockerfiles, at least one can build the Dockerfile on the server (git clone and then docker build) for now and then use a Linux aarch64 runner as soon as those are available for public GitHub repositories. |
Linux arm64 is finally available! 🎉 |
The text was updated successfully, but these errors were encountered: