[Pkg-rust-maintainers] Bug#1104331: rustc: FTBFS on powerpc: bootstrap
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Tue Apr 29 08:53:53 BST 2025
Hello Jing,
On Tue, 2025-04-29 at 07:33 +0000, Jing Luo wrote:
> rustc now FTBFS on powerpc. This is a regression because it was successfully
> built on powerpc for version 1.85.0+dfsg1-1. I can reproduce this on my
> own machine but I extracted no useful info from the log and I have no
> idea why it fails. For ppc64el and ppc64 there is no such issue.
The problem is related to the linker [1]:
rustc_infer.66e38e99bf28b38a-cgu.05:(.text._RINvMsa_NtCs4NYKqhQ1Agf_12 \
rustc_errors10diagnosticNtB6_9DiagInner3newINtNtCs89UXfjHhUEy_5alloc6 \
borrow3CoweEECs8PFRmoiaWbC_11rustc_infer+0x54): relocation truncated to \
fit: R_PPC_PLTREL24 against symbol `__rust_alloc' defined in .text.__ \
rust_alloc section in /build/reproducible-path/rustc-1.85.0+dfsg3/build/ \
powerpc-unknown-linux-gnu/stage0-rustc/powerpc-unknown-linux-gnu/release/ \
deps/rustc_driver-092382079c1a3329.7j43s83wnsy8f69fwww0bqjd0.rcgu.o
rustc_infer.66e38e99bf28b38a-cgu.05:(.text._RINvMsa_NtCs4NYKqhQ1Agf \
_12rustc_errors10diagnosticNtB6_9DiagInner3newINtNtCs89UXfjHhUEy_5alloc6borrow3 \
CoweEECs8PFRmoiaWbC_11rustc_infer+0xf4): relocation truncated to fit: R_PPC_PLTREL24 \
against symbol `_Unwind_Resume@@GCC_3.0' defined in .text section in /usr/lib/gcc/ \
powerpc-linux-gnu/14/../../../powerpc-linux-gnu/libgcc_s.so.1
The issue does not occur when building rustc 1.85.0 with version 1.84.0 but
only when building 1.85.0 with 1.85.0, so I assume it's a regression between
1.84.0 and 1.85.0.
Adrian
> [1] https://buildd.debian.org/status/fetch.php?pkg=rustc&arch=powerpc&ver=1.85.0%2Bdfsg3-1&stamp=1745669935&raw=0
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
More information about the Pkg-rust-maintainers
mailing list