[From nobody Tue Nov 24 12:03:11 2026
Received: (at submit) by bugs.debian.org; 1 Nov 2025 10:06:00 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-117.0 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,FVGT_m_MULTI_ODD,
 HAS_PACKAGE,RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,
 RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_NONE,
 USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 196; hammy, 150; neutral, 136; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--armhf, 0.000-+--sk:buildd.,
 0.000-+--UD:buildd.debian.org
Return-path: &lt;iliastsi@debian.org&gt;
Received: from mail.iliastsi.net ([172.104.147.165]:40197)
 by buxtehude.debian.org with utf8esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;iliastsi@debian.org&gt;) id 1vF8Ug-006gXZ-1c
 for submit@bugs.debian.org; Sat, 01 Nov 2025 10:06:00 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org;
 i=@debian.org; q=dns/txt; s=debian202004.iliastsi.user; t=1761991550;
 h=date : from : to : subject : message-id : mime-version :
 content-type : content-transfer-encoding : from;
 bh=y2zEwqkXeXA9e6516h0upmrvSL2+mYZGENpxG/14qgg=;
 b=oQf8MDWSpgAxC8buQxyWhB92sxPcK/AENxEz4LD/EsgJtqVMkaC3WCR9AS9x6YYLQtBLo
 lL5okSUFBhQJw02q0qS/E9lZj6aBEGGmRRBIWtNl777hg6Fx90lff2GIcEhrUHe1jWQKRog
 DxYn2D/bNSC+Yb6OGk8ZX32Vub3SVeHOMHUf8nW79qvP7MLlNX+Yw4r7S1r3+TRJo39Co18
 A7oJeARy7qOPjekOgKlMSzB6Plvc1D7IqUZuhgERhLF8dmhXphGiWiqqmD1pC3UiWl3eiKC
 KUfkqQWZPUhBdQa5l8x0eK+ftHYRQae1cEyWoV71JEopV5jEUCV1QTkxBEBg==
Received: from localhost (unknown [10.42.240.2])
 by mail.iliastsi.net (Postfix) with UTF8SMTPSA id C132C5FDDC
 for &lt;submit@bugs.debian.org&gt;; Sat, 01 Nov 2025 12:05:49 +0200 (EET)
Date: Sat, 1 Nov 2025 12:05:48 +0200
From: Ilias Tsitsimpis &lt;iliastsi@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: llc crashes while compiling GHC on armhf
Message-ID: &lt;zt3vmqrfvyu55kwr4xk7bfzsxhog7qkvw4qql5hx3ry2fwh3t7@5cncnlalie4u&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Delivered-To: submit@bugs.debian.org

Package: llvm-19
User: debian-arm@lists.debian.org
Usertags: armhf
X-Debbugs-Cc: debian-arm@lists.debian.org
Version: 1:19.1.7-7
Severity: important
Tags: upstream
Affects: src:opensnitch
Forwarded: https://github.com/llvm/llvm-project/issues/165422

llc crashes while compiling GHC on armhf with the following traceback:

