Re: [Haskell-cafe] impoosible dependencies

2011-04-21 Thread KQ

On Wed, 20 Apr 2011 16:45:27 -0700, Carter Schonwald car...@cs.dartmouth.edu 
wrote:


Kevin,
what version of cabal install are you using?


cabal-install version 0.8.2
using version 1.8.0.6 of the Cabal library


I ask because prior to the 1.10.* version series, cabal would have a much
harder time correctly choosing versions of dependencies, which at least
for me often manifested as such confusions in caba regarding selecting
versions. Prior to said cabal version the solution I'd often do is figure
out what the transitive  dependencies were, recompile them together,
iterate that, and that would eventually make the problems  go away.

point being: the issue is probably conflicting versions of the same
libraries are being used by different libraries that are among the
dependencies, and cabal is getting confused


Is it safe to upgrade cabal-install and the cabal library or are those part of 
the GHC package and I'll end up making things even worse?

I may have corrupted libraries; I think a re-install is in order soon, but I've 
been avoiding that until I get to the end of my current activities.

-KQ

P.S.  I send Rogan the output he requested below privately to avoid spamming 
this list.



On Wed, Apr 20, 2011 at 7:34 PM, Rogan Creswick cresw...@gmail.com wrote:


On Wed, Apr 20, 2011 at 4:18 PM, Kevin Quick qu...@sparq.org wrote:

 With --verbose=3 this appears to be post-link running cabal-dev itself:

 $ cabal install cabal-dev --verbose=3


Could you send me (or post to hpaste) the complete output of 'cabal
install cabal-dev --verbose=3' ?

--Rogan

 ...

 *** Deleting temp files:
 Deleting:
 link: linkables are ...
 LinkableM (Wed Apr 20 16:14:58 MST 2011) main:Main
   [DotO /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/Main.o]
 Linking /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup
...
 *** Linker:
 ...[verbose GCC output elided]...
 rtend.o
/nix/store/l8x3fdy1r6zf441vnqa87lzsvxrjbdz9-glibc-2.11.1/lib/crtn.o
 link: done
 *** Deleting temp files:
 Deleting:
 *** Deleting temp dirs:
 Deleting: /tmp/ghc13224_0
 /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup configure
 --verbose=3 --ghc --prefix=/home/kquick/.cabal --user
--flags=-build-tests
 --flags=-no-cabal-dev
--extra-include-dirs=/home/kquick/.nix-profile/include
 --extra-lib-dirs=/home/kquick/.nix-profile/lib --constraint=Cabal
==1.10.1.0
 --constraint=HTTP ==4000.1.1 --constraint=base ==4.2.0.2
 --constraint=bytestring ==0.9.1.9 --constraint=directory ==1.0.1.1
 --constraint=filepath ==1.1.0.4 --constraint=mtl ==2.0.1.0
 --constraint=network ==2.3.0.2 --constraint=pretty ==1.0.1.1
 --constraint=process ==1.0.1.3 --constraint=tar ==0.3.1.0
--constraint=zlib
 ==0.5.3.1
 cabal: Error: some packages failed to install:
 cabal-dev-0.7.4.1 failed during the configure step. The exception was:
 ExitFailure 11
 $


 --
 -KQ


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe






--
-KQ

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] impoosible dependencies

2011-04-21 Thread Rogan Creswick
On Thu, Apr 21, 2011 at 8:20 AM, KQ qu...@sparq.org wrote:
 On Wed, 20 Apr 2011 16:45:27 -0700, Carter Schonwald
 car...@cs.dartmouth.edu wrote:

 Kevin,
 what version of cabal install are you using?

 cabal-install version 0.8.2
 using version 1.8.0.6 of the Cabal library

snip

 Is it safe to upgrade cabal-install and the cabal library or are those part
 of the GHC package and I'll end up making things even worse?

It is safe to do this.  You will probably need to specify the full
version, since despite being included in the latest haskell platform,
cabal-install-0.10.x is in the list of things that cabal won't install
automatically. (in the same way that it selects versions of parsec...)

$ cabal-install Cabal-1.10.1.0
then
$ cabal-install cabal-install-0.10.2

should do it.

(I haven't had a chance to look at the detailed output you sent yet.)

--Rogan



 I may have corrupted libraries; I think a re-install is in order soon, but
 I've been avoiding that until I get to the end of my current activities.

 -KQ

 P.S.  I send Rogan the output he requested below privately to avoid spamming
 this list.


 On Wed, Apr 20, 2011 at 7:34 PM, Rogan Creswick cresw...@gmail.com
 wrote:

 On Wed, Apr 20, 2011 at 4:18 PM, Kevin Quick qu...@sparq.org wrote:
 
  With --verbose=3 this appears to be post-link running cabal-dev itself:
 
  $ cabal install cabal-dev --verbose=3
 

 Could you send me (or post to hpaste) the complete output of 'cabal
 install cabal-dev --verbose=3' ?

 --Rogan

  ...
 
  *** Deleting temp files:
  Deleting:
  link: linkables are ...
  LinkableM (Wed Apr 20 16:14:58 MST 2011) main:Main
    [DotO
  /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/Main.o]
  Linking /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup
 ...
  *** Linker:
  ...[verbose GCC output elided]...
  rtend.o
 /nix/store/l8x3fdy1r6zf441vnqa87lzsvxrjbdz9-glibc-2.11.1/lib/crtn.o
  link: done
  *** Deleting temp files:
  Deleting:
  *** Deleting temp dirs:
  Deleting: /tmp/ghc13224_0
  /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup
  configure
  --verbose=3 --ghc --prefix=/home/kquick/.cabal --user
 --flags=-build-tests
  --flags=-no-cabal-dev
 --extra-include-dirs=/home/kquick/.nix-profile/include
  --extra-lib-dirs=/home/kquick/.nix-profile/lib --constraint=Cabal
 ==1.10.1.0
  --constraint=HTTP ==4000.1.1 --constraint=base ==4.2.0.2
  --constraint=bytestring ==0.9.1.9 --constraint=directory ==1.0.1.1
  --constraint=filepath ==1.1.0.4 --constraint=mtl ==2.0.1.0
  --constraint=network ==2.3.0.2 --constraint=pretty ==1.0.1.1
  --constraint=process ==1.0.1.3 --constraint=tar ==0.3.1.0
 --constraint=zlib
  ==0.5.3.1
  cabal: Error: some packages failed to install:
  cabal-dev-0.7.4.1 failed during the configure step. The exception was:
  ExitFailure 11
  $
 
 
  --
  -KQ
 

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




 --
 -KQ


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] impoosible dependencies

2011-04-21 Thread Erik Hesselink
On Thu, Apr 21, 2011 at 19:25, Rogan Creswick cresw...@gmail.com wrote:
 It is safe to do this.  You will probably need to specify the full
 version, since despite being included in the latest haskell platform,
 cabal-install-0.10.x is in the list of things that cabal won't install
 automatically. (in the same way that it selects versions of parsec...)

It doesn't seem to do this anymore for parsec. The preferred-versions
now look like this:

base  4
cabal-install  0.10
network  2.2.3 || = 2.2.4

Or am I looking at the wrong thing?

Erik

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] impoosible dependencies

2011-04-21 Thread Rogan Creswick
On Thu, Apr 21, 2011 at 11:37 AM, Erik Hesselink hessel...@gmail.com wrote:
 It doesn't seem to do this anymore for parsec. The preferred-versions
 now look like this:

 base  4
 cabal-install  0.10
 network  2.2.3 || = 2.2.4

 Or am I looking at the wrong thing?

Oh, interesting.  I think you're looking at the right thing.  I
haven't checked it since cabal-install-0.10 came out (I have the
hardest time finding that url...).

--Rogan


 Erik


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] impoosible dependencies

2011-04-20 Thread Kevin Quick

Hmmm...

$ cabal update
$ cabal install hakyll
Resolving dependencies...
cabal: dependencies conflict: ghc-6.12.3 requires unix ==2.4.0.2 however
unix-2.4.0.2 was excluded because ghc-6.12.3 requires unix ==2.4.1.0
$

Any advice (other than upgrading to 7.0.3, which is not an option at the 
moment)?

--
-KQ

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] impoosible dependencies

2011-04-20 Thread Rogan Creswick
On Wed, Apr 20, 2011 at 2:51 PM, Kevin Quick qu...@sparq.org wrote:
 $ cabal update
 $ cabal install hakyll
 Resolving dependencies...
 cabal: dependencies conflict: ghc-6.12.3 requires unix ==2.4.0.2 however
 unix-2.4.0.2 was excluded because ghc-6.12.3 requires unix ==2.4.1.0
 $

 Any advice (other than upgrading to 7.0.3, which is not an option at the
 moment)?

You can run the build with verbose output (--verbose=3) and get more
details about why the impossible dependencies were required, or you
can build your application (whatever relies on hakyll) with cabal-dev
-- I've been able to build hakyll that way on my machine with
ghc-6.12.3, so I suspect there is some unexpected dependency in your
local package db that is causing cabal to make a series of undesirable
version selections.

--Rogan

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] impoosible dependencies

2011-04-20 Thread Kevin Quick

On Wed, 20 Apr 2011 15:18:21 -0700, Rogan Creswick cresw...@gmail.com wrote:


On Wed, Apr 20, 2011 at 2:51 PM, Kevin Quick qu...@sparq.org wrote:

$ cabal update
$ cabal install hakyll
Resolving dependencies...
cabal: dependencies conflict: ghc-6.12.3 requires unix ==2.4.0.2 however
unix-2.4.0.2 was excluded because ghc-6.12.3 requires unix ==2.4.1.0
$

Any advice (other than upgrading to 7.0.3, which is not an option at the
moment)?


You can run the build with verbose output (--verbose=3) and get more
details about why the impossible dependencies were required,


No joy: hakyll itself requires unix 2.4, so the following are discarded:  
unix-2.0, 2.2.0.0, 2.3.0.0, 2.3.1.0, 2.3.2.0,

However, that's the only unix discard before the error occurs somewhat later 
on, only now the error is not with unix but with array (which is not discarded 
by anything):

...

selecting text-0.11.0.5 (installed or hackage) and discarding text-0.11.0.0,
0.11.0.1, 0.11.0.2, 0.11.0.3, 0.11.0.4, 0.11.0.6 and 0.11.0.7
selecting deepseq-1.1.0.2 (installed or hackage) and discarding
deepseq-1.1.0.0 and 1.1.0.1
selecting QuickCheck-2.4.0.1 (installed or hackage) and discarding
QuickCheck-2.1, 2.1.0.1, 2.1.0.2, 2.1.0.3, 2.1.1, 2.1.1.1, 2.1.2, 2.2, 2.3,
2.3.0.1, 2.3.0.2 and 2.4
selecting
cabal: dependencies conflict: ghc-6.12.3 requires array ==0.3.0.2 however
array-0.3.0.2 was excluded because ghc-6.12.3 requires array ==0.3.0.1
$

Its starting to look like there's something very wrong with cabal databases.  
My first thought is to remove my local version, but I'm hesitant because I do 
have other haskell work I'm in progress on that isn't broken and I don't want 
to break it.  :-)


or you
can build your application (whatever relies on hakyll) with cabal-dev
-- I've been able to build hakyll that way on my machine with
ghc-6.12.3, so I suspect there is some unexpected dependency in your
local package db that is causing cabal to make a series of undesirable
version selections.

--Rogan


No joy there either.  There were some preliminary package version complaints 
that I tried to resolve, but the end result is:

$ cabal install cabal-dev
Resolving dependencies...
[1 of 1] Compiling Main ( 
/tmp/cabal-dev-0.7.4.113115/cabal-dev-0.7.4.1/Setup.hs, 
/tmp/cabal-dev-0.7.4.113115/cabal-dev-0.7.4.1/dist/setup/Main.o )

