Skip to content

on osx 10.11 haddock --hyperlinked-source on ghc source fails with file resource exhausted

Warning: Module: moduleUnitId is exported separately but will be documented under Module. Consider exporting it together with its parent(s) for code clarity.
Warning: Module: moduleName is exported separately but will be documented under Module. Consider exporting it together with its parent(s) for code clarity.
Warning: Couldn't find .haddock for export typeKind
Warning: Couldn't find .haddock for export liftedTypeKind
haddock: internal error: compiler/HsVersions.h: openBinaryFile: resource exhausted (Too many open files)

theres also quite a few "cannot find link destination" style errors, see the attached file for that

NB: the key bit for fixing this, at least in my local environment, is to do ulimit -n 10000 before invoking make.

Trac metadata
Trac field Value
Version 8.0.1-rc3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information