-
Notifications
You must be signed in to change notification settings - Fork 709
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 cross-compile with ring v0.16.20
on AMD64 Linux host machine
#1488
Comments
ring v0.16.20
on AMD64 Linux host machinering v0.16.20
on AMD64 Linux host machine
Hitting a similar issue when compiling android:
|
This only seems to happen to me when using clippy. |
Then it won't work. TARGET_CC and TARGET_AR environment variables must be manually set. |
Thanks for this hint! That makes perfectly sense. When building for android it works in my case because the android ndk toolchain is properly set. When I run clippy it does not work because I did not setup the correct environment. |
@Ivan-Sanchez-Diaz
Try this: Lines 63 to 65 in 0f3bf00
|
@Darkspirit thank you very much! i did the equivalent in powershell with |
To cross-compile from Linux to macOS, you need osxcross, the macOS SDK and the environment variables: https://wapl.es/rust/2019/02/17/rust-cross-compile-linux-to-macos.html |
well, afrer set my |
when i re-compile the https://github.com/tpoechtrager/osxcross |
Thanks for all the discussion. Getting the cross-compilation working is a big headache, for sure. I try to document what needs to be done in the I don't think there's any action to take here, so I'm closing this. |
On starfive visionfive 2, I'm still getting this error on the latest rust nightly on ubuntu server with the rolling release kernel(6.4-rc1):
What did I miss? |
I cross compiled BoringTun on amd64 linux.
I have run rustup target add
x86_64-apple-darwin
before.It was successful to compile
x86_64-unknown-linux-gnu
.However. It was failed in
x86_64-apple-darwin
The text was updated successfully, but these errors were encountered: