Skip to content

-Zcodegen-backend no longer works on x.py installed rustc #140331

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

Open
matthiaskrgr opened this issue Apr 26, 2025 · 0 comments
Open

-Zcodegen-backend no longer works on x.py installed rustc #140331

matthiaskrgr opened this issue Apr 26, 2025 · 0 comments
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@matthiaskrgr
Copy link
Member

matthiaskrgr commented Apr 26, 2025

Summary

~/.rustup/toolchains/local-debug-assertions/bin/rustc dummy.rs -Zcodegen-backend=cranelift
error: failed to find a `codegen-backends` folder in the sysroot candidates:
       * /home/matthias/.rustup/toolchains/local-debug-assertions
       * /home/matthias/.rustup/toolchains/local-debug-assertions

Command used

RUSTFLAGS="-Zthreads=32" ./x.py  install  -j 16

Expected behaviour

it werky

Actual behaviour

it no werky :(

~/.rustup/toolchains/local-debug-assertions/bin/rustc dummy.rs -Zcodegen-backend=cranelift
error: failed to find a `codegen-backends` folder in the sysroot candidates:
       * /home/matthias/.rustup/toolchains/local-debug-assertions
       * /home/matthias/.rustup/toolchains/local-debug-assertions

Bootstrap configuration (bootstrap.toml)

change-id = 138934
[llvm]
download-ci-llvm = false
optimize = true
thin-lto = true
release-debuginfo = true
assertions = true
plugins = true
ninja = true
targets = "X86"
link-jobs = 4
cflags = "-march=native"
cxxflags = "-march=native"
ldflags = "-march=native"
[gcc]
[build]
submodules = true
extended = true
sanitizers = true
profiler = true
low-priority = true
[install]
prefix = "/home/matthias/.rustup/toolchains/local-debug-assertions"
sysconfdir = "/home/matthias/.rustup/toolchains/local-debug-assertions/etc"
[rust]
debug = true
debug-assertions = true
debug-assertions-std = true
overflow-checks = true
overflow-checks-std = true
dist-src = true
codegen-backends = ["llvm", "cranelift"]
use-lld = true
llvm-tools = true
deny-warnings = false
backtrace-on-ice = true
verify-llvm-ir = true
remap-debuginfo = true
lto = "thin"
validate-mir-opts = 3
[target.x86_64-unknown-linux-gnu]
[dist]
compression-formats = ["xz"]
compression-profile = "fast"

Operating system

Linux 6.13.8-2-MANJARO

HEAD

d3508a8

Additional context

Build Log

<log>

@matthiaskrgr matthiaskrgr added C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Apr 26, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 26, 2025
@onur-ozkan onur-ozkan removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

No branches or pull requests

3 participants