-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
std not found when trying to cross-compile tools #85320
Comments
std is actually already built for the target architecture, the build still fails if i build it explicitly beforehand. It would seem that the correct paths are not being passed to the cross-compile of the tool. |
It's a bit weird that bootstrap says |
Oh, probably cargo is trying to build the dependencies of the build-scripts on the host platform, that's why diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs
index 3fc3b68fd..2622b0785 100644
--- a/src/bootstrap/tool.rs
+++ b/src/bootstrap/tool.rs
@@ -52,7 +52,10 @@ impl Step for ToolBuild {
let is_optional_tool = self.is_optional_tool;
match self.mode {
- Mode::ToolRustc => builder.ensure(compile::Rustc { compiler, target }),
+ Mode::ToolRustc => {
+ builder.ensure(compile::Std { compiler, target: compiler.host });
+ builder.ensure(compile::Rustc { compiler, target });
+ },
Mode::ToolStd => builder.ensure(compile::Std { compiler, target }),
Mode::ToolBootstrap => {} // uses downloaded stage0 compiler libs
_ => panic!("unexpected Mode for tool build"), to see if it fixes the problem. |
…r=Mark-Simulacrum bootstrap: ensure host std when cross-compiling tools, fixes rust-lang#85320
…laumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#85275 (Move `std::memchr` to `sys_common`) - rust-lang#85326 (bootstrap: ensure host std when cross-compiling tools, fixes rust-lang#85320) - rust-lang#85375 (Fix missing lifetimes diagnostics after rust-lang#83759) - rust-lang#85507 (Extend escape key check) - rust-lang#85509 (Prevent tab title to "null" if the URL is a search one) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
We are adding rustfmt and clippy to the Debian package. Previously, with just rustc without these tools, cross-compiling works fine. When adding tools however, the cross-compile of these tools fails.
For example cross-compiling from x86_64 to armv5te:
The text was updated successfully, but these errors were encountered: