Skip to content

Dist analysis step panics when trying to copy save-analysis #61703

@petrhosek

Description

@petrhosek
Contributor

We're seeing the following error on our builders that are building Rust toolchain for Fuchsia:

Dist analysis
image_src: "/b/s/w/ir/k/recipe_cleanup/rust9mc0u9/build/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-linux-gnu/release/deps/save-analysis", dst: "/b/s/w/ir/k/recipe_cleanup/rust9mc0u9/build/build/tmp/dist/rust-analysis-nightly-x86_64-unknown-linux-gnu-image/lib/rustlib/x86_64-unknown-linux-gnu/analysis"
thread 'main' panicked at 'fs::read_dir(src) failed with No such file or directory (os error 2)', src/bootstrap/lib.rs:1217:18

The save-analysis directory is entirely missing for the host target. I've been debugging this and I believe the problem is that for host target, we don't build std in stage2, we always uplift it from stage1, and therefore we never generate save-analysis in stage2. We should probably uplift save-analysis from stage1 as well.

Activity

Mark-Simulacrum

Mark-Simulacrum commented on Jun 9, 2019

@Mark-Simulacrum
Member

Seems reasonable, I think - happy to review a PR or if you could give a specific set of reproduction instructions (ideally ones that would work on linux).

added a commit that references this issue on Jun 11, 2019
4f3cd3c
added 2 commits that reference this issue on Jun 12, 2019
d61e2f2
4cbae09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @petrhosek@Mark-Simulacrum

      Issue actions

        Dist analysis step panics when trying to copy save-analysis · Issue #61703 · rust-lang/rust