Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap fails to find codegen-backends folder #123331

Closed
onur-ozkan opened this issue Apr 1, 2024 · 0 comments · Fixed by #123373
Closed

bootstrap fails to find codegen-backends folder #123331

onur-ozkan opened this issue Apr 1, 2024 · 0 comments · Fixed by #123373
Labels
A-contributor-roadblock Area: Makes things more difficult for new contributors to rust itself A-download-rustc Area: Related to the `rust.download-rustc` build option C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@onur-ozkan
Copy link
Member

onur-ozkan commented Apr 1, 2024

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
@onur-ozkan onur-ozkan added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. labels Apr 1, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 1, 2024
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 1, 2024
@onur-ozkan onur-ozkan added A-contributor-roadblock Area: Makes things more difficult for new contributors to rust itself A-download-rustc Area: Related to the `rust.download-rustc` build option labels Apr 14, 2024
@bors bors closed this as completed in f3a68fb Apr 14, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Apr 14, 2024
Rollup merge of rust-lang#123373 - onur-ozkan:skip-codegen, r=Mark-Simulacrum

skip Codegen{GCC,Cranelift} when using CI rustc

CI rustc uses the default codegen backend, therefore we can't run `CodegenGCC` and `CodegenCranelift` tests when using it.

cc `@bjorn3` (to make sure I am not doing anything wrong)

Fixes rust-lang#123331
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-contributor-roadblock Area: Makes things more difficult for new contributors to rust itself A-download-rustc Area: Related to the `rust.download-rustc` build option C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants