Bug#1125715: diet-ng: FTBFS on arm64: Unable to detect linker for compiler `ldc2 -L=--version /tmp/tmpp57y3ut8.d -L=-z -L=relro -mbranch-protection=standard -release -wi -g -O2`
Guillem Jover <[email protected]> Sat, 17 Jan 2026 14:32:00 +0100
| Newsgroups | gmane.linux.debian.devel.dpkg.bugs |
|---|---|
| Message-ID | <aWuPUNcttPbFrk28__26008.789152705$1768656813$gmane$org@thunder.hadrons.org> |
Hi! On Sat, 2026-01-17 at 11:17:17 +0100, Emanuele Rocca wrote: > On 2026-01-16 08:51, Guillem Jover wrote: > > On Fri, 2026-01-16 at 17:58:40 +0100, Emanuele Rocca wrote: > > > It seems that dpkg-buildflags erroneously started adding to LDFLAGS > > > -mbranch-protection=standard, while that is not a linker argument. > > > > Hmm, according to #1115292 (commit cdf5f5da0e0cb6f9f4d51e93fd9583bd578c252f) > > this is needed to avoid warnings from the compiler. Was that analysis > > wrong somehow? > > I think the analysis was incorrect, yes. The -mbranch-protection flag is > for the compiler only. Ok, thanks! Given the fallout of this change, I'm planning on reverting it with a release that I'll try to upload later today. If information changes we can always revisit this in the future. Thanks, Guillem