
Sorry, probably stupid questions for knowledgeable folks, but after having built for a couple of hours, make died with if ifBuildable/ifBuildable base; then \ cd base && setup/Setup haddock --html-location='../$pkg' \ --hyperlink-source; \ fi Preprocessing library base-3.0.2.0... Running hscolour for base-3.0.2.0... Preprocessing library base-3.0.2.0... Running Haddock for base-3.0.2.0... Warning: The documentation for package rts-1.0 is not installed. No links to it will be generated. Setup: Haddock's internal GHC version must match the configured GHC version make[1]: *** [doc.library.base] Fehler 1 make[1]: Leaving directory `/home/dafis/HasCom/ghc-6.8.3/libraries' make: *** [stage1] Fehler 2 So, what is Haddock's internal GHC version? Is it the version, haddock was built with? And what is the configured GHC version, is it the one I'm trying to build or the one I'm building with? If the former, I seem to have landed in a circulus vitiosus, if the latter, that is the GHC, haddock was built with, too. For the record: dafis@linux:~/HasCom/ghc-6.8.3> haddock --version Haddock version 2.1.0, (c) Simon Marlow 2006 Ported to use the GHC API by David Waern 2006-2008 How should I proceed now? Thanks, Daniel

On Wed, Jun 18, 2008 at 5:28 AM, Daniel Fischer
Sorry, probably stupid questions for knowledgeable folks
Not stupid at all, but possibly the wrong mailing list. glasgow-haskell-users would usually be a better place to ask.
Setup: Haddock's internal GHC version must match the configured GHC version
You're using Haddock 2.0 or newer. It's not actually possible to build GHC with it; you must use Haddock 0.9. Many other packages apparently break with Haddock 2, but GHC is certainly rather visible :-) It is possible to have Haddock 0.9 and 2.0 installed simultaneously under different names or in different locations, but you'll have to patch GHC's sources in order to specify which Haddock to use. It's a small patch; look on Trac for it.

2008/6/18 Bryan O'Sullivan
On Wed, Jun 18, 2008 at 5:28 AM, Daniel Fischer
wrote: Sorry, probably stupid questions for knowledgeable folks
Not stupid at all, but possibly the wrong mailing list. glasgow-haskell-users would usually be a better place to ask.
Setup: Haddock's internal GHC version must match the configured GHC version
You're using Haddock 2.0 or newer. It's not actually possible to build GHC with it; you must use Haddock 0.9.
We're discussing how to fix this problem in future releases of GHC and Haddock. In the meantime, it is actually possible to build GHC with Haddock 2.1.0 by first building GHC without docs, then installing Haddock with this GHC, and then building the GHC documentation. David
participants (3)
-
Bryan O'Sullivan
-
Daniel Fischer
-
David Waern