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

aarch 64 compilation failure. #256

Open
leccyworld opened this issue Aug 20, 2021 · 2 comments
Open

aarch 64 compilation failure. #256

leccyworld opened this issue Aug 20, 2021 · 2 comments

Comments

@leccyworld
Copy link

Trying to build libm as part of opendp for aarch64 target.
Its failing with below error

note: cc: error: unrecognized command line option '-m64'
Seems its still trying to use X86 flags, Isthis librsry not supported on aarch64 platforms at all?

@Amanieu
Copy link
Member

Amanieu commented Aug 20, 2021

This crate compiles fine on aarch64 for me:

cargo build --target aarch64-unknown-linux-gnu
    Updating crates.io index
   Compiling libm v0.2.1 (/home/amanieu/code/compiler-builtins/libm)
    Finished dev [unoptimized + debuginfo] target(s) in 4.30s

Did you set up your aarch64 cross-compiler correctly in ~/.cargo/config?

[target.aarch64-unknown-linux-gnu]
ar = "aarch64-linux-gnu-ar"
linker = "aarch64-linux-gnu-gcc"

@leccyworld
Copy link
Author

I have that in config. Do you have gcc installed on your system? I didnt have gcc on my VM initially. After installing gcc it seems to compile with the target=aarch64 command.

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