logo       

RE: problems building ghc 6.4.1_pre using 6.4 withmultiplecabalversions ins: msg#00060

lang.haskell.glasgow.bugs

Subject: RE: problems building ghc 6.4.1_pre using 6.4 withmultiplecabalversions installed

On 13 September 2005 12:22, Andres Loeh wrote:

>> Just glancing over the patch, I can't immediately see how it works.
>> GHC
>> 6.4 gives priority to package modules over modules on the local
>> search path, so Distribution.* will be taken from the installed
>> Cabal package. However, when linking GHC you are ommitting -package
>> Cabal, so I'd expect a link error.
>>
>> Hmm, I guess I should try this and figure out what's happening.
>
> The idea is that no installed Cabal version will be used. I think the
> ghc distribution should just always build its own Cabal during stage1.

I agree - I just couldn't see how your patch achieved that.

> That's what the patch tries to achieve, and afaics, it works. However,
> Duncan didn't give you the full story with the patch. We also do the
> following:
>
> echo "GHC+=-ignore-package Cabal" >> mk/build.mk
> echo "HC+=-ignore-package Cabal" >> mk/build.mk

Aha, that's the missing bit. I'll try to construct a robust version of
this.

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise