Haddock is broken in head?

Kazu Yamamoto ( 山本和彦 ) kazu at iij.ad.jp
Tue Sep 24 07:47:58 UTC 2013


Hi Páli,

Please read:

	http://ghc.haskell.org/trac/ghc/ticket/8276

--Kazu

> Hi there,
> 
> I have been recently experiencing some problems with haddock in head
> on FreeBSD, spotted by both of my builder clients [1,2], but quite
> reproducible on a recent FreeBSD system too:
> 
> [snip]
> Running hscolour for ghc-prim-0.3.1.0...
> Preprocessing library ghc-prim-0.3.1.0...
> "/usr/home/ghc-builder/work/builder/tempbuild/build/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=-package-name --optghc=ghc-prim-0.3.1.0
> --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 --optghc=rts-1.0 --optghc=-package-name
> --optghc=ghc-prim --optghc=-XHaskell98 --optghc=-XCPP
> --optghc=-XMagicHash --optghc=-XForeignFunctionInterface
> --optghc=-XUnliftedFFITypes --optghc=-XUnboxedTuples
> --optghc=-XEmptyDataDecls --optghc=-XNoImplicitPrelude --optghc=-O2
> --optghc=-no-user-package-db --optghc=-rtsopts --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 --optghc=-split-objs
> --optghc=-dynamic-too --source-module=src/%{MODULE/./-}.html
> --source-entity=src/%{MODULE/./-}.html#%{NAME}
> libraries/ghc-prim/./GHC/Classes.hs
> libraries/ghc-prim/./GHC/CString.hs  libraries/ghc-prim/./GHC/Debug.hs
>  libraries/ghc-prim/./GHC/Magic.hs
> libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs
> libraries/ghc-prim/./GHC/IntWord64.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
> Haddock coverage:
>  100% (  1 /  1) in 'GHC.IntWord64'
>   80% (  8 / 10) in 'GHC.Types'
>   17% (  1 /  6) in 'GHC.CString'
>    3% (  2 / 63) in 'GHC.Tuple'
>    0% (  0 /  3) in 'GHC.Debug'
>    0% (  0 /354) in 'GHC.PrimopWrappers'
>   72% (813 /1123) in 'GHC.Prim'
>  100% (  3 /  3) in 'GHC.Magic'
>   38% (  6 / 16) in 'GHC.Classes'
> haddock: internal error: haddock: panic! (the 'impossible' happened)
>   (GHC version 7.7.20130924 for x86_64-portbld-freebsd):
> Static flags have not been initialised!
>         Please call GHC.newSession or GHC.parseStaticFlags early enough.
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> gmake[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock]
> Error 1
> gmake: *** [all] Error 2
> 
> The attached patch seems to fix the problem, but then I get this:
> 
> [snip]
> "/usr/home/foo/ghc/build.20130922/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=-package-name --optghc=ghc-prim-0.3.1.0
> --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 --optghc=rts-1.0 --optghc=-package-name
> --optghc=ghc-prim --optghc=-XHaskell98 --optghc=-XCPP
> --optghc=-XMagicHash --optghc=-XForeignFunctionInterface
> --optghc=-XUnliftedFFITypes --optghc=-XUnboxedTuples
> --optghc=-XEmptyDataDecls --optghc=-XNoImplicitPrelude --optghc=-O2
> --optghc=-no-user-package-db --optghc=-rtsopts --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 --optghc=-split-objs
> libraries/ghc-prim/./GHC/Classes.hs
> libraries/ghc-prim/./GHC/CString.hs  libraries/ghc-prim/./GHC/Debug.hs
>  libraries/ghc-prim/./GHC/Magic.hs
> libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs
> libraries/ghc-prim/./GHC/IntWord64.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
> Haddock coverage:
>  100% (  1 /  1) in 'GHC.IntWord64'
>   80% (  8 / 10) in 'GHC.Types'
>   17% (  1 /  6) in 'GHC.CString'
>    3% (  2 / 63) in 'GHC.Tuple'
>    0% (  0 /  3) in 'GHC.Debug'
>    0% (  0 /354) in 'GHC.PrimopWrappers'
>   32% (177 /547) in 'GHC.Prim'
>  100% (  3 /  3) in 'GHC.Magic'
>   38% (  6 / 16) in 'GHC.Classes'
> attempting to use module 'ghc-prim:GHC.Types'
> (libraries/ghc-prim/./GHC/Types.hs) which is not loaded
> gmake[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock]
> Error 1
> gmake: *** [all] Error 2
> 
> Any ideas on how to fix this?
> 
> 
> Thanks,
> Gabor
> 
> [1] http://haskell.inf.elte.hu/builders/freebsd-i386-head/21/10.html
> [2] http://haskell.inf.elte.hu/builders/freebsd-amd64-head/23/10.html



More information about the ghc-devs mailing list