```
Command line: _build/stage0/bin/ghc -Wall -Wcompat -fdiagnostics-color=3Dne=
ver -hisuf p_hi -osuf p_o -hcsuf p_hc -static -prof -hide-all-packages -no-=
user-package-db '-package-env -' '-package-db _build/stage1/inplace/package=
=2Econf.d' '-this-unit-id ghc-bignum-1.3-34fd' '-this-package-name ghc-bign=
um' '-package-id ghc-prim-0.12.0-57da' -i -i/build/reproducible-path/ghc-9.=
10.3/_build/stage1/libraries/ghc-bignum/build -i/build/reproducible-path/gh=
c-9.10.3/_build/stage1/libraries/ghc-bignum/build/autogen -i/build/reproduc=
ible-path/ghc-9.10.3/libraries/ghc-bignum/src/ -Irts/include -I_build/stage=
1/libraries/ghc-bignum/build -I_build/stage1/libraries/ghc-bignum/build/inc=
lude/ -Ilibraries/ghc-bignum/include/ -I/build/reproducible-path/ghc-9.10.3=
/rts/include -I/build/reproducible-path/ghc-9.10.3/_build/stage1/rts/build/=
include -optP-include -optP_build/stage1/libraries/ghc-bignum/build/autogen=
/cabal_macros.h -optc-marm -optP-DBIGNUM_GMP -outputdir _build/stage1/libra=
ries/ghc-bignum/build -Wall -this-unit-id ghc-bignum -fno-catch-nonexhausti=
ve-cases -XHaskell2010 -no-global-package-db -package-db=3D/build/reproduci=
ble-path/ghc-9.10.3/_build/stage1/inplace/package.conf.d -ghcversion-file=
=3Drts/include/ghcversion.h -ghcversion-file=3Drts/include/ghcversion.h -Wn=
oncanonical-monad-instances -optc-Wno-error=3Dinline -c libraries/ghc-bignu=
m/src/GHC/Num/Backend/Selected.hs -o _build/stage1/libraries/ghc-bignum/bui=
ld/GHC/Num/Backend/Selected.p_o -fsplit-sections -O -H64m -O2 -haddock -D__=
ARM_PCS_VFP -Wno-deprecated-flags
=3D=3D=3D&gt; Command failed with error code: 1
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ =
and include the crash backtrace.
Stack dump:
0.	Program arguments: llc-19 -O2 -relocation-model=3Dpic -mcpu=3Darm1176jzf=
-s -mattr=3D+strict-align /tmp/ghc57961_0/ghc_7.bc -o /tmp/ghc57961_0/ghc_8=
=2Elm_s
  #0 0xf14585f4 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;, int) build-l=
lvm/tools/clang/stage2-bins/llvm/lib/Support/Unix/Signals.inc:723:13
  #1 0xf1455ff4 llvm::sys::RunSignalHandlers() build-llvm/tools/clang/stage=
2-bins/llvm/lib/Support/Signals.cpp:0:5
  #2 0xf1458ee8 SignalHandler build-llvm/tools/clang/stage2-bins/llvm/lib/S=
upport/Unix/Signals.inc:0:3
  #3 0xf078ecd0 __default_sa_restorer ./signal/../sysdeps/unix/sysv/linux/a=
rm/sigrestorer.S:67:0
  #4 0xf3a872ac getObjectFormat build-llvm/tools/clang/stage2-bins/llvm/inc=
lude/llvm/TargetParser/Triple.h:405:53
  #5 0xf3a872ac isOSBinFormatMachO build-llvm/tools/clang/stage2-bins/llvm/=
include/llvm/TargetParser/Triple.h:740:12
  #6 0xf3a872ac isTargetMachO build-llvm/tools/clang/stage2-bins/llvm/lib/T=
arget/ARM/ARMSubtarget.h:312:52
  #7 0xf3a872ac GetARMGVSymbol build-llvm/tools/clang/stage2-bins/llvm/lib/=
Target/ARM/ARMAsmPrinter.cpp:861:18
  #8 0xf3a872ac emitXXStructor build-llvm/tools/clang/stage2-bins/llvm/lib/=
Target/ARM/ARMAsmPrinter.cpp:93:45
  #9 0xf1d58140 llvm::AsmPrinter::emitXXStructorList(llvm::DataLayout const=
&amp;, llvm::Constant const*, bool) build-llvm/tools/clang/stage2-bins/llvm/lib=
/CodeGen/AsmPrinter/AsmPrinter.cpp:2970:20
#10 0xf1d4d8ac llvm::AsmPrinter::emitSpecialLLVMGlobal(llvm::GlobalVariable=
 const*) build-llvm/tools/clang/stage2-bins/llvm/lib/CodeGen/AsmPrinter/Asm=
Printer.cpp:0:0
#11 0xf1d4cd70 llvm::AsmPrinter::emitGlobalVariable(llvm::GlobalVariable co=
nst*) build-llvm/tools/clang/stage2-bins/llvm/lib/CodeGen/AsmPrinter/AsmPri=
nter.cpp:710:9
#12 0xf1d5515c llvm::AsmPrinter::doFinalization(llvm::Module&amp;) build-llvm/t=
ools/clang/stage2-bins/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:2297:22
#13 0xf15bf8d0 llvm::FPPassManager::doFinalization(llvm::Module&amp;) build-llv=
m/tools/clang/stage2-bins/llvm/lib/IR/LegacyPassManager.cpp:1503:55
#14 0xf15ba464 runOnModule build-llvm/tools/clang/stage2-bins/llvm/lib/IR/L=
egacyPassManager.cpp:1590:55
#15 0xf15ba464 llvm::legacy::PassManagerImpl::run(llvm::Module&amp;) build-llvm=
/tools/clang/stage2-bins/llvm/lib/IR/LegacyPassManager.cpp:541:44
#16 0x00ab3b30 compileModule build-llvm/tools/clang/stage2-bins/llvm/tools/=
llc/llc.cpp:742:17
#17 0x00ab18c4 main build-llvm/tools/clang/stage2-bins/llvm/tools/llc/llc.c=
pp:0:22
#18 0xf077f4ba __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call=
_main.h:74:3
#19 0xf077f556 call_init ./csu/libc-start.c:128:20
#20 0xf077f556 __libc_start_main ./csu/libc-start.c:347:5
`llc-19' failed in phase `LLVM Compiler'. (Exit code: -11)
```

I have tried with various LLVM versions from 17 to 21.

The full build log is at=20
https://buildd.debian.org/status/fetch.php?pkg=3Dghc&amp;arch=3Darmhf&amp;ver=3D9.1=
0.3-1%7Eexp2&amp;stamp=3D1759175701&amp;raw=3D0.

--=20
Ilias
]