-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
cargo 0.26 outputs misleading error message when RUSTFLAGS works for stage0 but not stage1+ #50910
Comments
In Debian we've been passing |
If I'm interpreting correctly, |
Thanks, these flags worked. Not sure why the more appropriate error message here was not triggered. Probably a cargo issue, let me know if I should move it. |
Hm, that does seem like a Cargo issue, though it might be rustc isn't properly setting the status code in some cases. @alexcrichton might be able to comment on whether this should be re-filed as a poor message bug on Cargo's side |
Sure yeah, seems like Cargo could do a better job with the error message here |
I'm going to close this in favor of refiling on Cargo if you're interested in pursuing this. |
Building with Debian patches, the error is:
For config.toml see the bottom of this post.
The error goes away if I build with a cleanly-unpacked upstream tarball, with this trivial patch applied, i.e LLVM is still being linked dynamically to the system one, and we're using the system rustc/cargo as stage0 bootstrap.
The error reproduces when I build with all of the Debian-specific patches and flags, but we're not doing anything particularly crazy on top of what I just described. I don't know how to debug this, cargo is not giving me any more information on what it's expecting to see from rustc nor what's wrong.
config.toml:
The text was updated successfully, but these errors were encountered: