Description
I am experimenting with using cross to check that Miri builds for various targets. Miri depends on rustc-dev and it uses a custom toolchain (CROSS_CUSTOM_TOOLCHAIN=1
). I use rustup-toolchain-install-master to install a toolchain that has rust-std-nightly-i686-unknown-linux-gnu and rustc-dev-nightly-i686-unknown-linux-gnu (this requires a patched rustup-toolchain-install-master). I would expect that I can just cross check --target i686-unknown-linux-gnu
after this, but that does not work -- rustc cannot find the compiler crates:
error[E0463]: can't find crate for `tracing_attributes` which `tracing` depends on
--> src/lib.rs:53:1
|
53 | extern crate tracing;
| ^^^^^^^^^^^^^^^^^^^^^ can't find crate
error[E0463]: can't find crate for `rustc_macros` which `rustc_abi` depends on
--> src/lib.rs:56:1
|
56 | extern crate rustc_abi;
| ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
|
= help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
error[E0463]: can't find crate for `derive_where` which `rustc_ast` depends on
--> src/lib.rs:58:1
|
58 | extern crate rustc_ast;
| ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error[E0463]: can't find crate for `rustc_abi`
--> src/lib.rs:59:1
|
59 | extern crate rustc_attr_data_structures;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
|
= help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
error[E0463]: can't find crate for `rustc_data_structures`
--> src/lib.rs:60:1
|
60 | extern crate rustc_const_eval;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
|
= help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
See here for the full build log and rust-lang/miri#4421 for the CI setup that produced it.
Is it possible that cross does something like copying the toolchain into the docker container for the cross-check, and that it forgets to copy the rustc-dev component as part of this?