-
Notifications
You must be signed in to change notification settings - Fork 247
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
Cross-compiling for x86_64-unknown-freebsd from macOS fails #105
Comments
Cross compilation isn't natively supported so this is currently an expected error, you'll need to install a toolchain that can compile code for FreeBSD |
I got the same error cross-compiling to Linux from Mac:
My understanding was that you could use normal Clang to cross-compile code to any supported target using the So I installed this brew formula to get a cross-compiling linker and it works perfectly for pure Rust code. It seems like the problem is that Cargo doesn't tell Clang the include path of MUSL? I have
But how do I add |
Ooo I figured it out. Set the
My build still fails on the final link but it gets further at least! |
Made a pull request to clarify the triple case: rust-lang/cargo#8079 |
macOS High Sierra (10.13.4)
The text was updated successfully, but these errors were encountered: