-
Notifications
You must be signed in to change notification settings - Fork 385
Something with ./miri install or the miri toolchain is mangling itself? Or rustup? #2233
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
Comments
The issue is that What I do is I always run At the very least, you will need to re-do
Doing |
I figured out that I needed to run A lot of the output above I find very confusing. Why does Why after running |
Everything still works as expected on my system. Do you have a series of commands that you think should work, but doesn't, to reproduce the problem?
This has something to do with how cargo-miri works. The "storing the flags" that it mentions means "put them into a JSON file". So somehow it thinks that it should "execute" that file, and "execute" for cargo-miri means "interpret as JSON and then run the Miri driver".
My guess would be it is run in the wrong toolchain: |
I don't have a reproducer. I wish I did, but rustup has so much global state, so I'm mostly just hoping I manage to run into this issue again. With
As a last-ditch effort to get some more info before I reinstalled rustup, I tried with |
I wonder if #2259 will help here? Some of the symptoms look the same as #2238 (comment). |
@saethlin is there still anything actionable in this issue? It doesn't seem reproducible, we improved our docs for how to recover from |
As above, we left this open in the hope that it would recur. It has not. I'm not sure if that's good or bad 😂 |
I've had issues with
./miri install
for a long time. Perhaps this is just a me problem? I have very little interest in just running./miri code.rs
to execute Rust code because all the interesting cases for me are whole Cargo projects. So I need some way to runcargo-miri
on Cargo projects to do development, and I've settled on./miri install
thencargo +miri miri
.After I
rustup update
to pull in the latest nightly,cargo +miri miri run
doesn't work, because somehowmiri
becomes uninstalled. I need to run./miri install
again.Recently, I started getting this behavior when I try to
cargo +miri miri run
:Sometimes running
rustup toolchain remove miri
then./miri install
twice fixes this, but not anymore. I've tried thecargo clean
as suggested as well asrm -r ~/.cache/miri
, those do not seem to have any effect (other than requiring recompiling the standard library).I also just ran into this situation after a
rustup update
:So I
rustup toolchain remove miri
then run./rustup-toolchain
and I watch the toolchain install and get exactly the same behavior. So I figured I would try out nightly:None of this makes any sense to me.
So I just got myself out of this situation by running
rustup self uninstall
and doing a full reinstall from scratch. Things work again, for the moment. Is there a better way to docargo-miri
development?The text was updated successfully, but these errors were encountered: