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

Unable to compile for ARM64 from Linux x86_64 #889

Closed
mrzigha opened this issue Mar 27, 2024 · 1 comment
Closed

Unable to compile for ARM64 from Linux x86_64 #889

mrzigha opened this issue Mar 27, 2024 · 1 comment

Comments

@mrzigha
Copy link

mrzigha commented Mar 27, 2024

I can't compile TMKMS v0.13.1 for the AARM64 achitecture.

Host: Linux 6.8.1-arch1-1 x86_64 (I specify that the following are installed: rustup, aarch64-unknown-linux-gnu, aarch64-linux-gnu-gcc, aarch64-linux-gnu-ld)

The compilation target is therefore : aarch64-unknown-linux-gnu
I compile with the following command: cargo build --release --features=softsign --target=aarch64-unknown-linux-gnu

Error : error adding symbols: file in wrong format

Here are the full logs : log.txt

@tony-iqlusion
Copy link
Member

It looks like you're cross-compiling, and the host toolchain is trying to link objects for a foreign architecture, which won't work.

You'll need to have an aarch64 linker installed and tell Cargo to use it in that case. Here is an issue describing how to do that:

rust-lang/rust#28924

@mrzigha mrzigha closed this as completed Mar 27, 2024
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

2 participants