Skip to content

cross-built compiler doesn't have the standard library for the target in its sysroot #77352

Open
@glandium

Description

@glandium

This is actually a followup to #76733, because somehow I overlooked that when checking the fix for that issue worked.

After building the compiler with the following config.toml:

[build]
build = "x86_64-apple-darwin"
host = ["aarch64-apple-darwin"]
target = ["aarch64-apple-darwin"]

you end up with a compiler without any of the libstd, etc. rlibs, meaning that using the compiler fails with:

error[E0463]: can't find crate for `std`

The same is true when building with the following config.toml on linux:

[build]
build = "x86_64-unknown-linux-gnu"
host = ["i686-unknown-linux-gnu"]
target = ["i686-unknown-linux-gnu"]

Cc @Mark-Simulacrum

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-crossArea: Cross compilationC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions