Skip to content

cargo build-dir incompatibility: no output generated for "lib…" "rmeta" #145107

@kornelski

Description

@kornelski

Summary

Bootstrap searches target_dir for compiled dependencies, but when build-dir feature is enabled, the rmeta files are stored elsewhere.

Command used

./x build clippy

My ~/.cargo/config.toml contains:

[build] build-dir = "/Users/me/Library/Caches/Cargo/{workspace-path-hash}" [unstable] build-dir = true

Expected behaviour

It should support the build-dir setting, or at least disable it.

Actual behaviour

no output generated for "libunicode_ident-61f54578ab0e0070" "rmeta" stack backtrace: 0: __rustc::rust_begin_unwind at /rustc/788da80fcfcef3f34c90def5baa32813e39a1a41/library/std/src/panicking.rs:697:5 1: core::panicking::panic_fmt at /rustc/788da80fcfcef3f34c90def5baa32813e39a1a41/library/core/src/panicking.rs:75:14 2: bootstrap::core::build_steps::compile::run_cargo at ./src/bootstrap/src/core/build_steps/compile.rs:2505:21 3: <bootstrap::core::build_steps::compile::Rustc as bootstrap::core::builder::Step>::run at ./src/bootstrap/src/core/build_steps/compile.rs:1138:9 4: bootstrap::core::builder::Builder::ensure at ./src/bootstrap/src/core/builder/mod.rs:1706:36 5: <bootstrap::core::build_steps::compile::Assemble as bootstrap::core::builder::Step>::run at ./src/bootstrap/src/core/build_steps/compile.rs:2155:36 6: bootstrap::core::builder::Builder::ensure at ./src/bootstrap/src/core/builder/mod.rs:1706:36 7: bootstrap::core::builder::Builder::compiler at ./src/bootstrap/src/core/builder/mod.rs:1341:14 8: bootstrap::core::build_steps::tool::RustcPrivateCompilers::build_compiler_from_stage at ./src/bootstrap/src/core/build_steps/tool.rs:1384:21 9: bootstrap::core::build_steps::tool::RustcPrivateCompilers::new at ./src/bootstrap/src/core/build_steps/tool.rs:1343:30 10: <bootstrap::core::build_steps::tool::Clippy as bootstrap::core::builder::Step>::make_run at ./src/bootstrap/src/core/build_steps/tool.rs:1445:32 11: bootstrap::core::builder::StepDescription::maybe_run at ./src/bootstrap/src/core/builder/mod.rs:519:13 12: bootstrap::core::builder::StepDescription::run at ./src/bootstrap/src/core/builder/mod.rs:651:22 13: bootstrap::core::builder::Builder::run_step_descriptions at ./src/bootstrap/src/core/builder/mod.rs:1314:9 14: bootstrap::core::builder::Builder::execute_cli at ./src/bootstrap/src/core/builder/mod.rs:1294:14 15: bootstrap::Build::build at ./src/bootstrap/src/lib.rs:767:25 16: bootstrap::main at ./src/bootstrap/src/bin/main.rs:107:11 

Bootstrap configuration (bootstrap.toml)

None

config.toml is

profile = "tools" change-id = 132494 [rust] debug = true debug-logging = true debug-assertions = false

Operating system

macOS 15.6

HEAD

2886b36

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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