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`

Adrian Bunk <[email protected]> Sat, 17 Jan 2026 02:19:11 +0200
Newsgroups gmane.linux.debian.devel.dpkg.bugs
Message-ID <aWrVf24RJvYoBSto__36753.2500926004$1768609291$gmane$org@localhost>
Control: affects -1 src:gtk-d src:mustache-d src:mir-core src:diet-ng src:glib-d

On Sat, Jan 17, 2026 at 12:00:40AM +0100, Guillem Jover wrote:
>...
> Also it's not clear to me whether this would affect all D packages or
> just a few ones, for example (given the error message) perhaps only the
> ones using meson as build system, where I see it might be trying to
> infer the direct linker calls based on the gcc calls?
>...

It is not limited to packages using meson:
https://buildd.debian.org/status/fetch.php?pkg=gtk-d&arch=arm64&ver=3.11.0-2%2Bb1&stamp=1768580162&raw=0

In slightly more positive news, it seems there is already some 
infrastructure for gcc->ldc flag translation in use:
https://sources.debian.org/src/dh-dlang/0.6.10/gcc-to-ldc-flags.py

> Thanks,
> Guillem

cu
Adrian