Re: cabal install

On Nov 4, 2007, at 17:10 , Jean-Philippe Bernardy wrote:
Hi,
I thought I should report this too you: cabal install doesn't work for me: (update and list work)
jp@legolas:~/src$ cabal -v3 install vty Configuration: compiler: GHC repos: hackage.haskell.org:http://hackage.haskell.org/packages/archive cachedir: "/home/jp/.cabal/packages" user-install: true user-prefix: "/home/jp/.cabal" user-bindir: "$prefix/bin" user-libdir: "$prefix/lib" user-libexecdir: "$prefix/libexec" user-datadir: "$prefix/share" user-docdir: "$datadir/doc/$pkgid" user-htmldir: "$docdir/html" global-prefix: "/usr/local" global-bindir: "$prefix/bin" global-libdir: "$prefix/lib" global-libexecdir: "$prefix/libexec" global-datadir: "$prefix/share" global-docdir: "$datadir/doc/$pkgid" global-htmldir: "$docdir/html" searching for ghc in path. found ghc at /home/jp/usr/bin/ghc ("/home/jp/usr/bin/ghc",["--numeric-version"]) /home/jp/usr/bin/ghc is version 6.8.1 looking for package tool: ghc-pkg near compiler in /home/jp/usr/bin found package tool in /home/jp/usr/bin/ghc-pkg ("/home/jp/usr/bin/ghc-pkg",["--version"]) /home/jp/usr/bin/ghc-pkg is version 6.8.1 searching for ld in path. found ld at /usr/bin/ld cabal: dist/Conftest.c: openFile: does not exist (No such file or directory)
Cheers, JP
Hi Jean-Philippe, it works fine for me, but I only have GHC 6.6.1 at the moment. What platform are you on? I'm not sure what the dist/Conftest.c error is about. I'm CC:ing cabal-devel, perhaps some other Cabal hacker can help. /Björn

On Sun, 2007-11-04 at 20:22 +0100, Bjorn Bringert wrote:
On Nov 4, 2007, at 17:10 , Jean-Philippe Bernardy wrote:
it works fine for me, but I only have GHC 6.6.1 at the moment. What platform are you on?
It'll be using Cabal-1.2.2.0
I'm not sure what the dist/Conftest.c error is about. I'm CC:ing cabal-devel, perhaps some other Cabal hacker can help.
Yes, so what changed is that configuring ghc now tests ld to see if it supports the -x flag. This involves creating some temp files. At the moment it assumes that the dist dir exists since this is the case when we're doing configure. Unfortunately of course this is not the case when cabal-install configures the compiler. I suppose the right thing is for the ghc ld -x test to use the temp dir rather than assuming the existence of the dist dir. I'm not sure how we should work around that in cabal-install to make it work with the released Cabal. Duncan

On Nov 5, 2007, at 0:27 , Duncan Coutts wrote:
On Sun, 2007-11-04 at 20:22 +0100, Bjorn Bringert wrote:
On Nov 4, 2007, at 17:10 , Jean-Philippe Bernardy wrote:
it works fine for me, but I only have GHC 6.6.1 at the moment. What platform are you on?
It'll be using Cabal-1.2.2.0
I'm not sure what the dist/Conftest.c error is about. I'm CC:ing cabal-devel, perhaps some other Cabal hacker can help.
Yes, so what changed is that configuring ghc now tests ld to see if it supports the -x flag. This involves creating some temp files. At the moment it assumes that the dist dir exists since this is the case when we're doing configure. Unfortunately of course this is not the case when cabal-install configures the compiler.
I suppose the right thing is for the ghc ld -x test to use the temp dir rather than assuming the existence of the dist dir. I'm not sure how we should work around that in cabal-install to make it work with the released Cabal.
Crap, so cabal-install is totally broken with 6.8.1. cabal-install is trying to find ld even before it has started to install a package. We could cd to $tmpdir/something, and run findCompiler there. Nasty hack workaround though. I guess we need to start testing cabal-install with Cabal releases before they are released... /Björn

On Mon, 2007-11-05 at 09:46 +0100, Bjorn Bringert wrote:
Crap, so cabal-install is totally broken with 6.8.1.
Yep :-(
cabal-install is trying to find ld even before it has started to install a package. We could cd to $tmpdir/something, and run findCompiler there. Nasty hack workaround though.
Probably have to do that until we think it's ok to require a later cabal with this issue fixed.
I guess we need to start testing cabal-install with Cabal releases before they are released...
Yeah. Duncan
participants (2)
-
Bjorn Bringert
-
Duncan Coutts