Unable to compile ghc from darcs

Simon Marlow marlowsd at gmail.com
Tue Mar 31 07:07:19 EDT 2009


Colin Paul Adams wrote:
>>>>>> "Donnie" == Donnie Jones <donnie at darthik.com> writes:
> 
>     Donnie> Hello Colin, In my working with GHC, I have found this
>     Donnie> page very helpful since it succinctly outlines the steps
>     Donnie> for Rebuilding GHC and ensuring you are up-to-date with
>     Donnie> everything GHC needs:
>     Donnie> http://hackage.haskell.org/trac/ghc/wiki/Building/Rebuilding
> 
> Thanks.
> 
> I did this and it cured the TH problems, but I still have haddock
> problems:
> 
> src/Haddock/Backends/Html.hs:1495:4:
>     Ambiguous occurrence `maybeParen'
>     It could refer to either `Haddock.Backends.Html.maybeParen', defined at src/Haddock/Backends/Html.hs:1462:0
>                           or `GHC.maybeParen', imported from GHC at src/Haddock/Backends/Html.hs:42:0-39
> 
> src/Haddock/Backends/Html.hs:1511:4:
>     Ambiguous occurrence `maybeParen'
>     It could refer to either `Haddock.Backends.Html.maybeParen', defined at src/Haddock/Backends/Html.hs:1462:0
>                           or `GHC.maybeParen', imported from GHC at src/Haddock/Backends/Html.hs:42:0-39
> 
> src/Haddock/Backends/Html.hs:1515:4:
>     Ambiguous occurrence `maybeParen'
>     It could refer to either `Haddock.Backends.Html.maybeParen', defined at src/Haddock/Backends/Html.hs:1462:0
>                           or `GHC.maybeParen', imported from GHC at src/Haddock/Backends/Html.hs:42:0-39
> 
> src/Haddock/Backends/Html.hs:1532:4:
>     Ambiguous occurrence `maybeParen'
>     It could refer to either `Haddock.Backends.Html.maybeParen', defined at src/Haddock/Backends/Html.hs:1462:0
>                           or `GHC.maybeParen', imported from GHC at src/Haddock/Backends/Html.hs:42:0-39
> 

Are you using a build tree made with lndir?  If you, you probably want to 
link the _darcs directory from your source tree into your build tree.  This 
will enable configure to generate a more accurate version number, which 
will probably fix the compile problem with Haddock.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list