#1154021 deal.ii: link with lld on arm64

Package:
src:deal.ii
Source:
src:deal.ii
Submitter:
Emanuele Rocca
Date:
2026-11-15 09:27:02 UTC
Severity:
normal
Tags:
#1154021#5
Date:
2026-11-15 09:24:55 UTC
From:
To:
Please use lld on arm64 for linking instead of GNU ld.

GNU ld takes longer than 2.5 hours on a fairly fast box, spending a
significant amount of time in _bfd_aarch64_erratum_843419_branch_to_stub.
For this reason, the package has been failing to build on arm64 lately.

As a workaround while we investigate the GNU ld issue, lld gets the job
done. Adding a build-depend on lld is sufficient, the build system of
deal.ii detects lld and uses it instead of GNU ld.
---
 debian/changelog | 6 ++++++
 debian/control   | 1 +
 2 files changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ae53da87..faa76baa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+deal.ii (9.8.0-5) UNRELEASED; urgency=medium
+
+  * Link with lld on arm64.
+
+ -- Emanuele Rocca <ema@debian.org>  Fri, 13 Nov 2026 20:18:01 +0100
+
 deal.ii (9.8.0-4) unstable; urgency=medium

   * Remove Epetra dependent test
diff --git a/debian/control b/debian/control
index 71feb1dc..f7dfc894 100644
--- a/debian/control
+++ b/debian/control
@@ -38,6 +38,7 @@ Build-Depends: cmake,
                libsundials-dev (>= 5.7.0),
                libtbb-dev,
                libvtk9-dev,
+               lld [arm64],
                mpi-default-dev,
                numdiff,
                petsc-dev,
-- 
2.43.0