Skip to content

x.py build fails with download-ci-llvm = true #80086

Description

@jyn514

I just started running into this recently - maybe llvm-dwp stopped being packaged recently? I think the fix is just to make it optional in bootstrap.

$ x.py build
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
thread 'main' panicked at 'src.symlink_metadata() failed with No such file or directory (os error 2)', src/bootstrap/lib.rs:1216:24
Backtrace
stack backtrace:
   0: rust_begin_unwind
             at /rustc/21dea46d8347c8b4117c5567949703f0fbb51649/library/std/src/panicking.rs:495:5
   1: std::panicking::begin_panic_fmt
             at /rustc/21dea46d8347c8b4117c5567949703f0fbb51649/library/std/src/panicking.rs:437:5
   2: bootstrap::Build::copy
             at ./src/bootstrap/lib.rs:1216:24
   3: <bootstrap::compile::Assemble as bootstrap::builder::Step>::run
             at ./src/bootstrap/compile.rs:990:13
   4: bootstrap::builder::Builder::ensure
             at ./src/bootstrap/builder.rs:1474:23
   5: bootstrap::builder::Builder::compiler
             at ./src/bootstrap/builder.rs:578:9
   6: <bootstrap::compile::Std as bootstrap::builder::Step>::make_run
             at ./src/bootstrap/compile.rs:48:23
   7: bootstrap::builder::StepDescription::maybe_run
             at ./src/bootstrap/builder.rs:179:13
   8: bootstrap::builder::StepDescription::run
             at ./src/bootstrap/builder.rs:200:25
   9: bootstrap::builder::Builder::run_step_descriptions
             at ./src/bootstrap/builder.rs:570:9
  10: bootstrap::builder::Builder::execute_cli
             at ./src/bootstrap/builder.rs:561:9
  11: bootstrap::Build::build
             at ./src/bootstrap/lib.rs:509:13
  12: bootstrap::main
             at ./src/bootstrap/bin/main.rs:30:5
  13: core::ops::function::FnOnce::call_once
             at /rustc/21dea46d8347c8b4117c5567949703f0fbb51649/library/core/src/ops/function.rs:227:5

A workaround is touch build/x86_64-unknown-linux-gnu/ci-llvm/bin/llvm-dwp.

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    on Dec 16, 2020
  2. jyn514 commented on Dec 16, 2020

    @jyn514
    MemberAuthor

    git merge-base HEAD master reports 2ba7ca2.

  3. jyn514 commented on Dec 16, 2020

    @jyn514
    MemberAuthor

    This is likely a regression from #77117, cc @davidtwco

  4. added a commit that references this issue on Dec 16, 2020
    b32e6e6
  5. added
    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
    on Dec 16, 2020
  6. tgnottingham commented on Dec 17, 2020

    @tgnottingham
    Contributor

    Hitting this despite doing rm -r build and updating to latest. The workaround works though.

  7. jyn514 commented on Dec 17, 2020

    @jyn514
    MemberAuthor

    Yup, this still fails for me after b32e6e6.

  8. reopened this on Dec 17, 2020
  9. Mark-Simulacrum commented on Dec 17, 2020

    @Mark-Simulacrum
    Member

    Oh, we forgot to bump the stamp file so we're not downloading a fresh copy.

  10. Mark-Simulacrum commented on Dec 17, 2020

    @Mark-Simulacrum
    Member
  11. added a commit that references this issue on Dec 17, 2020
    d23e084
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

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions