Skip to content

Miri does not figure out its sysroot at build time #61830

Closed
@RalfJung

Description

@RalfJung

The currently shipped Miri is broken, it fails to detect its sysroot because RUST_SYSROOT was not set at build time:

thread 'main' panicked at 'could not find sysroot. Either set `MIRI_SYSROOT` at run-time, or at build-time specify `RUST_SYSROOT` env var or use rustup or multirust', src/libcore/option.rs:1034:5

@oli-obk I thought bootstrap takes care of providing the env vars for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-miriArea: The miri toolC-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