haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.62k stars 691 forks source link

caball-install build fails #1411

Closed mimosa67 closed 11 years ago

mimosa67 commented 11 years ago

This may be a local issue, but I'm not really sure how to check. I tried installing using the bootstrap shell script, and by doing ghc --make Setup && ./Setup configure --user && ./Setup build && ./Setup install

(the two deps mentioned are already installed - zlib & HTTP - as well as Cabal (1.14.0))

in both cases producing a similar error:

Distribution/Client/BuildReports/Upload.hs:54:38: Couldn't match expected type Maybe b0' with actual typeURI' In the return type of a call of `relativeTo' In a stmt of a 'do' block: relativeTo rel uri In the expression: do { rel <- parseRelativeReference location; relativeTo rel uri }

ghc is 7.4.2. cabal-install is 0.14.0

byorgey commented 11 years ago

The type of Network.URI.relativeTo changed between network-2.3 (URI -> URI -> Maybe URI) and network-2.4 (URI -> URI -> URI). If you want to build cabal-install-0.14.0 you will have to build it with network-2.3.x. Out of curiosity, why are you trying to build cabal-install-0.14.0 from source? That is an old release.

23Skidoo commented 11 years ago

Looks like this is fixed in trunk.

mimosa67 commented 11 years ago

The type of Network.URI.relativeTo changed between network-2.3 (URI -> URI -> Maybe URI) and network-2.4 (URI -> URI -> URI). If you want to build cabal-install-0.14.0 you will have to build it with network-2.3.x. Out of curiosity, why are you trying to build cabal-install-0.14.0 from source? That is an old release.

Thanks for getting back to me. I must have followed an old link (from when 0.14.0 was the latest release). I see that cabal-install 1.16.02 requires Cabal >= 1.16.0, but I have already installed 1.14.0.

Should that come out in the wash, or do I need to take active steps to remove it before building a more recent Cabal?

It's perhaps also relevant that the ghc I have isn't the latest - and maybe that has something to do with the Cabal version I ended up downloading: it's 7.6.3. My Linux distro (Salix) is basically Slack, and as such, packages are generally only updated once in each release cycle.

mimosa67 commented 11 years ago

PS Here is the link I must have followed:

http://www.haskell.org/cabal/download.html

It still points to versions ~14~ of Cabal and cabal-install. The text mentions ghc 7.4.1!

byorgey commented 11 years ago

7.6.3 is the latest stable release of GHC so no problem there. Having Cabal-1.14.0 installed probably won't do you much harm but you might as well unregister it: ghc-pkg unregister Cabal-1.14.0.

Re: the website, thanks for the heads up, that should indeed be updated. I'm not sure who has access to it.