install.sh miplaces codegen-backends directory with libdir = "/lib/something" #62496
Labels
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
opening here for visibility
original issue here rust-lang/rust-installer#93
if someone passes
libdir = "lib/rust-1.x.x"
via config.tomlinstall.sh misplaces codegen-backends directory, because
/lib
path is treated as a special case.this code here at fault:
https://github.com/rust-lang/rust-installer/blob/5afc0089f282570f2c39b4345d2706bf97e3d84b/install-template.sh#L573-L578
imagine this scenario
part of config.toml
DESTDIR=/var/tmp/portage/dev-lang/rust-1.34.2/image ./x.py install
install.sh gets
"--libdir=/var/tmp/portage/dev-lang/rust-1.34.2/image/usr/lib/rust-1.34.2"
as one of args.minimal reproducer
so the resulting
codegen-backends
gets installed into/usr/lib/rust-1.34.2/rust-1.34.2
it can't be observed on x86_64 hosts because installer replaces
lib/
, not forlib64/
this breaks rustc as it can't find
librustc_codegen_llvm-llvm.so
until it's moved to proper location.The text was updated successfully, but these errors were encountered: