-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
1.54.0 compilation fault with nightly, miri and parallel-compiler #87623
Comments
Miri is a nightly-only tool, not a stable one. You shouldn't being able to built it from a stable release. |
I use nightly flag too, I'm just using release sources. |
The release source shouldn't include miri, in fact I don't see it in the release source. Where did you download it ? Have you used the official tarballs ? Miri is also one of the few tools that are allow to not always compile, see the Rustup Components History. So it's perfectly possible that when the beta-cut happen miri was not compiling at the moment. |
miri can be set as additional tool in |
That looks like a |
Okay, what is |
Sub-module hashtag for |
Lines 457 to 459 in 1195bea
|
@hyd-dev yes I have it enabled too |
Yes, but as I said before miri as no guarantee to build with any rust version or even master.
I don't know were you are looking, but it's not the case, the 1.54.0 beta-cut happen 6 weeks ago. There have been many commit since. |
I don't think Miri on |
@hyd-dev it was working for me on |
Maybe @RalfJung (the miri maintainer) can help you here. |
parallel-compiler = true is not a supported configuration at this time, both for rustc and especially for tools. I'd expect that patches to fix compilation and runtime bugs to be accepted for the most part, but there's not currently active development on that configuration and it's definitely not expected that git tags (i.e., stable releases) will build with parallel compiler enabled. |
Shouldn't #86413 have landed the change that avoids Miri being built on stable? Or do we need some other change so it is not in |
@Miezhiko why did you even build Miri? Did you explicitly ask for it in your (If you want to build Miri, you should always use a nightly compiler. That is the only configuration we support. And even then, not all nightlies come with Miri, see https://rust-lang.github.io/rustup-components-history/. Sometimes stable releases don't come with a working Miri at all; sometimes it just happens to work, but that's basically a 'happy accident'.) |
@RalfJung I enable it manually in config.toml (was thinking maybe it may be useful for me in future) I also build with nightly flag, needed for some features (not sure if FFI is stable already), I'm closing this but personally I'd port (if I know which one) patch fixing this error into sources from which ones I rebuild rust. |
Yeah, that doesn't really help for nightly tools like Miri. That said, if you are okay with patching things, I'm happy to give pointers for which patches you'll likely need. :) |
Use `Lrc` instead of `Rc` in `MiriCompilerCalls::config()` The `used_crate_source` query defines its return type as [`Lrc<CrateSource>`](https://github.com/rust-lang/rust/blob/1195bea5a7b73e079fa14b37ac7e375fc77d368a/compiler/rustc_middle/src/query/mod.rs#L1418), which would be `Arc` when `parallel-compiler = true`. I assume this fixes rust-lang/rust#87623. I didn't test that locally -- I'm not interested in `parallel-compiler = true` enough to be willing to recompile rustc with that configuration to test it, but I'm submitting this in case it might be useful for `parallel-compiler = true` users.
rust-lang/rust#87623 Signed-off-by: Miezhiko <[email protected]>
rust-lang/rust#87623 Closes: #21923 Signed-off-by: Miezhiko <[email protected]> Signed-off-by: Georgy Yakovlev <[email protected]>
The text was updated successfully, but these errors were encountered: