Skip to content

ARMv7: haddock generation for ghc on 9.2 runs out of memory

Summary

When building ghc-9.2.1-alpha2 on Fedora armv7hl failed due to a haddock generation error.

Steps to reproduce

Build ghc-9.2.1-alpha2 on Fedora 33 (or 34) armv7hl with ghc-8.10.4 (ghc:8.10 module).

Expected behavior

https://koji.fedoraproject.org/koji/taskinfo?taskID=66762262

GHC error in desugarer lookup in Ghci1:
  Can't find interface-file declaration for variable $bSM
    Probable cause: bug in .hi-boot file, or inconsistent .hi file
    Use -ddump-if-trace to get an idea of which file caused the error
GHC error in desugarer lookup in Ghci1:
  Can't find interface-file declaration for variable $bSM
    Probable cause: bug in .hi-boot file, or inconsistent .hi file
    Use -ddump-if-trace to get an idea of which file caused the error
GHC/Unit/Module/ModIface.hs:147:1
Warning: 'eps_decls' is out of scope.
    If you qualify the identifier, haddock can try to link it anyway.
:
:
Warning: GHC.Tc.Instance.Class: could not find link destinations for:
	- GHC.Tc.Instance.Class.SafeOverlapping
	- GHC.Tc.Instance.Class.onlyNamedBndrsApplied
Warning: GHC.Tc.Instance.Typeable: could not find link destinations for:
	- GHC.Tc.Instance.Typeable.KindRepM
Warning: GHC.Rename.Env: could not find link destinations for:
	- GHC.Rename.Env.lookupQualifiedNameGHCi
Warning: GHC.Tc.Gen.HsType: could not find link destinations for:
	- GHC.Tc.Gen.HsType.TcTyMode
	- GHC.Tc.Gen.HsType.mode_tyki
	- GHC.Tc.Gen.HsType.AnyBoxedKind
	- GHC.Tc.Gen.HsType.LiftedKind
	- GHC.Tc.Gen.HsType.isAllowedDataResKind
	- GHC.Tc.Gen.HsType.SkolemMode
	- GHC.Tc.Gen.HsType.tc_ihaddock: out of memory (requested 1048576 bytes)
make[1]: *** [compiler/ghc.mk:291: compiler/stage2/doc/html/ghc/ghc.haddock] Error 251
make[1]: *** Deleting file 'compiler/stage2/doc/html/ghc/ghc.haddock'
make: *** [Makefile:128: all] Error 2

Here is the full build.log.bz2 [278KB]

Environment

  • GHC version used: 8.10.4
  • Operating System: Fedora 33+
  • System Architecture: armv7hl

ps For now I will workaround it by disabling haddock on armv7hl.

Edited by Jens Petersen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information