-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Mac] could not compile libc
#1321
Comments
Can you include the output of |
rustc 1.45.0-nightly (5fd2f06e9 2020-05-31) |
Since the failures are all build scripts that are very deep in the dependency tree, I expect this is unrelated to Rocket. Unfortunately I don't have access to a mac - can you try compiling with stable and beta as well to check if this problem is nightly-specific? The following command will add some extra logging that might be helpful for troubleshooting:
|
Hey,
The extra logging info gave the following: The issue is certainly not caused by rocket. |
That's definitely problem with nightly release. I tried to compile actix-web code and stable version compiled with no problems. I also tried compile this app on nightly version and it's getting the same "unknown argument: '-no-pie'" clang error. |
I tried to find some solutions for this "-nopie" issue but nothing match my problem. |
@fifichaladyniak, can you open an issue on rust-lang/rust and mention this issue? Unfortunately I don't know this part of rustc well enough to try to troubleshoot, nor do I have easy access to a mac to test it on. Looking through recent commits, rust-lang/rust#71804 looks like a possible cause. |
I also had the same problem:
cargo 1.62.0-nightly (e2e2dddeb 2022-04-05) |
I solved this (on Linux) by installing build-tools: |
I'm really new to this lang so maybe it's easy to fix.
When I'm trying to compile (on nightly build ofc) standard code from "Getting started" i get cargo error.
It says:
The text was updated successfully, but these errors were encountered: