-
Notifications
You must be signed in to change notification settings - Fork 13.4k
(E0603) "function run_compiler
is private" fail during building miri
#79582
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@IdrisKalp miri is only supported on nightly (and 'supported' is not really the right word - maybe 'distributed'). Since miri is maintained out of tree, when the rustc API changes, miri won't build successfully until the submodule is updated; 1.48 happened to get released while it was broken. I recommend using rustup + a nightly version of miri instead. |
Thanks for answer. Actually I'm not a user, I'm a package maintainer at PisiLinux which is a small distribution. And because of the error above, build fails at our farm. So I want to ask is there a way to disable to build miri? |
How are you building currently? It should be disabled by default. |
I'm going to go ahead and close this as a duplicate of #74709 -- we ideally wouldn't even try to build it, but otherwise it's totally fine to ignore this in build logs. |
With |
Got this with |
We pick up the latest (currently) Rust stable version, 1.48.0. miri fails to compile (even though the build succeeds) which is okay-ish. See: rust-lang/rust#79582 and rust-lang/rust#74709 for more details. It's not clear why exactly we need to specify the host as a target now, too. But I guess previously things just worked by chance. The correct thing to do is to specify `x86_64-unknown-linux` as target, too, given that we are targetting it, e.g. with `cbindgen`. Note: we could think about specifying `--host` here too, but it seems we can avoid that extra configure argument, see: rust-lang/rust#76990.
We pick up the latest (currently) Rust stable version, 1.48.0. miri fails to compile (even though the build succeeds) which is okay-ish. See: rust-lang/rust#79582 and rust-lang/rust#74709 for more details. It's not clear why exactly we need to specify the host as a target now, too. But I guess previously things just worked by chance. The correct thing to do is to specify `x86_64-unknown-linux` as target, too, given that we are targetting it, e.g. with `cbindgen`. Note: we could think about specifying `--host` here too, but it seems we can avoid that extra configure argument, see: rust-lang/rust#76990.
Platform: Linux x86_64
Distro: PisiLinux 2.1.2
Building rust 1.48.0 from source with existing rust installed on system or with a binary package from site, build throws this error.
But process still continues and build finishes. Is it important or am I missing something?
The text was updated successfully, but these errors were encountered: