Nathan Hüsken | 4 Oct 22:55 2013
Picon

Trying to compile ghc HEAD on xubuntu 13.04-x64

Hey,

because I have touble with ghci and packages with FFI, it was suggested 
to me to compile and use ghc HEAD.

I am on xubuntu 13.04 64bit and try to do a perf build. It fails with:

compiler/ghc.mk:478: warning: ignoring old commands for target 
`compiler/stage2/build/libHSghc-7.7.20131004-ghc7.7.20131004.so'
"/home/ls/src/ghc/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=dyn_hi --optghc=-osuf --optghc=dyn_o 
--optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic 
--optghc=-O --optghc=-H64m --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 
(Continue reading)

Edward Z. Yang | 4 Oct 22:57 2013
Picon

Re: Trying to compile ghc HEAD on xubuntu 13.04-x64

As a workaround, add this to your mk/build.mk

HADDOCK_DOCS       = NO
BUILD_DOCBOOK_HTML = NO
BUILD_DOCBOOK_PS   = NO
BUILD_DOCBOOK_PDF  = NO

This is a bug.

Edward

Excerpts from Nathan Hüsken's message of Fri Oct 04 13:55:01 -0700 2013:
> Hey,
> 
> because I have touble with ghci and packages with FFI, it was suggested 
> to me to compile and use ghc HEAD.
> 
> I am on xubuntu 13.04 64bit and try to do a perf build. It fails with:
> 
> compiler/ghc.mk:478: warning: ignoring old commands for target 
> `compiler/stage2/build/libHSghc-7.7.20131004-ghc7.7.20131004.so'
> "/home/ls/src/ghc/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=dyn_hi --optghc=-osuf --optghc=dyn_o 
> --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic 
> --optghc=-O --optghc=-H64m --optghc=-package-name 
(Continue reading)

Herbert Valerio Riedel | 4 Oct 23:28 2013
Picon

Re: Trying to compile ghc HEAD on xubuntu 13.04-x64

On 2013-10-04 at 22:55:01 +0200, Nathan Hüsken wrote:

[...]

> haddock: internal error: haddock: panic! (the 'impossible' happened)
>   (GHC version 7.7.20131004 for x86_64-unknown-linux):
> 	Static flags have not been initialised!
>         Please call GHC.parseStaticFlags early enough.
>
> Please report this as a GHC bug:
> http://www.haskell.org/ghc/reportabug

...as already mentioned by Edward this is a known bug; and to be more
specific, it's filed as

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

Cheers,
  hvr
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Gmane