-
Notifications
You must be signed in to change notification settings - Fork 349
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
Make miri easier to install #520
Comments
The second item above is solved: What remains is distributing miri itself. @oli-obk you have some experience with clippy, can you help making miri a rustup component? |
I'll do it over the holidays. I'll want to deduplicate some work between e.g. clippy and miri distribution instead of just copypasting everything. |
Sounds great :) |
@oli-obk what is the state of making Miri a rustup component? |
I believe it should be available with next release of rustup (or with git checkout). |
I thought rustup needs patching to hook |
You mean rust-lang/rustup#1606? |
Ah, I didn't know that already landed! Whom should we bug for a rustup release? |
Most of the releases were made by |
@alexcrichton When do you usually make rustup releases? Would be nice to get one that includes the Miri support. |
It's just on-demand, there's no schedule currently. There's development happening on rustup right now and presumably when that reaches a good point a release can be made. |
@alexcrichton , new rustup release needs to testing of the first miri component installation. |
It seems there was a new rustup release. What's next? |
Curious:
|
That explains it. I was sure I checked every Thanks! |
rust-lang/rust#58990 was merged, it should work with next nightly. |
Yes, miri is available in rustup component list now.
But I cannot install it:
|
Also, shouldn't it be called |
|
I debugged I can try to fix it but which name should be used |
if there's a discrepancy anyway, let's go with |
Opened rust-lang/rust#59236 |
@mati865 awesome, thanks! But then I assume rustup also needs updating? With https://github.com/rust-lang/rustup.rs/pull/1606/files, it says to install |
IIRC both |
Ping. It's still unavailable. |
@superriva the PR isn't merged yet. |
rust-lang/rust#59236 landed. Does rustup need to be updated as well? |
It landed 35 minutes late for the nightly, it should work tomorrow.
sob., 23 mar 2019, 11:45 użytkownik Diogo Sousa <notifications@github.com>
napisał:
… rust-lang/rust#59236 <rust-lang/rust#59236>
landed. Does rustup need to be updated as well?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#520 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABHsdpbSpSXcr2BejHrDT90X5D7hfGQiks5vZgXKgaJpZM4YdMdi>
.
|
🎊 Seems to be finally fixed, running in clear container:
|
cc @shepmaster you can now install miri as a component instead of building it yourself |
Awesome. :) |
The component doesn't seem to be available anymore:
|
Yeah, that is waiting for rust-lang/rust#59555 to land. Just like Clippy and RLS, Miri sometimes gets broken by rustc changes and then a fix has to land before it can be installed via rustup again. |
It would be great if we could make miri easier to install.
miri + cargo miri
One thing is getting miri (and cargo-miri) itself. The ideal solution here would be making this a
component
in rustup so that it comes with a matching nightly. The dev-tools team has said they would support us in getting that done, after the edition.libstd
However, miri isn't extremely useful if libstd comes without all the MIR. Right now, I don't think just making it a component is going to do much good, if people still have to then clone our repo to run
xargo/build.sh
.The best I can think of here is to do this automatically in miri itself: Basically, to move
xargo/*
into the miri library, and have a setup step in the beginning which automatically compiles and then uses an appropriate libstd. Sounds rather hacky, but does anyone have a better idea?The text was updated successfully, but these errors were encountered: