briansmith / ring

Safe, fast, small crypto using Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: failed to run custom build command for `ring v0.16.20`

Adarsh999bh opened this issue · comments

Hi,
I'm trying to build ( cross compile ) a client using fastembed-rs for aarch64 architecture in x86_64 linux, but it's failing with the above error mentioned in the title, while analysing logs (stdout) I found that TARGET and HOST are both same ( x86_64-unknown-linux-gnu )
And i believe that is also the reason while building it is trying to pass the option -m64 which is also leading to the error aarch64-linux-gnu-gcc: unrecognised command line option '-m64'

Any idea why this is happening.? did I miss out any flags.?

Hi, this is a supported configuration. You need to set some environment variables for it to work. Look at mk/cargo.sh .