Haddock error

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Fri Jan 2 04:08:48 UTC 2015


On 01/01/2015 08:34 PM, Simon Peyton Jones wrote:
> Folks I'm getting this Haddock error (see below) from a clean build
> on Windows. Does it ring any bells for anyone?  Anyone have any idea
> how to fix?  My build isn't exactly HEAD but I'd be very surprised if
> my changes are the cause. Thanks Simon
> 
> "C:/code/HEAD/inplace/bin/haddock"
> --odir="libraries/ghc-prim/dist-install/doc/html/ghc-prim"
> --no-tmp-comp-dir
> --dump-interface=libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock
> --html --hoogle --title="ghc-prim-0.3.1.0: GHC primitives"
> --prologue="libraries/ghc-prim/dist-install/haddock-prologue.txt"
> --optghc=-hisuf --optghc=hi --optghc=-osuf --optghc=o --optghc=-hcsuf
> --optghc=hc --optghc=-static --optghc=-H32m --optghc=-O
> --optghc=-Werror --optghc=-Wall --optghc=-H64m --optghc=-O0
> --optghc=-this-package-key --optghc=ghcpr_FgrV6cgh2JHBlbcx1OSlwt
> --optghc=-hide-all-packages --optghc=-i
> --optghc=-ilibraries/ghc-prim/.
> --optghc=-ilibraries/ghc-prim/dist-install/build
> --optghc=-ilibraries/ghc-prim/dist-install/build/autogen
> --optghc=-Ilibraries/ghc-prim/dist-install/build
> --optghc=-Ilibraries/ghc-prim/dist-install/build/autogen
> --optghc=-Ilibraries/ghc-prim/. --optghc=-optP-include
> --optghc=-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h
> --optghc=-package-key --optghc=rts --optghc=-this-package-key
> --optghc=ghc-prim --optghc=-XHaskell2010 --optghc=-O2 --optghc=-O
> --optghc=-dcore-lint --optghc=-fno-warn-deprecated-flags
> --optghc=-fno-warn-tabs --optghc=-Wwarn --optghc=-no-user-package-db
> --optghc=-rtsopts --optghc=-fno-warn-trustworthy-safe --optghc=-odir
> --optghc=libraries/ghc-prim/dist-install/build --optghc=-hidir
> --optghc=libraries/ghc-prim/dist-install/build --optghc=-stubdir
> --optghc=libraries/ghc-prim/dist-install/build
> libraries/ghc-prim/./GHC/CString.hs
> libraries/ghc-prim/./GHC/Classes.hs
> libraries/ghc-prim/./GHC/Debug.hs
> libraries/ghc-prim/./GHC/IntWord64.hs
> libraries/ghc-prim/./GHC/Magic.hs
> libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs
> libraries/ghc-prim/./GHC/Tuple.hs  libraries/ghc-prim/./GHC/Types.hs
> libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs +RTS
> -tlibraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock.t
> --machine-readable
> 
> [snip]
> 
> Declaration for $fOrdMaybe: attempting to use module 'GHC.Classes'
> (libraries/ghc-prim/./GHC/Classes.hs) which is not loaded CCSOf#
> (libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs:3187)
> 
> [snip]
> 
> Cannot continue after interface file error 
> libraries/ghc-prim/ghc.mk:4: recipe for target
> 'libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock'
> failed make[1]: ***
> [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock]
> Error 1 Makefile:71: recipe for target 'all' failed make: *** [all]
> Error 2 HEAD (master)$
> 

Hi Simon,

In InterfaceFile.hs in Haddock there is

binaryInterfaceVersion :: Word16
#if (__GLASGOW_HASKELL__ >= 711) && (__GLASGOW_HASKELL__ < 713)
binaryInterfaceVersion = 27
…

Try bumping this to 28 and if it works then then you may want to commit
the change.

By the way I see that there is a lot of output from Haddock now as I
made it print locations of missing documentation by default. Maybe
--no-print-missing-docs should be passed in for GHC stuff.


-- 
Mateusz K.


More information about the ghc-devs mailing list