Skip to content
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

Stable build of 1.66.0 fails due to 'missing miri' #105816

Closed
gco opened this issue Dec 17, 2022 · 6 comments · Fixed by #105901
Closed

Stable build of 1.66.0 fails due to 'missing miri' #105816

gco opened this issue Dec 17, 2022 · 6 comments · Fixed by #105901
Assignees
Labels
A-miri Area: The miri tool C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@gco
Copy link
Contributor

gco commented Dec 17, 2022

On Solaris 11 x86_64, from scratch stable builds of 1.66.0 from git fails with:

...
   Compiling opener v0.5.0
   Compiling toml v0.5.9
    Finished dev [unoptimized] target(s) in 1m 02s
Build completed successfully in 0:01:10
Building rustbuild
    Finished dev [unoptimized] target(s) in 2.25s
thread 'main' panicked at 'missing miri', install.rs:205:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:00:03
make: *** [Makefile:54: install] Error 1

A nightly build of the same tag completes successfully, as do stable and nightly builds of 1.65.0.

@gco gco added the C-bug Category: This is a bug. label Dec 17, 2022
@oli-obk oli-obk added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) A-miri Area: The miri tool labels Dec 17, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Dec 17, 2022

Was there an earlier (nonfatal) error? If miri failed to build there should hopefully be a reason mentioned.

We turned miri on unconditionally, so builds require it to build successfully. Maybe we should disable that requirement for stable builds,but even so, stable builds should work just like nightly builds for miri

@mati865
Copy link
Contributor

mati865 commented Dec 17, 2022

It doesn't even try to build miri, instead rustbuild panics soon after its start: https://github.com/msys2/MINGW-packages/actions/runs/3716308024/jobs/6302486421
Dunno about Solaris build but MSYS2 hack quite a lot patches that theoretically could cause problems.

@oli-obk
Copy link
Contributor

oli-obk commented Dec 17, 2022

Found the culprit: https://github.com/rust-lang/rust/blob/master/src/bootstrap/dist.rs#L1230

Should be easy enough to fix by making install not unwrap anymore. Looks like I was too eager

@oli-obk oli-obk self-assigned this Dec 17, 2022
@etna
Copy link

etna commented Dec 17, 2022

Glad to see that this is indeed a real issue. Was tearing my hair out for hours wondering WHY x.py install kept failing with missing miri when config.toml is set with channel = "stable"

pld-gitsync pushed a commit to pld-linux/rust that referenced this issue Dec 18, 2022
- quick hack to workaround miri installation failure while it's not
  built (rust-lang/rust#105816)
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Dec 19, 2022
…Simulacrum

Don't panic on stable since miri is not available there

fixes rust-lang#105816
@bors bors closed this as completed in bcb75e6 Dec 20, 2022
@paulmenzel
Copy link

paulmenzel commented Jan 17, 2023

We are still seeing this with 1.66.1.

    […]
       Compiling thiserror v1.0.33
        Finished release [optimized] target(s) in 38.48s
    warning: x.py has made several changes recently you may want to look at   
    help: consider looking at the changes in `src/bootstrap/CHANGELOG.md`
    note: to silence this warning, add `changelog-seen = 2` at the top of `config.toml`
    note: this message was printed twice to make it more likely to be seen
    Build completed successfully in 0:28:41
    + python3 ./x.py install
    Building rustbuild
        Finished dev [unoptimized] target(s) in 0.66s
    warning: x.py has made several changes recently you may want to look at   
    help: consider looking at the changes in `src/bootstrap/CHANGELOG.md`
    note: to silence this warning, add `changelog-seen = 2` at the top of `config.toml`
    thread 'main' panicked at 'missing miri', install.rs:205:14
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    Build completed unsuccessfully in 0:00:01

@mati865
Copy link
Contributor

mati865 commented Jan 17, 2023

The fix has been merged for the future 1.68 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-miri Area: The miri tool C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants