On Wed, 14 Jan 2026 10:49:50 +0100 John Paul Adrian Glaubitz wrote:
> Hello Dandan,
>
> On Wed, 2026-01-14 at 16:12 +0800, zhangdandan wrote:
> > Need to add lld dependency in d/control.
> >
> > diff --git a/debian/control b/debian/control
> > index 77953ea..cec1e37 100644
> > --- a/debian/control
> > +++ b/debian/control
> > @@ -13,6 +13,7 @@ Build-Depends:
> > binutils-gold [armel armhf],
> > gcc,
> > g++,
> > + lld,
> > pkg-config,
> > ghc:native (>= 9.6),
> > hadrian:native (>= 9.10.3~) ,
>
> Your patch is not correct as it add "lld" as an unconditional build
dependency to the ghc
> package. However, lld is only available on a limited set of
architectures rendering the
> ghc package BD-Uninstallable on the architectures without lld support.
>
Yes, I'm a bit anxious. I didn't see that the original patch already
included lld
should be lld [loong64].
Now when we install lld, lld-21 will be "Installing dependencies", as
follows,
```
root@Debian-Sid:/home/ghc-9.10.3# apt install lld
Installing:
lld
Installing dependencies:
lld-21
Summary:
Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 18
Download size: 1335 kB
Space needed: 6157 kB / 1480 GB available
Continue? [Y/n] y
......
```