Git Product home page Git Product logo

Comments (5)

Nilstrieb avatar Nilstrieb commented on July 21, 2024

somehow Miri searches for its sysroot in stage0-sysroot instead of its own built sysroot?

from rust.

Nilstrieb avatar Nilstrieb commented on July 21, 2024

When executing Miri:

[src/tools/miri/src/bin/miri.rs:359:5] std::env::var("MIRI_SYSROOT") = Ok(
    "/home/nora/projects/rust/build/x86_64-unknown-linux-gnu/miri-sysroot",
)
[src/tools/miri/src/bin/miri.rs:360:5] std::env::args().collect::<Vec<_>>() = [
    "build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/miri",
    "--target",
    "x86_64-unknown-linux-gnu",
    "uwu2.rs",
]

I thought the sysroot was passed to the process with --sysroot, but I cannot find such an argument... how exactly does it find stage0-sysroot from this... I don't really understand how that works. But this may help.

from rust.

Nilstrieb avatar Nilstrieb commented on July 21, 2024

I see, it gets the sysroot because librustc_driver.so is in stage0-sysroot. Slightly strange, that sysroot is not really one it can use. Why is it linked from there? But either way, the sysroot we want to use for Miri here is an entirely different one that needs to be override manually. How did that work previously?

from rust.

Nilstrieb avatar Nilstrieb commented on July 21, 2024

oh lol, this was almost certainly broken by rust-lang/miri#3411, in which you even specifically mentioned x.py run, looks like you forgot about it :D

from rust.

RalfJung avatar RalfJung commented on July 21, 2024

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.