At least with GHC 6.12 this bug occurs when emerging haddock-2.6.0: Building haddock-2.6.0... [1 of 5] Compiling Haddock.GhcUtils ( src/Haddock/GhcUtils.hs, dist/build/Haddock/GhcUtils.o ) src/Haddock/GhcUtils.hs:53:37: Ambiguous occurrence `display' It could refer to either `Distribution.Text.display', imported from Distribution.Text at src/Haddock/GhcUtils.hs:27:0-23 or `Packages.display', imported from Packages at src/Haddock/GhcUtils.hs:32:0-14 Since I don’t know which one was meant, I can’t fix it. The same problem is also true for the 2.6* ebuilds in the haskell overlay, since the source is the same. Apparently haddock wasn’t ready for GHC 6.12? But this should be an easy fix. :) Reproducible: Always Steps to Reproduce:
Hmm… fixing the line by substituting “Packages.display” for “display” only makes it fail at the next error: src/Haddock/GhcUtils.hs:64:40: No instance for (Text PackageIdentifier) arising from a use of `parse' at src/Haddock/GhcUtils.hs:64:40-44 Possible fix: add an instance declaration for (Text PackageIdentifier) In the first argument of `readP_to_S', namely `parse' In the expression: readP_to_S parse str In a stmt of a list comprehension: (pid, "") <- readP_to_S parse str And I don’t even remotely know how to fix that one…
News: The bug is not occurring anymore with haddock-2.6.1 and ghc-6.12.2 (as it is in the GHC overlay since this a couple of hours ago). So I say the bug is resolved for me. If you also want to resolve it, depends on your situation in the main portage repository. If you just upgrade the ebuilds by using the overlay ones, we can call this closed. :)
(In reply to comment #2) > News: The bug is not occurring anymore with haddock-2.6.1 and ghc-6.12.2 (as it > is in the GHC overlay since this a couple of hours ago). If by "a couple of hours ago" you mean 9 days ago, sure :p Just for the record, which exact version of GHC where you using?
(In reply to comment #3) > If by "a couple of hours ago" you mean 9 days ago, sure :p No I mean a couple of hours ago. Since it did not yet work after my sync yesterday night (GMT+2), but worked after the sync about 5 hours ago. > Just for the record, which exact version of GHC where you using? Hey, can you read my mind? I just wanted to mention that. ^^ I used GHC 6.12.1 for both tests. (I upgraded to GHC 6.12.2 afterwards, about 20 minutes ago.)
I had the same problem with haddock both versions 2.6.0 and 2.6.1 after I have installed the haskell overlay and have upgraded the cabal to 1.8.0.4. After I have reverted the cabal to 1.8.0.2 all other haskell libs have been upgraded from overlay without errors. So I suggest this error appears when there are libs mixed from different installations with different cabal versions.