-
Notifications
You must be signed in to change notification settings - Fork 371
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
Enable MIR optimizations in test suite again #480
Comments
The run-pass test suite works with optimizations now, but the compile-fail test suite still explodes with higher optimization levels. |
Had to disable optimizations for run-pass again, likely caused by rust-lang/rust#63580. |
I think I will have some time to look at this later tonight or tomorrow morning. |
So, I'm trying to test some local changes to
I've built my local |
That is strange. I regularly build Miri against a local rustc. Usually I do In which part of the Miri build process does the error occur? Is it while building Miri, or while building the custom libstd? Please post a complete build log, starting with your |
Ok, so here's what I just tried:
Which does this:
|
That looks like your xargo is outdated. What does |
Yes, I just rebased my changes on
I don't remember ever installing xargo so I assume
|
Edit: I just realized the tests are passing on macOS on CI and I'm currently using my MacBook. I'll retest this on Linux. Edit 2: I am seeing the test failure on Linux. I think perhaps I'm missing some kind of configuration necessary to use miri with a local rustc build. If I use a nightly, then miri compiles fine but if I use my local copy (with up to date HEAD and xargo), then I get the above errors. |
Try this:
|
Thanks, that repro's on I tried running various parts of the
Should it be trying to install the |
You need to set Also, the HashMap test indeed takes a somewhat different code path on macOS due to #686, which might explain the platform differences. |
Hmm... the error looks the same as before even with
|
What exactly did you set |
|
Very strange.
Depending in your shell, I think `~` might not work when setting env vars. Try giving a fully explicit absolute path?
|
It doesn't seem to make a difference. Yeah, I'm kind of stumped. I've tried it on two different computers and two different OS's and I can't seem to get it to work on either. I don't think I have anything especially strange installed or configured on either. |
And the test suite also passes?
This looks like a fairly old nightly version of Rust.
Miri HEAD or rustc HEAD? What's your rustc HEAD? Did you try using the latest rustc master for that (so that it is a version I can also try and reproduce this with)? For the record, here's the not-commented-out part of my
|
Note that you need to turn optimized run pass tests back on in order to see the failure. I just tried it and it still fails on nightly |
With a clean checkout of
I have a checkout of rustc from just after rust-lang/rust#63580 was merged. I'm going to pull and rebase my change right now. I have a build started on top of |
The issue here is @wesleywiser can't even run the test suite as xargo fails.
Ah, that might be it. We had to update Miri when rust-lang/rust#63637 landed and that means rustc prior to that don't work any more. |
In
That completed successfully. In
That worked! |
So the issue was almost certainly my outdated rustc checkout. Sorry for wasting your time! |
My rustc test build to reproduce is just done. I guess I don't need that any more then. ;) Good to hear it works now. :)
In theory, even just |
Yep, that works great! Perhaps I should add an entry to the "Common Problems" section of the Readme with this info? Also, I just opened rust-lang/rust#64100 which will fix the regression. I believe I need to wait for that PR to land and then open a PR here with a rustup right? |
This concrete issue is unlikely to still come up in a month or two because old compilers will get used less and less. |
I was going to add something like: error[E0463]: can't find crate for `std`This may indicate that your local checkout of rust is out of date. Try to update both rust and miri to the latest version with |
This is unlikely to be the error you get with other Miri/rustc version mismatches. And IIRC you also get that error when using a bogus |
Ah, ok. Feel free to disregard then. :) Given how much back and forth it took to figure that out, I was hoping a warning might prevent this kind of thing in the future. |
Final bullet fixed by #1133 |
miri's test suite used to also run with enabled MIR optimizations, but does not any more because of too many bugs. We should get it enabled again, eventually.
SourceScopeLocalData
rust#66137.The text was updated successfully, but these errors were encountered: