-
Notifications
You must be signed in to change notification settings - Fork 448
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
Upgrading to cc@1.0.84 breaks libstd bootstrap #913
Comments
I guess we'd take a patch that avoids a |
jobserver also uses libc, so I wonder why it can compile back then. Maybe we can add a new feature |
Iirc jobserver used to be optional. |
Thanks, so rustc didn't enable cc/parallel. Does adding a new feature |
That's usually used to enable a special workspace hack, which shouldn't be needed here as cc isn't a true dependency of std. I assume it's just a dev dependency due to a build script. But if adding a feature helps avoid this issue then I guess it makes the most sense. |
It uses function I actually want to get rid of the If we can get it right though, I would definitely be in favor of removing |
There are other issues with upgrading cc in libstd, see this issue |
IIRC this is because rustc's workspace is still on the old resolver, which is hard to fix (or so I've been told). Anyway, I'll see if I can get to this next weekend or so. |
Any luck with this? |
I have a crate that I wrote for fish that might help make this less error-prone, but the catch is that it depends on cc-rs in turn. If it's a build dependency I think cargo should still be able to resolve it? It's a very basic version of autoconf for rust, allowing checking system provided types and testing C preprocessor predicates. For constant values and expressions (sizeof, |
Thanks, but with #985 we would add back jobserver dependency (and jobserver depends on libc), so I don't think we can remove libc as a dependency anymore. |
cc-rs has been updated in rust-lang/rust, so I believe that this issue can be marked as completed. |
Right now, rust-lang/rust uses cc@1.79. If I attempt to upgrade to cc@1.84, I get a bunch of errors from bootstrap.
I believe the issue is the dependency on
libc
cc-rs/Cargo.toml
Line 24 in 802399f
which does not activate the
rustc-dep-of-std
feature in this case.The text was updated successfully, but these errors were encountered: