Skip to content

bootstrap fails to find codegen-backends folder #123331

Closed
@onur-ozkan

Description

@onur-ozkan

When download-rustc is enabled, using multiple codegen backends in build configuration (rust.codegen-backends= ["llvm", "gcc"]) leads bootstrap to fail with the following error:

$ x --stage 2 test
...
...
Testing GCC stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished `release` profile [optimized] target(s) in 0.00s
     Running `/home/nimda/devspace/.other/rustc-builds/build/x86_64-unknown-linux-gnu/stage2-codegen/x86_64-unknown-linux-gnu/release/y test --use-system-gcc --use-backend gcc --out-dir /home/nimda/d
evspace/.other/rustc-builds/build/x86_64-unknown-linux-gnu/stage2-tools/cg_gcc --release --mini-tests --std-tests`
Using system GCC
[BUILD] mini_core
error: failed to find a `codegen-backends` folder in the sysroot candidates:
       * /home/nimda/devspace/.other/rustc-builds/build/x86_64-unknown-linux-gnu/stage2
       * /home/nimda/devspace/.other/rustc-builds/build/x86_64-unknown-linux-gnu/stage2

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustA-download-rustcArea: The `rust.download-rustc` build option.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