Bug#1143938: highway FTBFS on x32

Adrian Bunk <[email protected]>
Newsgroups gmane.linux.debian.ports.amd64
Message-ID <178620678876.573614.10793975753937461206.reportbug__16778.3778904536$1786206936$gmane$org@localhost>
Source: highway
Version: 1.3.0-5
Severity: important
Tags: ftbfs patch
X-Debbugs-Cc: [email protected], Bastian Germann <[email protected]>, Mathieu Malaterre <[email protected]>
User: [email protected]
Usertags: x32

https://buildd.debian.org/status/fetch.php?pkg=highway&arch=x32&ver=1.3.0-5&stamp=1786174904&raw=0

...
FAILED: [code=1] CMakeFiles/logical_test.dir/hwy/tests/logical_test.cc.o 
/usr/bin/x86_64-linux-gnux32-g++ -DHWY_SHARED_DEFINE -DTOOLCHAIN_MISS_ASM_HWCAP_H -I/build/reproducible-path/highway-1.3.0 -g -O2 -ffile-prefix-map=/build/reproducible-path/highway-1.3.0=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -fcf-protection -DHWY_BROKEN_EMU128=0 -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++20 -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -DHWY_IS_TEST=1 -DGTEST_HAS_PTHREAD=1 -MD -MT CMakeFiles/logical_test.dir/hwy/tests/logical_test.cc.o -MF CMakeFiles/logical_test.dir/hwy/tests/logical_test.cc.o.d -o CMakeFiles/logical_test.dir/hwy/tests/logical_test.cc.o -c /build/reproducible-path/highway-1.3.0/hwy/tests/logical_test.cc
virtual memory exhausted: Cannot allocate memory
...


Parallelism wouldn't make a difference when the problem is the address space,
but reducing debug info works:


--- highway-1.3.0/debian/rules	2026-08-08 01:17:46.000000000 +0300
+++ highway-1.3.0/debian/rules	2026-08-08 01:20:27.000000000 +0300
@@ -27,9 +27,9 @@
   DEB_CXXFLAGS_MAINT_APPEND += -fexcess-precision=standard
 endif
 
-ifeq ($(DEB_HOST_ARCH_CPU),x32)
+ifeq ($(DEB_HOST_ARCH),x32)
   # virtual memory exhausted: Cannot allocate memory
-  DH_FLAGS = --max-parallel=1
+  DEB_CXXFLAGS_MAINT_APPEND += -g1
 endif
 
 ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),armhf))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.