Skip to content

rustbuild doesn't clean out enough when recompiling #38746

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

These two errors, which I believe are related, have started happening with rustbuild recently. I think the second is sometimes caused by the first after trying to avoid cleaning out everything; but since this is all nondeterministic from what I can tell I've included it in case it helps diagnose the problem.

error[E0523]: found two different crates with name `rustc_trans` that are not distinguished by differing `-C metadata`. This will result in symbol conflicts between the two.
error[E0460]: found possibly newer version of crate `rustc_trans` which `rustdoc` depends on
  --> src/rustc/rustdoc.rs:13:1
   |
13 | extern crate rustdoc;
   | ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: perhaps that crate needs to be recompiled?
   = note: crate `rustc_trans` path #1: /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_trans-04b9ea62d71b4818.so
   = note: crate `rustdoc` path #1: /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustdoc-6a966222823ef7f9.so

cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    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