Opened 10 months ago
Closed 10 months ago
#21388 closed enhancement (fixed)
rustc-1.86.0
| Reported by: | zeckma | Owned by: | Xi Ruoyao |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.4 |
| Component: | BOOK | Version: | git |
| Severity: | normal | Keywords: | |
| Cc: |
Description
New minor version.
Change History (7)
comment:3 by , 10 months ago
It appears that we need lld = false under [rust], or else the build system will try to build lld when it is not present on the system, which isn't built in BLFS LLVM.
comment:4 by , 10 months ago
Note that a libc.a stripped with strip --strip-unneeded (as what the LFS book does) causes static-linked Rust programs to crash on startup, leading to multiple test failures. We are still investigating if this is a bug in *something* (maybe glibc, rust, or binutils) or we should just change the stripping instruction.
comment:5 by , 10 months ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:7 by , 10 months ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed r12.3-448-g108772e71a and r12.3-449-ga9f1fbf17a.
Note:
See TracTickets
for help on using tickets.

I've been testing this. Seems like the patch is no longer necessary. Every hunk fails and files that would be created already exists. However, a problem emerges after stage0 artifacts are built, as the build system at the start of the sysroot stage1 step attempts to configure and build LLVM lld. The build process fails.
This potentially seems related: https://github.com/rust-lang/rust/commit/ab5446c9923090d5ebe33aeea559d9c9fa05a1ad
I will try to use
use-lld = "self-contained", or another value, and see if this makes any difference.