[From nobody Thu Jul 30 19:43:07 2026
Received: (at 1023649-done) by bugs.debian.org; 30 Jul 2026 18:42: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=-6.9 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,
 RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 315; hammy, 150; neutral, 138; spammy,
 0. spammytokens: hammytokens:0.000-+--H*u:Evolution,
 0.000-+--merge_requests, 0.000-+--sk:gitlab, 0.000-+--sk:gitlab.,
 0.000-+--H*RU:130.133.4.66
Return-path: &lt;glaubitz@zedat.fu-berlin.de&gt;
Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:57989)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;glaubitz@zedat.fu-berlin.de&gt;)
 id 1wpVhe-00HVVg-0r for 1023649-done@bugs.debian.org;
 Thu, 30 Jul 2026 18:42:00 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=fu-berlin.de; s=fub01; h=MIME-Version:Content-Transfer-Encoding:
 Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:From:
 Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:
 Content-Transfer-Encoding:Content-ID:Content-Description:In-Reply-To:
 References; bh=Em90hv36ufWuLfVVcWchM1VKZox0XmCnYPFJAWEViOg=; t=1785436918;
 x=1786041718; b=oS6FcXxaHH6gqfGNRyYB16EMagaCaPSXw0Z6qk8anzNCJSLS7lAqfk1Us8UMS
 sFbQ/fPAofRpAFElvO9fgobnvjnWbModQueu2xMI7Zbrb+TOfJniDWyLEWg0Qm+l0lfH/fJjYfWfY
 Cr/hDhBpR2rOk/hoxt8JxveVze2LLYxgp0Ons3jxI1DcFYyN2MB7iCjHaPMd7Dn/63Q0/yQTN0qgV
 rjECzhjev4Lp8XA/Tc7OAC96wL4fSQmQ+URzMs76UJnXcjJUPRmpX4brnWqvSL34uP74PxJXTMqF9
 qoinsCdRG16UUyA2n8AE01d9sXcF11jCHIFLnKMGHN3WU0cfUg==;
Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69])
 by outpost.zedat.fu-berlin.de (Exim 4.99) with esmtps (TLS1.3)
 tls TLS_AES_256_GCM_SHA384
 (envelope-from &lt;glaubitz@zedat.fu-berlin.de&gt;)
 id 1wpVhb-000000048I3-0C53; Thu, 30 Jul 2026 20:41:55 +0200
Received: from p5dc558fe.dip0.t-ipconnect.de ([93.197.88.254]
 helo=[192.168.178.61]) by inpost2.zedat.fu-berlin.de (Exim 4.99)
 with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
 (envelope-from &lt;glaubitz@physik.fu-berlin.de&gt;)
 id 1wpVha-00000000Naa-3Sim; Thu, 30 Jul 2026 20:41:54 +0200
Message-ID: &lt;31875a114b81b78b7125d3ce31625ff99f55a555.camel@physik.fu-berlin.de&gt;
Subject: Re: Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc
 Segmentation fault)
From: John Paul Adrian Glaubitz &lt;glaubitz@physik.fu-berlin.de&gt;
To: Ilias Tsitsimpis &lt;iliastsi@debian.org&gt;
Cc: noloader@gmail.com, 1023649-done@bugs.debian.org, debian-powerpc
 &lt;debian-powerpc@lists.debian.org&gt;
Date: Thu, 30 Jul 2026 20:41:54 +0200
In-Reply-To: &lt;aa4d8597a9a5da2e16ad19fd9a452e83af140280.camel@physik.fu-berlin.de&gt;
References: &lt;29858a396dac1827dcb1a4079901e74cb100406a.camel@physik.fu-berlin.de&gt;
 &lt;87y1smos91.fsf@christian.marillat.net&gt;
 &lt;83aefd4ab0f6d4f03bb024e51d6e50ba59a05c56.camel@physik.fu-berlin.de&gt;
 &lt;20230920115420.y34afdkuap3ycyl7@iliastsi.net&gt;
 &lt;165b7a58f5ac036b61a364f272db1303abecde30.camel@physik.fu-berlin.de&gt;
 &lt;20231011150203.b4zaedm6r2pr7cl3@iliastsi.net&gt;
 &lt;029c0c8e2e09c562462a1913e7da76b9ba08f451.camel@physik.fu-berlin.de&gt;
 &lt;b10d5a431173359a9c9433a69cfcc53f2eaa19dc.camel@physik.fu-berlin.de&gt;
 &lt;CAH8yC8mj=JdRNcdDzDdACUHGqMB+Mstk9CqBaht6iKP=34uD=w@mail.gmail.com&gt;
 &lt;2a1621696f75ec108a3573e8f9b6ce08eccebf38.camel@physik.fu-berlin.de&gt;
 &lt;g4tkby3wj5i3x2u3ek4gmxkfjgayq476yxdoer6pggaepb3de3@mll4q7s6lo7c&gt;
 &lt;59713f064ec40967278ad7535fafae4be7003b35.camel@physik.fu-berlin.de&gt;
 &lt;aa4d8597a9a5da2e16ad19fd9a452e83af140280.camel@physik.fu-berlin.de&gt;
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.60.2 
MIME-Version: 1.0
X-Original-Sender: glaubitz@physik.fu-berlin.de
X-Originating-IP: 93.197.88.254
X-ZEDAT-Hint: PO

Hi,

On Fri, 2024-06-14 at 10:33 +0200, John Paul Adrian Glaubitz wrote:
&gt; GHC 9.6.5 still fails on powerpc with the NGC enabled:
&gt;=20
&gt; # rts/include/rts/prof/LDV.h
&gt; &gt; Run Ghc CompileHs Stage1: rts/HeapStackCheck.cmm =3D&gt; _build/stage1/rts=
/build/cmm/HeapStackCheck.debug_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/PrimOps.cmm =3D&gt; _build/stage1/rts/build/=
cmm/PrimOps.p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/Updates.cmm =3D&gt; _build/stage1/rts/build/=
cmm/Updates.thr_p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/Compact.cmm =3D&gt; _build/stage1/rts/build/=
cmm/Compact.thr_p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/Exception.cmm =3D&gt; _build/stage1/rts/buil=
d/cmm/Exception.o
&gt; &gt; Run Ghc CompileHs Stage1: rts/PrimOps.cmm =3D&gt; _build/stage1/rts/build/=
cmm/PrimOps.debug_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/StgStartup.cmm =3D&gt; _build/stage1/rts/bui=
ld/cmm/StgStartup.debug_p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/HeapStackCheck.cmm =3D&gt; _build/stage1/rts=
/build/cmm/HeapStackCheck.p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/StgStartup.cmm =3D&gt; _build/stage1/rts/bui=
ld/cmm/StgStartup.thr_debug_p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/StgMiscClosures.cmm =3D&gt; _build/stage1/rt=
s/build/cmm/StgMiscClosures.debug_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/StgMiscClosures.cmm =3D&gt; _build/stage1/rt=
s/build/cmm/StgMiscClosures.p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/ContinuationOps.cmm =3D&gt; _build/stage1/rt=
s/build/cmm/ContinuationOps.debug_p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/Updates.cmm =3D&gt; _build/stage1/rts/build/=
cmm/Updates.debug_p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/StgStartup.cmm =3D&gt; _build/stage1/rts/bui=
ld/cmm/StgStartup.thr_p_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/Apply.cmm =3D&gt; _build/stage1/rts/build/cm=
m/Apply.o
&gt; &gt; Run Ghc CompileHs Stage1: rts/Exception.cmm =3D&gt; _build/stage1/rts/buil=
d/cmm/Exception.debug_o
&gt; &gt; Run Ghc CompileHs Stage1: rts/Apply.cmm =3D&gt; _build/stage1/rts/build/cm=
m/Apply.thr_dyn_o
&gt; Command line: _build/stage0/bin/ghc -Wall -Wcompat -hisuf debug_p_hi -osu=
f debug_p_o -hcsuf debug_p_hc -static -prof -DDEBUG -optc-DDEBUG -hide-all-=
packages -no-user-package-db '-package-env -' '-
&gt; package-db _build/stage1/inplace/package.conf.d' '-this-unit-id rts-1.0.2=
' -i -i/home/glaubitz/ghc-deb-9.6.5-new/ghc-9.6.5/_build/stage1/rts/build -=
i/home/glaubitz/ghc-deb-9.6.5-new/ghc-
&gt; 9.6.5/_build/stage1/rts/build/autogen -i/home/glaubitz/ghc-deb-9.6.5-new/=
ghc-9.6.5/rts -Irts/include -I_build/stage1/rts/build -I_build/stage1/rts/b=
uild/include
&gt; -I_build/stage1/rts/build/@FFIIncludeDir@ -I_build/stage1/rts/build/@Libd=
wIncludeDir@ -Irts/include -Irts/@FFIIncludeDir@ -Irts/@LibdwIncludeDir@ -o=
ptP-include -
&gt; optP_build/stage1/rts/build/autogen/cabal_macros.h -ghcversion-file=3Drts=
/include/ghcversion.h -outputdir _build/stage1/rts/build -fdiagnostics-colo=
r=3Dalways -Wnoncanonical-monad-instances -optc-Wno-
&gt; error=3Dinline -optP-Wno-nonportable-include-path -c rts/ContinuationOps.=
cmm -o _build/stage1/rts/build/cmm/ContinuationOps.debug_p_o -O2 -H32m -thi=
s-unit-id rts -XHaskell98 -no-global-package-db -
&gt; package-db=3D/home/glaubitz/ghc-deb-9.6.5-new/ghc-9.6.5/_build/stage1/inp=
lace/package.conf.d -ghcversion-file=3Drts/include/ghcversion.h -ghcversion=
-file=3Drts/include/ghcversion.h -haddock -Irts -
&gt; I_build/stage1/rts/build '-DRtsWay=3D&quot;rts_debug_p&quot;' -DFS_NAMESPACE=3Drts =
-DCOMPILING_RTS -DPROFILING -Wno-deprecated-flags -Wcpp-undef
&gt; =3D=3D=3D&gt; Command failed with error code: 1
&gt; ghc: panic! (the 'impossible' happened)
&gt;   GHC version 9.6.5:
&gt;         PPC.Ppr.pprInstr: JMP to ForeignLabel
&gt;   CallStack (from HasCallStack):
&gt;     panic, called at compiler/GHC/CmmToAsm/PPC/Ppr.hs:591:30 in ghc:GHC.C=
mmToAsm.PPC.Ppr
&gt;=20
&gt;=20
&gt; Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug
&gt;=20
&gt; Error when running Shake build system:
&gt;   at want, called at src/Main.hs:124:44 in main:Main
&gt; * Depends on: binary-dist-dir
&gt;   at need, called at src/Rules/BinaryDist.hs:130:9 in main:Rules.BinaryDi=
st
&gt; * Depends on: _build/stage1/lib/package.conf.d/rts-1.0.2.conf
&gt;   at need, called at src/Rules/Register.hs:134:5 in main:Rules.Register
&gt; * Depends on: _build/stage1/rts/build/stamp-rts-1.0.2_debug_p
&gt;   at need, called at src/Rules/Library.hs:144:3 in main:Rules.Library
&gt; * Depends on: _build/stage1/rts/build/libHSrts-1.0.2_debug_p.a
&gt;   at need, called at src/Rules/Library.hs:220:5 in main:Rules.Library
&gt; * Depends on: _build/stage1/rts/build/cmm/ContinuationOps.debug_p_o
&gt;   at cmd', called at src/Builder.hs:387:23 in main:Builder
&gt;   at cmdArgs, called at src/Builder.hs:540:8 in main:Builder
&gt;   at cmdArgs, called at src/Builder.hs:564:18 in main:Builder
&gt;   at cmdArgs, called at src/Builder.hs:564:18 in main:Builder
&gt;   at error, called at src/Builder.hs:609:13 in main:Builder
&gt; * Raised the exception:
&gt; Command failed
&gt;=20
&gt; Build failed.

This was fixed upstream in [1][2][3][4], closing.

There is another unrelated issue with runghc on powerpc though, see [5].

Adrian

&gt; [1] https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12926
&gt; [2] https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12881
&gt; [3] https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15423
&gt; [4] https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15440
&gt; [5] https://gitlab.haskell.org/ghc/ghc/-/work_items/26837

--=20
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913]