Skip to content

error: manifest path .../src/tools/cargo/Cargo.toml does not exist #119720

Open
@th0ma7

Description

@th0ma7

I tried this code:

./configure --set build.target=powerpc-unknown-linux-gnuspe
./x build
Building bootstrap
    Finished dev [unoptimized] target(s) in 0.08s
error: manifest path `/home/spksrc/qoriq-debug/spksrc/toolchain/syno-qoriq-6.2.4/work/rust-1.75.0/src/tools/cargo/Cargo.toml` does not exist
thread 'main' panicked at src/core/metadata.rs:86:31:
command did not execute successfully: RUSTC_BOOTSTRAP="1" "/home/spksrc/qoriq-debug/spksrc/toolchain/syno-qoriq-6.2.4/work/rust-1.75.0/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "metadata" "--format-version" "1" "--no-deps" "--manifest-path" "/home/spksrc/qoriq-debug/spksrc/toolchain/syno-qoriq-6.2.4/work/rust-1.75.0/src/tools/cargo/Cargo.toml"
expected success, got: exit status: 101

Behavior somehow changed recently where src/tools/cargo directory is now empty in both online tar.gz source file as well as using a git clone https://github.com/rust-lang/rust.git, thus failing at build time due to missing Cargo.toml from the cargo directory.

This looks similar to #115041 whereas invoking submodule init & update does populate the cargo directory at the expense of more than 4GB extra storage (not mentionning the build overhead time).

git submodule init
git submodule update

Note that this wasn't hapening using git clone as of last october.

EDIT: it seems that using git submodule init && git submodule update src/tools/cargo does the trick at populating only that subdirectory.

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