-
Notifications
You must be signed in to change notification settings - Fork 384
cargo-miri does not support .json target files #2053
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
I know basically nothing about custom target JSON files so I guess they are not supported, probably? But it looks like they are unsupported by xargo and hence by extension also unsupported by Miri. A better error would indeed be nice; I am not sure what the best way would be to detect that situation though since the cargo-miri wrapper that invokes xargo doesn't know anything about targets. |
This comment was marked as resolved.
This comment was marked as resolved.
We could probably look for a Line 432 in fb01df5
They did that, |
Why does miri use xargo, instead of say, |
If someone can figure out how to build reusable sysroots with |
Status update: we are not using xargo any more, we are using https://github.com/RalfJung/rustc-build-sysroot. However that does not support target json files either. so this is probably blocked on RalfJung/rustc-build-sysroot#4. |
support using a JSON target file Fixes #2053
support using a JSON target file Fixes #2053
support using a JSON target file Fixes rust-lang/miri#2053
rustc 1.61.0-nightly (76d770ac2 2022-04-02)
When I run
cargo miri test
with a custom target I get an errorIf I run
cargo miri test --target ./x86_64-os.json
I getsame error if I try this
cargo miri test --target x86_64-os.json
then I tried a fully qualified path
cargo miri test --target /home/budd/Code/os/x86_64-os.json
and it said
finally I tried without the .json as
cargo miri test --target /home/budd/Code/os/x86_64-os
and got a panicIf custom target files are not supported by miri I think the error should be more clear, especially the first one that just said file not valid.
Also this target works perfectly fine without miri.
the x86_64-os.json is bellow.
The text was updated successfully, but these errors were encountered: