<div dir="ltr">Currently released cabal-install on hackage doesn't know how to do linkery for ghc head afaik, but I could be wrong</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 27, 2014 at 12:26 PM, Reid Barton <span dir="ltr"><<a href="mailto:rwbarton@gmail.com" target="_blank">rwbarton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">On Fri, Aug 8, 2014 at 8:00 AM, Edward Z. Yang <span dir="ltr"><<a href="mailto:ezyang@mit.edu" target="_blank">ezyang@mit.edu</a>></span> wrote:<br></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey all,<br>
<br>
SPJ pointed out to me today that if you try to run:<br>
<br>
    cabal install --with-ghc=/path/to/inplace/bin/ghc-stage2<br>
<br>
with the latest GHC HEAD, this probably will not actually work, because<br>
your system installed version of Cabal is probably too old to deal with<br>
the new package key stuff in HEAD.  So, how do you get a version<br>
of cabal-install (and Cabal) which is new enough to do what you need<br>
it to?<br>
<br>
The trick is to compile Cabal using your /old/ GHC. Step-by-step, this<br>
involves cd'ing into libraries/Cabal/Cabal and running `cabal install`<br>
(or install it in a sandbox, if you like) and then cd'ing to<br>
libraries/Cabal/cabal-install and cabal install'ing that.<br></blockquote><div><br></div></span><div>Hi all,<br><br></div><div>The new cabal-install I built last month following the instructions above started failing with recent GHC HEAD with messages like<br><br> ghc: ghc no longer supports single-file style package databases (dist/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format.<br><br></div><div>I found that repeating these steps with the latest libraries/Cabal submodule gave me a cabal-install that, so far, appears to be working with GHC HEAD. So if your cabal-install has stopped working with HEAD, try building the latest version as outlined in Edward's email.<br><br></div><div>Cabal wizards, any gotchas with current Cabal & GHC HEAD I should be aware of?<br><br>Regards,<br></div><div>Reid Barton<br></div></div></div></div>
<br>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div>