-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Misleading error caused by incorrect target specification #34806
Comments
This should likely improve with #34980. |
With #34980 (which is part of Rust 1.12.0) the error becomes:
While its still not reporting that the field is present but of the wrong type I'm not sure if there's anything we can do to improve this while the compiler still uses rustc-serialize for its JSON handling. |
That's not really much better, as per my original report. |
Its at least not an ICE but instead a message saying it was unable to load the target specification. But like I said, you're correct that its incorrectly reporting the field missing when the actual issue is the data type is wrong. |
I have lost over a hour again due to this issue, now because |
I recommend round tripping your config through |
Worth noting that you currently have to do this on the nightly and append |
@whitequark Had a similar experience recently. I was wondering why this: "pre-link-args": "-nostartfiles", was not passing that argument to the linker. Turns out that the value has to be an array ... The compiler should at least be printing warnings about this instead of simply ignoring the invalid values. |
Closing in favor of #24384. |
Using rustc 1.10.0-dev (cfcb716 2016-07-03), and the following specification (it's incomplete, but that's irrelevant):
This is the error I get:
It's an ICE, which is a bit more scary than it ought to be, but that's fine. What's not fine is that it says there's no target-pointer-width but really what it doesn't like is that the value is not a string. Took me a while.
The text was updated successfully, but these errors were encountered: