🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #2729

Bug#1153055: arb: FTBFS on non-x86: gcc: error: unrecognized command-line option '-msse3'

#2729
From: Cheng Li
Date: Mon, 09 Nov 2026 12:40
63 lines
5411 bytes
Control: tags -1 + patch

The -msse3 flag is only the first symptom. The bundled RAxML 8.2.3 under
GDE/RAxML8 and GDE/SATIVA has no non-x86 build path at all, for two separate
reasons:

  Makefile.PTHREADS.gcc        -msse
  Makefile.SSE3.PTHREADS.gcc   -D__SIM_SSE3 -msse3
  Makefile.AVX.PTHREADS.gcc    -D__SIM_SSE3 -msse3 -D__AVX, plus -mavx per file

and axml.c itself:

  #if ! (defined(__ppc) || defined(__powerpc__) || defined(PPC))
  #include <xmmintrin.h>
  #endif

So every architecture except PowerPC pulls in an x86 intrinsics header. Just
dropping the SSE3 and AVX variants would not help: the generic PTHREADS variant
passes -msse and compiles the same axml.c.

Both directories are new in 7.0. In 6.0.6 GDE/ contained neither RAxML8 nor
SATIVA, and 6.0.6-8 built on arm64, armhf, i386, riscv64 and s390x; 7.0+ds-1 is
built on amd64 only. So restricting them to x86 does not take away anything
that ever worked on those architectures.

GDE/Makefile already provides the mechanism for this:

  # Allow disabling build of packages individually via environment variable
  ARB_BUILD_SKIP_PKGS?=""

so the fix needs no patch to upstream code, only debian/rules:

--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,16 @@
     ARB_64:=0
 endif
 
+# The bundled RAxML 8.2.3 in GDE/RAxML8 and GDE/SATIVA only builds on x86:
+# axml.c includes <xmmintrin.h> on every architecture except PowerPC, and all
+# three build variants pass -msse, -msse3 or -mavx. Skip both on every other
+# architecture, using the mechanism GDE/Makefile already provides. Neither
+# directory existed in 6.0.6, which built on arm64, armhf, i386, riscv64 and
+# s390x, so nothing that used to work is lost.
+ifeq (,$(filter $(DEB_HOST_ARCH_CPU),i386 amd64))
+    export ARB_BUILD_SKIP_PKGS = RAxML8 SATIVA
+endif
+
 LD_LIBRARY_PATH := $(ARBHOME)/lib:$(LD_LIBRARY_PATH)
 PATH := $(ARBHOME)/bin:$(PATH)
 LC_ALL := C

What I have checked: that the filter-out in GDE/Makefile does remove both
.dummy targets for ARB_BUILD_SKIP_PKGS="RAxML8 SATIVA" under GNU make 4.4.1,
and that DEB_HOST_ARCH_CPU resolves to i386 and amd64 on those two and to
riscv64, arm64, arm and s390x elsewhere, so the condition selects the intended
set. I have not run a full arb build on a non-x86 architecture, so the patch is
verified at the build-system level only. It cannot regress those architectures,
since arb currently fails there outright.

One caveat: this will not restore i386 by itself. i386 fails earlier, for an
unrelated reason in CORE/arb_progress.h that affects the 32-bit architectures
only, which I am reporting separately.
Technical Details
Message-ID: <NXwPf-aOve-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <NVQfn-9RzH-9@gated-at.bofh.it> <NVQfn-9RzH-9@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Cheng Li <shiptux@gmail.com>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1153055: arb: FTBFS on non-x86: gcc: error: unrecognized command-line option '-msse3'
Date: Mon, 09 Nov 2026 13:40:01 +0100
Message-ID: <NXwPf-aOve-5@gated-at.bofh.it>
References: <NVQfn-9RzH-9@gated-at.bofh.it> <NVQfn-9RzH-9@gated-at.bofh.it>
X-Original-To: 1153055@bugs.debian.org
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Mon Nov  9 12:35:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.547
Reply-To: Cheng Li <shiptux@gmail.com>, 1153055@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-med-packaging@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1153055
X-Debian-Pr-Package: src:arb
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: arb
X-Gm-Message-State: APuU4Z+7HqVENODIyqndFdHxcREm/bGulzqIKSWV6v2yNb/k0u751gT+
	vn17sD3lA+kOuUZeMB7ykSHXPcjylP/Os2P0ElOUAyTqJ9je/D/aIBgd7URbOgaw
X-Gm-Gg: AYBFou1bdjIOKsMP7xmSDd2fvqb3TB02V1WgtmNFTY0glm5pMjKd7a7O9/vGeHZq8JS
	k8JKcZirNJ7QB+NwpE+j8DYBohJSvW3FsPQ1fAO4CfWb3cYOjPmN7qYEIrtT9NYAZf8TTSLxKEb
	FGQCcLHkIojsqhkdpxD6RdOy6RIKjvdyq9QSBkhAM37q2iSPyZ62SB2f/DTkcuc4zVsXZm37ex7
	fE6WwW9FZW/gnsVH+Ym8FcaNndQ4eTnt0MOJv91jP8X3HUy+a3FtvZ2LiHlno1PI8irJwkt2y9K
	/Sr/q/et623WzUwsab/M7kBXVSMLR5AfszMVDmrY8U+wEQheq0PS57vLGoMMRyadosyDCMPkHP8
	a3A4d9I87xkZynTHUEEDno7WzcgSZdSTsQcclG5tZVUpdBbo/p+G5AUC6gc3MVcOvZ+ZlBtFBO+
	plKi38EoR4ZziYVXMyl0hOJ1F2jErCswHvfHDWNivx/YSFvKU7Q8pb8uQAnDwk8IYKu345ADDP/
	wJSNcjInn5gqXvm/C36/iJoB5zEKmTw0KvoBzVilruzfRUn4RZyCt3G1TVVuWCQqbbiuNKSeCL3
	6YNW8yr0mCHIMU4UiukqnDITFzOAL1etH+7AHgxOb2vDVJxBvgLfUrHnIENXmPT5FRe171J2C/V
	EHydAkONORfE7aaL66LFPRvc2SNVVow==
X-Received: by 2002:a05:6808:2396:b0:4d7:2721:cfb0 with SMTP id 5614622812f47-568143850bbmr2612313b6e.31.1794227544349;
        Mon, 09 Nov 2026 04:32:24 -0800 (PST)
X-Mailer: git-send-email 2.47.3
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/837684
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 63
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon,  9 Nov 2026 21:32:11 +0900
X-Original-Message-ID: <20261109123215.3849105-1-shiptux@gmail.com>
X-Original-References: <auubcLW4Vg7doX1z@ramacher.at> <auubcLW4Vg7doX1z@ramacher.at>