Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1271058

Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted]

From Adrian Bunk <bunk@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted]
Date 2025-11-21 16:10 +0100
Message-ID <LTAVP-eESV-7@gated-at.bofh.it> (permalink)
References (2 earlier) <LrACe-cXTX-25@gated-at.bofh.it> <LoEM1-aXdU-9@gated-at.bofh.it> <LrGRj-d1VY-5@gated-at.bofh.it> <LoEM1-aXdU-9@gated-at.bofh.it> <LrGRj-d1VY-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Sep 05, 2025 at 05:42:31PM +0200, Emanuele Rocca wrote:
> Hi,
> 
> On 2025-09-05 11:58, Adrian Bunk wrote:
> > +ifneq (,$(filter $(DEB_HOST_ARCH),amd64 ppc64el riscv64 s390x sparc64))
> > +  MOLD=-DCMAKE_CXX_FLAGS="-fuse-ld=mold"
> > +endif
> 
> This unsets all CXXFLAGS!

Ouch, thanks for spotting.

> One could keep the flags with -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fuse-ld=mold",
> but it seems cleaner to just set the following, without passing
> -DCMAKE_CXX_FLAGS at all.
> 
> DEB_CXXFLAGS_MAINT_APPEND='-fuse-ld=mold'

Updated patch below.

This got the build time on riscv64 down from 1 week to 1 day with GCC 14
(both are higher with GCC 15 for unrelated reasons).

cu
Adrian


diff -Nru trilinos-16.1.0/debian/control trilinos-16.1.0/debian/control
--- trilinos-16.1.0/debian/control	2025-08-28 11:44:10.000000000 +0300
+++ trilinos-16.1.0/debian/control	2025-08-28 11:45:06.000000000 +0300
@@ -19,6 +19,7 @@
  liblapack-dev,
  libmumps-dev (>= 4.10),
  libptscotch-dev (>= 6.0.3),
+ mold [amd64 ppc64el riscv64 s390x sparc64],
  openmpi-bin,
  zlib1g-dev
 Build-Depends-Indep: bc,
diff -Nru trilinos-16.1.0/debian/rules trilinos-16.1.0/debian/rules
--- trilinos-16.1.0/debian/rules	2025-08-28 11:44:30.000000000 +0300
+++ trilinos-16.1.0/debian/rules	2025-08-28 11:45:06.000000000 +0300
@@ -75,6 +75,11 @@
 override_dh_auto_configure: configure-stamp
 
 
+# mold is much faster but doesn't work everywhere, see #1112274
+ifneq (,$(filter $(DEB_HOST_ARCH),amd64 ppc64el riscv64 s390x sparc64))
+  export DEB_CXXFLAGS_MAINT_APPEND+=-fuse-ld=mold
+endif
+
 # The below configuration selectively enables packages instead of first
 # enabling all via
 # ```

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Adrian Bunk <bunk@debian.org> - 2025-11-21 16:10 +0100
  Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Graham Inggs <ginggs@debian.org> - 2025-11-22 13:10 +0100
    Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Adrian Bunk <bunk@debian.org> - 2025-11-22 21:30 +0100
      Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Graham Inggs <ginggs@debian.org> - 2025-11-22 22:00 +0100
        Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Adrian Bunk <bunk@debian.org> - 2025-11-24 05:30 +0100
          Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Graham Inggs <ginggs@debian.org> - 2025-11-25 17:50 +0100
            Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Adrian Bunk <bunk@debian.org> - 2025-11-26 07:20 +0100
              Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Matthias Maier <tamiko+debian@43-1.org> - 2025-11-26 19:20 +0100
                Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Graham Inggs <ginggs@debian.org> - 2025-12-14 13:50 +0100
                Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Adrian Bunk <bunk@debian.org> - 2025-12-31 15:00 +0100
          Bug#1112274: trilinos: FTBFS on arm64: collect2: fatal error: ld terminated with signal 6 [Aborted] Emanuele Rocca <ema@debian.org> - 2025-11-26 12:10 +0100

csiph-web