/tmp/cabal-dev-0.7.4.113115/cabal-dev-0.7.4.1/Setup.hs:7:47:
Warning: In the use of `buildVerbose'
 (imported from Distribution.Simple.Setup):
 Deprecated: Use buildVerbosity instead
Linking /tmp/cabal-dev-0.7.4.113115/cabal-dev-0.7.4.1/dist/setup/setup ...
cabal: Error: some packages failed to install:
cabal-dev-0.7.4.1 failed during the configure step. The exception was:
ExitFailure 11
$

With --verbose=3 this appears to be post-link running cabal-dev itself:

$ cabal install cabal-dev --verbose=3
...

*** Deleting temp files:
Deleting:
link: linkables are ...
LinkableM (Wed Apr 20 16:14:58 MST 2011) main:Main
   [DotO /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/Main.o]
Linking /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup ...
*** Linker:
...[verbose GCC output elided]...
rtend.o /nix/store/l8x3fdy1r6zf441vnqa87lzsvxrjbdz9-glibc-2.11.1/lib/crtn.o
link: done
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting: /tmp/ghc13224_0
/tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup configure
--verbose=3 --ghc --prefix=/home/kquick/.cabal --user --flags=-build-tests
--flags=-no-cabal-dev --extra-include-dirs=/home/kquick/.nix-profile/include
--extra-lib-dirs=/home/kquick/.nix-profile/lib --constraint=Cabal ==1.10.1.0
--constraint=HTTP ==4000.1.1 --constraint=base ==4.2.0.2
--constraint=bytestring ==0.9.1.9 --constraint=directory ==1.0.1.1
--constraint=filepath ==1.1.0.4 --constraint=mtl ==2.0.1.0
--constraint=network ==2.3.0.2 --constraint=pretty ==1.0.1.1
--constraint=process ==1.0.1.3 --constraint=tar ==0.3.1.0 --constraint=zlib
==0.5.3.1
cabal: Error: some packages failed to install:
cabal-dev-0.7.4.1 failed during the configure step. The exception was:
ExitFailure 11
$


--
-KQ

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] impoosible dependencies

2011-04-20 Thread Rogan Creswick
On Wed, Apr 20, 2011 at 4:18 PM, Kevin Quick qu...@sparq.org wrote:

 With --verbose=3 this appears to be post-link running cabal-dev itself:

 $ cabal install cabal-dev --verbose=3


Could you send me (or post to hpaste) the complete output of 'cabal
install cabal-dev --verbose=3' ?

--Rogan

 ...

 *** Deleting temp files:
 Deleting:
 link: linkables are ...
 LinkableM (Wed Apr 20 16:14:58 MST 2011) main:Main
   [DotO /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/Main.o]
 Linking /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup ...
 *** Linker:
 ...[verbose GCC output elided]...
 rtend.o /nix/store/l8x3fdy1r6zf441vnqa87lzsvxrjbdz9-glibc-2.11.1/lib/crtn.o
 link: done
 *** Deleting temp files:
 Deleting:
 *** Deleting temp dirs:
 Deleting: /tmp/ghc13224_0
 /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup configure
 --verbose=3 --ghc --prefix=/home/kquick/.cabal --user --flags=-build-tests
 --flags=-no-cabal-dev --extra-include-dirs=/home/kquick/.nix-profile/include
 --extra-lib-dirs=/home/kquick/.nix-profile/lib --constraint=Cabal ==1.10.1.0
 --constraint=HTTP ==4000.1.1 --constraint=base ==4.2.0.2
 --constraint=bytestring ==0.9.1.9 --constraint=directory ==1.0.1.1
 --constraint=filepath ==1.1.0.4 --constraint=mtl ==2.0.1.0
 --constraint=network ==2.3.0.2 --constraint=pretty ==1.0.1.1
 --constraint=process ==1.0.1.3 --constraint=tar ==0.3.1.0 --constraint=zlib
 ==0.5.3.1
 cabal: Error: some packages failed to install:
 cabal-dev-0.7.4.1 failed during the configure step. The exception was:
 ExitFailure 11
 $


 --
 -KQ


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] impoosible dependencies

2011-04-20 Thread Carter Schonwald
Kevin,
what version of cabal install are you using?

I ask because prior to the 1.10.* version series, cabal would have a much
harder time correctly choosing versions of dependencies, which at least
for me often manifested as such confusions in caba regarding selecting
versions. Prior to said cabal version the solution I'd often do is figure
out what the transitive  dependencies were, recompile them together,
iterate that, and that would eventually make the problems  go away.

point being: the issue is probably conflicting versions of the same
libraries are being used by different libraries that are among the
dependencies, and cabal is getting confused

On Wed, Apr 20, 2011 at 7:34 PM, Rogan Creswick cresw...@gmail.com wrote:

 On Wed, Apr 20, 2011 at 4:18 PM, Kevin Quick qu...@sparq.org wrote:
 
  With --verbose=3 this appears to be post-link running cabal-dev itself:
 
  $ cabal install cabal-dev --verbose=3
 

 Could you send me (or post to hpaste) the complete output of 'cabal
 install cabal-dev --verbose=3' ?

 --Rogan

  ...
 
  *** Deleting temp files:
  Deleting:
  link: linkables are ...
  LinkableM (Wed Apr 20 16:14:58 MST 2011) main:Main
[DotO /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/Main.o]
  Linking /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup
 ...
  *** Linker:
  ...[verbose GCC output elided]...
  rtend.o
 /nix/store/l8x3fdy1r6zf441vnqa87lzsvxrjbdz9-glibc-2.11.1/lib/crtn.o
  link: done
  *** Deleting temp files:
  Deleting:
  *** Deleting temp dirs:
  Deleting: /tmp/ghc13224_0
  /tmp/cabal-dev-0.7.4.113193/cabal-dev-0.7.4.1/dist/setup/setup configure
  --verbose=3 --ghc --prefix=/home/kquick/.cabal --user
 --flags=-build-tests
  --flags=-no-cabal-dev
 --extra-include-dirs=/home/kquick/.nix-profile/include
  --extra-lib-dirs=/home/kquick/.nix-profile/lib --constraint=Cabal
 ==1.10.1.0
  --constraint=HTTP ==4000.1.1 --constraint=base ==4.2.0.2
  --constraint=bytestring ==0.9.1.9 --constraint=directory ==1.0.1.1
  --constraint=filepath ==1.1.0.4 --constraint=mtl ==2.0.1.0
  --constraint=network ==2.3.0.2 --constraint=pretty ==1.0.1.1
  --constraint=process ==1.0.1.3 --constraint=tar ==0.3.1.0
 --constraint=zlib
  ==0.5.3.1
  cabal: Error: some packages failed to install:
  cabal-dev-0.7.4.1 failed during the configure step. The exception was:
  ExitFailure 11
  $
 
 
  --
  -KQ
 

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] impoosible dependencies

2011-04-20 Thread Albert Y. C. Lai

On 11-04-20 05:51 PM, Kevin Quick wrote:

cabal: dependencies conflict: ghc-6.12.3 requires unix ==2.4.0.2 however
unix-2.4.0.2 was excluded because ghc-6.12.3 requires unix ==2.4.1.0


[and later]


cabal: dependencies conflict: ghc-6.12.3 requires array ==0.3.0.2 however
array-0.3.0.2 was excluded because ghc-6.12.3 requires array ==0.3.0.1


This no longer points to a hakyll problem, not even a cabal problem per 
se. This is a problem with package inconsistencies you already have; 
cabal merely does garbage-in garbage-out.


The output of ghc -v will display wonders.

The output of ghc-pkg list -v will also be of help.

If you are interested in not treating package databases as a black box 
plug-and-play appliance that just works (clearly, it doesn't), see my

http://www.vex.net/~trebla/haskell/sicp.xhtml

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe