Source: ghc
Version: 9.4.6-1
Severity: normal
Tags: ftbfs

Dear Maintainer,

Build fails here:
"inplace/bin/ghc-stage1" -hisuf hi -osuf  o -hcsuf hc -static  -H32m -O -lffi 
-optl-pthread -Wall     -this-unit-id Cabal-3.8.1.0 -hide-all-packages 
-package-env - -i -ilibraries/Cabal/Cabal/src 
-ilibraries/Cabal/Cabal/dist-install/build 
-Ilibraries/Cabal/Cabal/dist-install/build 
-ilibraries/Cabal/Cabal/dist-install/build/./autogen 
-Ilibraries/Cabal/Cabal/dist-install/build/./autogen -Ilibraries/Cabal/Cabal/.  
-optP-include 
-optPlibraries/Cabal/Cabal/dist-install/build/./autogen/cabal_macros.h 
-package-id Cabal-syntax-3.8.1.0 -package-id array-0.5.4.0 -package-id 
base-4.17.2.0 -package-id bytestring-0.11.5.1 -package-id containers-0.6.7 
-package-id deepseq-1.4.8.0 -package-id directory-1.3.7.1 -package-id 
filepath-1.4.2.2 -package-id mtl-2.2.2 -package-id parsec-3.1.16.1 -package-id 
pretty-1.1.3.6 -package-id process-1.6.17.0 -package-id text-2.0.2 -package-id 
time-1.12.2 -package-id transformers-0.5.6.2 -package-id unix-2.7.3 -Wall 
-fno-ignore-asserts -fwarn-tabs -fwarn-incomplete-uni-patterns 
-fwarn-incomplete-record-updates -Wcompat -Wnoncanonical-monad-instances 
-XHaskell2010   -no-user-package-db -rtsopts  -Wno-deprecated-flags    
-Wnoncanonical-monad-instances  -outputdir 
libraries/Cabal/Cabal/dist-install/build -split-sections -dynamic-too -c 
libraries/Cabal/Cabal/src/Distribution/Simple/Build/Macros.hs -o 
libraries/Cabal/Cabal/dist-install/build/Distribution/Simple/Build/Macros.o 
-dyno 
libraries/Cabal/Cabal/dist-install/build/Distribution/Simple/Build/Macros.dyn_o
virtual memory exhausted: Cannot allocate memory
`gcc' failed in phase `C Compiler'. (Exit code: 1)

See:
https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=hppa&ver=9.4.6-1&stamp=1693300415&raw=0

This can be avoided by adding hppa to arches that need -optcggc-min-expand=10:
ifneq (,$(filter i386 hppa mips mipsel s390x, $(DEB_HOST_ARCH)))

Probably, all 32-bit arches need this option.

Regards,
Dave Anglin

-- System Information:
Debian Release: trixie/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 6.1.48+ (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information

Reply via email to