It seems that even if "-doc" is used, the documentation for dev-lang/ghc is built. Unfortunately, it does not work, because emerge does not install the dependences (of course since "-doc"). Reproducible: Always
Are you building with "USE=ghcbootstrap" ? Because otherwise pre-built documentation is used, so there shouldn't be anything being built...
There is 2 kinds of doc: - haddock generated .html stuff (self-hosted doc generation). - pdf user's guide .tex based. Might be built automagically if you have dblatex. Which one breaks for you? Can you paste build.log?
A user from #gentoo on freenode confirmed that having dblatex installed makes the build fail <Sikander> "/usr/bin/dblatex" docs/users_guide/users_guide.xml --ps -o docs/users_guide/users_guide.ps <Sikander> And then latex complains about missing \begin{document}
Ah, I think I see now. ghc-6.12 build system renamed XMLDocWays control variable (we used to override) to set of BUILD_DOCBOOK_PS/PDF/HTML. And automagic deps popped back. Fixed as: > 05 Jul 2011; Sergei Trofimovich <slyfox@gentoo.org> ghc-6.12.3.ebuild, > ghc-6.12.3-r2.ebuild: > Disable doc building when user didn't request it (bug #368195 by Valentin > David). Thank you, guys!