-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Bootstrap sometimes fails to build miri because of "nightly" feature confusion #118129
Comments
A quick workaround for your case would be adding |
FWIW I cannot reproduce the problem any more. Has this been fixed? |
Actually never mind the issue still exists |
I don't understand this explanation. Looking at the Cargo.toml, we have
and
So by default, we do enable Why does adding |
The work-around for this works, but it makes the |
what am i being ccd for |
@compiler-errors you wrote some of the commits adding this "nightly" feature everywhere (e.g. 4506681). Somehow that is causing issues with building Miri: some rustc crates end up being built twice with different feature sets, and then the |
I think I found another work-around: |
not totally sure, but sounds like a bootstrap issue 🤔 |
It's more of a cargo thing (I am not sure if this is an expected behaviour or not). When See #134526 for the fix. cc @rust-lang/cargo |
…ieyouxu update `rustc_index_macros` feature handling It seems that cargo can't [conditionally propagate features](https://github.com/rust-lang/rust/blob/214587c89d527dd0ccbe1f2150c737d3bdee67b0/compiler/rustc_index/Cargo.toml#L20) if they were enabled by default on the target crate, but disabled with `default-features = false` in the current/parent crate. Fixes rust-lang#118129
…ieyouxu update `rustc_index_macros` feature handling It seems that cargo can't [conditionally propagate features](https://github.com/rust-lang/rust/blob/214587c89d527dd0ccbe1f2150c737d3bdee67b0/compiler/rustc_index/Cargo.toml#L20) if they were enabled by default on the target crate, but disabled with `default-features = false` in the current/parent crate. Fixes rust-lang#118129
Rollup merge of rust-lang#134526 - onur-ozkan:nightly-feat-rustc, r=jieyouxu update `rustc_index_macros` feature handling It seems that cargo can't [conditionally propagate features](https://github.com/rust-lang/rust/blob/214587c89d527dd0ccbe1f2150c737d3bdee67b0/compiler/rustc_index/Cargo.toml#L20) if they were enabled by default on the target crate, but disabled with `default-features = false` in the current/parent crate. Fixes rust-lang#118129
Step to reproduce:
Now Miri fails to build with >1800 errors. The first ones are:
However, if I now run
./x.py check miri
, everything is fine.rm build/host/stage0* -rf && ./x.py check miri
is also fine. Something about explicitly giving the three paths to build is throwing bootstrap off. And even more strangely, the same sequence of commands worked fine before #116828.Cc @rust-lang/bootstrap
The text was updated successfully, but these errors were encountered: