briansmith / ring

Safe, fast, small crypto using Rust
Other
3.65k stars 684 forks source link

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

Closed Adarsh999bh closed 3 months ago

Adarsh999bh commented 3 months ago

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.?

briansmith commented 3 months ago

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