
Hi, I cannot build GHC head today on Linux. It seems to me that this bug is relating to the followings: https://github.com/sol/doctest-haskell/issues/59 https://github.com/sol/doctest-haskell/pull/60 Why did the initial value of v_opt_C_ready in GHCI change? --Kazu Haddock coverage: 100% ( 1 / 1) in 'GHC.IntWord64' 78% ( 7 / 9) in 'GHC.Types' 3% ( 2 / 63) in 'GHC.Tuple' 0% ( 0 / 3) in 'GHC.Debug' 0% ( 0 /351) in 'GHC.PrimopWrappers' 2% ( 1 / 43) in 'GHC.PrimWrappers' 17% ( 1 / 6) in 'GHC.CString' 31% (170 /540) 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.20130912 for x86_64-unknown-linux): 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 make[1]: *** [libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock] Error 1

Kazu,
take a look here, there's a workaround: http://ghc.haskell.org/trac/ghc/ticket/8276
Thanks for tracking possible cause of this panic.
Janek
----- Oryginalna wiadomość -----
Od: "Kazu Yamamoto"

It seems the recent commit 1f77a53 [1] introduced changes the build system isn't prepared for. ad15c2b builds just fine, but the mentioned commit introduces a make error,
make[1]: *** No rule to make target `compiler/stage1/build/TcTypeNats.hs', needed by `compiler/stage1/build/.depend-v.haskell'. Stop.
Since that's a rather large patch, I'm not sure how to fix it (or whether it really just is the build system that fails and not more). [1]: https://github.com/ghc/ghc/commit/1f77a5341cbd6649a6bc2af868002728cd79b9d7

Hm, sorry about that---it validated fine on my machine. I'll kick off a fresh build, perhaps I need to register the new module somewhere besides the cabal file? Btw, were you building from scratch, or rebuilding an existing GHC? I find that sometimes I need to `make clean` to get all the dependencies to be computed correctly. On Fri, Sep 13, 2013 at 4:12 AM, David Luposchainsky < dluposchainsky@googlemail.com> wrote:
It seems the recent commit 1f77a53 [1] introduced changes the build system isn't prepared for. ad15c2b builds just fine, but the mentioned commit introduces a make error,
make[1]: *** No rule to make target `compiler/stage1/build/TcTypeNats.hs', needed by `compiler/stage1/build/.depend-v.haskell'. Stop.
Since that's a rather large patch, I'm not sure how to fix it (or whether it really just is the build system that fails and not more).
[1]: https://github.com/ghc/ghc/commit/1f77a5341cbd6649a6bc2af868002728cd79b9d7 _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

I recall that David solved his problem by pulling a fresh tree from main repo. So it was fault of his tree, not your patch.
Janek
----- Oryginalna wiadomość -----
Od: "Iavor Diatchki"
make[1]: *** No rule to make target `compiler/stage1/build/TcTypeNats.hs', needed by `compiler/stage1/build/.depend-v.haskell'. Stop.
Since that's a rather large patch, I'm not sure how to fix it (or whether it really just is the build system that fails and not more). [1]: https://github.com/ghc/ghc/commit/1f77a5341cbd6649a6bc2af868002728cd79b9d7 _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
participants (4)
-
David Luposchainsky
-
Iavor Diatchki
-
Jan Stolarek
-
Kazu Yamamoto