-
Notifications
You must be signed in to change notification settings - Fork 346
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
no mir for "std::rt::lang_start_internal" #706
Comments
Unfortunately usernames with spaces in them are not supported at the moment. See #705
If you use |
No,
Yes they are, #705 (which was opened by me) is a problem with a build script with xargo, not miri. I might be wrong, but the sysroot works fine (without the sysroot I get runtime errors such as "no std crate found"). I suspect that |
You can set |
Please keep those separate from the bugreport though. This thread is going to become a mess. :/ Your main problem is caused by not having a sysroot that was compiled the right way. See these not-yet-merged instructions for some more details, I hope that helps.
Miri is really slow, so it might not be the best choice for this purpose -- it's not the kind of usecase it is designed for. But I'm very curious how this will work out. :) You might want to pass |
Okay I copied the Also xargo complained that the |
If you mean this, that's normal:
|
I've gotten it so far that it build libstd, however xargo seems to crash after it has successfully built libstd, which is what I don't understand - it crashes with a I tried working around the spaces-in-sysroot issue following this comment - by creating a
What I find weird is that it does say: |
After building libstd, it builds libtest -- that's needed for I think this is still the sysroot issue. I think |
cargo miri setup
fails when there is a space in the sysroot directory
cargo miri setup
fails when there is a space in the sysroot directory
I am going to close this issue as a duplicate of #705. If you can reproduce this problem in a directory without spaces in it, please let us know! |
I'm currently trying (as a weekend project) to use miri as an embedded interpreter, so that I could hot-reload game scripts (and then use the real rust compiler in release mode, for performance): https://github.com/fschutt/miri-repl-test
So I take the
src/game_script.rs
file, fix it up like described in #511 and write the generated file to aautogen_{cache_id}.rs
. However, I currently can't execute the code since I run into the following error that I don't know how to fix:Is there a workaround? Right now I just try to evaluate an empty main function:
I also have a few other questions:
format!("let read_ptr: *const MiriReturn = {:x}", &miri_return_object);
or something like this? Would be fairly hacky though, is there a better way?The text was updated successfully, but these errors were encountered: