error with package ghc-6.10.1 and its dependency on process-1.0.1.[01]

Dear all I'm attempting to install the latest haddock version via 'hackage' and I'm getting the error: Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.0 however process-1.0.1.0 was excluded because ghc-6.10.1 requires process ==1.0.1.1 I tried re-installing ghc, but I get the same problem. Any suggestions? regards allan -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

On Fri, 2008-11-21 at 15:42 +0000, allan wrote:
Dear all
I'm attempting to install the latest haddock version via 'hackage' and I'm getting the error: Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.0 however process-1.0.1.0 was excluded because ghc-6.10.1 requires process ==1.0.1.1
I tried re-installing ghc, but I get the same problem. Any suggestions?
Hmm, that's odd. It makes it look like the ghc api package depends on two different versions of the process library. The output of "cabal install -v haddock" might give us more of a hint. That and "ghc-pkg field ghc depends" Duncan

Hi Thanks for the reply, here is a small terminal session with the commands you suggest as well as "ghc-pkg list" allan@delgado:~$ cabal install -v haddock /home/allan/install//bin/ghc --numeric-version looking for package tool: ghc-pkg near compiler in /home/allan/install//bin found package tool in /home/allan/install//bin/ghc-pkg /home/allan/install//bin/ghc-pkg --version /home/allan/install//bin/ghc --supported-languages Reading installed packages... /home/allan/install//bin/ghc-pkg dump --global /home/allan/install//bin/ghc-pkg dump --user Reading available packages... Resolving dependencies... selecting haddock-2.4.1 (hackage) and discarding Cabal-1.1.6, 1.2.1, 1.2.2.0, 1.2.3.0, 1.2.4.0, 1.4.0.0, 1.4.0.1, 1.4.0.2, haddock-0.8, 0.9, 2.0.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.3.0 and 2.4.0 selecting Cabal-1.6.0.1 (installed or hackage) selecting cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.0 however process-1.0.1.0 was excluded because ghc-6.10.1 requires process ==1.0.1.1 allan@delgado:~$ ghc-pkg list /home/allan/install/lib/ghc-6.10.1/./package.conf: Cabal-1.6.0.1, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0, base-3.0.3.0, base-4.0.0.0, bytestring-0.9.1.4, cairo-0.9.13, containers-0.2.0.0, directory-1.0.0.2, (dph-base-0.3), (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3), (dph-seq-0.3), filepath-1.1.0.1, (ghc-6.10.1), ghc-prim-0.1.0.0, glade-0.9.13, glib-0.9.13, gtk-0.9.13, gtkglext-0.9.13, haddock-2.3.0, haskell-src-1.0.1.3, haskell98-1.0.1.0, hpc-0.5.0.2, html-1.0.1.2, integer-0.1.0.0, mozembed-0.9.13, mtl-1.1.0.2, network-2.2.0.1, old-locale-1.0.0.1, old-time-1.0.0.1, packedstring-0.1.0.1, parallel-1.1.0.0, parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.0, random-1.0.0.1, regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, soegtk-0.9.13, sourceview-0.9.13, stm-2.1.1.2, syb-0.1.0.0, template-haskell-2.3.0.0, time-1.1.2.2, unix-2.3.1.0, xhtml-3000.2.0.1 /home/allan/.ghc/i386-linux-6.10.1/package.conf: Cabal-1.6.0.1, Chart-0.9, Diff-0.1.2, HTTP-3001.1.4, binary-0.4.4, cgi-3001.1.7.0, cpphs-1.6, data-accessor-0.1.4, data-accessor-template-0.1.4, fgl-5.4.2.2, fingertree-0.0, ghc-paths-0.1.0.5, graphviz-2008.9.20, haskell98-1.0.1.0, hmatrix-0.5.0.1, parsec-2.1.0.1, parsec-3.0.0, polyparse-1.1, process-1.0.1.1, pureMD5-0.2.4, readline-1.0.1.0, regex-base-0.93.1, regex-compat-0.71.0.1, regex-posix-0.72.0.3, regex-tdfa-0.95.2, rosezipper-0.1, storable-complex-0.1, terminfo-0.2.2.1, unix-compat-0.1.2.1, utf8-string-0.3.3, vty-3.1.2, zlib-0.5.0.0 allan@delgado:~$ ghc-pkg field ghc depends depends: Cabal-1.6.0.1 array-0.2.0.0 base-4.0.0.0 bytestring-0.9.1.4 containers-0.2.0.0 directory-1.0.0.2 filepath-1.1.0.1 haskell98-1.0.1.0 hpc-0.5.0.2 old-time-1.0.0.1 process-1.0.1.0 template-haskell-2.3.0.0 unix-2.3.1.0 allan@delgado:~$ ghc-pkg unregister process-1.0.1.1 ghc-pkg: unregistering process-1.0.1.1 would break the following packages: haskell98-1.0.1.0 graphviz-2008.9.20 readline-1.0.1.0 Cabal-1.6.0.1 (use --force to override) allan@delgado:~$ ghc-pkg unregister process-1.0.1.0 ghc-pkg: unregistering process-1.0.1.0 would break the following packages: haddock-2.3.0 ghc-6.10.1 Cabal-1.6.0.1 haskell98-1.0.1.0 (use --force to override) Duncan Coutts wrote:
On Fri, 2008-11-21 at 15:42 +0000, allan wrote:
Dear all
I'm attempting to install the latest haddock version via 'hackage' and I'm getting the error: Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.0 however process-1.0.1.0 was excluded because ghc-6.10.1 requires process ==1.0.1.1
I tried re-installing ghc, but I get the same problem. Any suggestions?
Hmm, that's odd. It makes it look like the ghc api package depends on two different versions of the process library.
The output of "cabal install -v haddock" might give us more of a hint. That and "ghc-pkg field ghc depends"
Duncan
-- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

Could it be that the cabal gets confused because there are two
versions of Cabal-1.6.0.1 but which probably depend on two different
versions of process?
2008/11/24 allan
Hi
Thanks for the reply, here is a small terminal session with the commands you suggest as well as "ghc-pkg list"
allan@delgado:~$ cabal install -v haddock /home/allan/install//bin/ghc --numeric-version looking for package tool: ghc-pkg near compiler in /home/allan/install//bin found package tool in /home/allan/install//bin/ghc-pkg /home/allan/install//bin/ghc-pkg --version /home/allan/install//bin/ghc --supported-languages Reading installed packages... /home/allan/install//bin/ghc-pkg dump --global /home/allan/install//bin/ghc-pkg dump --user Reading available packages... Resolving dependencies... selecting haddock-2.4.1 (hackage) and discarding Cabal-1.1.6, 1.2.1, 1.2.2.0, 1.2.3.0, 1.2.4.0, 1.4.0.0, 1.4.0.1, 1.4.0.2, haddock-0.8, 0.9, 2.0.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.3.0 and 2.4.0 selecting Cabal-1.6.0.1 (installed or hackage) selecting cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.0 however process-1.0.1.0 was excluded because ghc-6.10.1 requires process ==1.0.1.1
allan@delgado:~$ ghc-pkg list /home/allan/install/lib/ghc-6.10.1/./package.conf: Cabal-1.6.0.1, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0, base-3.0.3.0, base-4.0.0.0, bytestring-0.9.1.4, cairo-0.9.13, containers-0.2.0.0, directory-1.0.0.2, (dph-base-0.3), (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3), (dph-seq-0.3), filepath-1.1.0.1, (ghc-6.10.1), ghc-prim-0.1.0.0, glade-0.9.13, glib-0.9.13, gtk-0.9.13, gtkglext-0.9.13, haddock-2.3.0, haskell-src-1.0.1.3, haskell98-1.0.1.0, hpc-0.5.0.2, html-1.0.1.2, integer-0.1.0.0, mozembed-0.9.13, mtl-1.1.0.2, network-2.2.0.1, old-locale-1.0.0.1, old-time-1.0.0.1, packedstring-0.1.0.1, parallel-1.1.0.0, parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.0, random-1.0.0.1, regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, soegtk-0.9.13, sourceview-0.9.13, stm-2.1.1.2, syb-0.1.0.0, template-haskell-2.3.0.0, time-1.1.2.2, unix-2.3.1.0, xhtml-3000.2.0.1 /home/allan/.ghc/i386-linux-6.10.1/package.conf: Cabal-1.6.0.1, Chart-0.9, Diff-0.1.2, HTTP-3001.1.4, binary-0.4.4, cgi-3001.1.7.0, cpphs-1.6, data-accessor-0.1.4, data-accessor-template-0.1.4, fgl-5.4.2.2, fingertree-0.0, ghc-paths-0.1.0.5, graphviz-2008.9.20, haskell98-1.0.1.0, hmatrix-0.5.0.1, parsec-2.1.0.1, parsec-3.0.0, polyparse-1.1, process-1.0.1.1, pureMD5-0.2.4, readline-1.0.1.0, regex-base-0.93.1, regex-compat-0.71.0.1, regex-posix-0.72.0.3, regex-tdfa-0.95.2, rosezipper-0.1, storable-complex-0.1, terminfo-0.2.2.1, unix-compat-0.1.2.1, utf8-string-0.3.3, vty-3.1.2, zlib-0.5.0.0
allan@delgado:~$ ghc-pkg field ghc depends depends: Cabal-1.6.0.1 array-0.2.0.0 base-4.0.0.0 bytestring-0.9.1.4 containers-0.2.0.0 directory-1.0.0.2 filepath-1.1.0.1 haskell98-1.0.1.0 hpc-0.5.0.2 old-time-1.0.0.1 process-1.0.1.0 template-haskell-2.3.0.0 unix-2.3.1.0
allan@delgado:~$ ghc-pkg unregister process-1.0.1.1 ghc-pkg: unregistering process-1.0.1.1 would break the following packages: haskell98-1.0.1.0 graphviz-2008.9.20 readline-1.0.1.0 Cabal-1.6.0.1 (use --force to override)
allan@delgado:~$ ghc-pkg unregister process-1.0.1.0 ghc-pkg: unregistering process-1.0.1.0 would break the following packages: haddock-2.3.0 ghc-6.10.1 Cabal-1.6.0.1 haskell98-1.0.1.0 (use --force to override)
Duncan Coutts wrote:
On Fri, 2008-11-21 at 15:42 +0000, allan wrote:
Dear all
I'm attempting to install the latest haddock version via 'hackage' and I'm getting the error: Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.0 however process-1.0.1.0 was excluded because ghc-6.10.1 requires process ==1.0.1.1
I tried re-installing ghc, but I get the same problem. Any suggestions?
Hmm, that's odd. It makes it look like the ghc api package depends on two different versions of the process library.
The output of "cabal install -v haddock" might give us more of a hint. That and "ghc-pkg field ghc depends"
Duncan
-- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
_______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel
-- Push the envelope. Watch it bend.

On Mon, 2008-11-24 at 20:05 +0000, Thomas Schilling wrote:
Could it be that the cabal gets confused because there are two versions of Cabal-1.6.0.1 but which probably depend on two different versions of process?
That could well be it. The user and global package dbs simply get overlayed so identical package versions in the user-db mask ones in the global db. So that would indeed mean that cabal would think that the ghc global package depended on the Cabal package from the user db, which is built against the different version of the process lib. So the workaround for Allan would be to unregister the Cabal-1.6.0.1 from the user db: ghc-pkg unregister --user Cabal-1.6.0.1 and probably to rebuild anything that depends on it. We'll have to think about if there's a better way to manage this. In the longer term I'd like to use hashes to identify installed packages but for now... Duncan

Hi Duncan and Thomas Thanks for the help, unfortunately: ----------------------------------------------------- allan@delgado:~$ ghc-pkg unregister --user Cabal-1.6.0.1 Writing new package config file... done. allan@delgado:~$ cabal install haddock Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.1 however process-1.0.1.1 was excluded because ghc-6.10.1 requires process ==1.0.1.0 allan@delgado:~$ ghc-pkg unregister Cabal-1.6.0.1 ghc-pkg: unregistering Cabal-1.6.0.1 would break the following packages: haddock-2.3.0 ghc-6.10.1 (use -- ------------------------------------------------------ I tried to unregister haddock and then ghc and tried to re-register ghc (by doing 'make install' in the ghc source directory). Unfortunately this put me back in the same place again. To provide a bit more information this all comes from a recent upgrade to ghc-6.10.1. As you can see from the package listing in the previous mail, there aren't that many installed packages (over those installed by ghc). It seems a little strange that this is not a problem for everyone else. It looks to me (albeit inexperienced) that the error occurs during the ghc "make install" target, but then if that were the case I can't see why the same thing wouldn't happen to everyone. regards allan Duncan Coutts wrote:
On Mon, 2008-11-24 at 20:05 +0000, Thomas Schilling wrote:
Could it be that the cabal gets confused because there are two versions of Cabal-1.6.0.1 but which probably depend on two different versions of process?
That could well be it. The user and global package dbs simply get overlayed so identical package versions in the user-db mask ones in the global db. So that would indeed mean that cabal would think that the ghc global package depended on the Cabal package from the user db, which is built against the different version of the process lib.
So the workaround for Allan would be to unregister the Cabal-1.6.0.1 from the user db: ghc-pkg unregister --user Cabal-1.6.0.1 and probably to rebuild anything that depends on it.
We'll have to think about if there's a better way to manage this. In the longer term I'd like to use hashes to identify installed packages but for now...
Duncan
-- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

2008/11/25 allan
Hi Duncan and Thomas
Thanks for the help, unfortunately: ----------------------------------------------------- allan@delgado:~$ ghc-pkg unregister --user Cabal-1.6.0.1 Writing new package config file... done.
allan@delgado:~$ cabal install haddock Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.1 however process-1.0.1.1 was excluded because ghc-6.10.1 requires process ==1.0.1.0
allan@delgado:~$ ghc-pkg unregister Cabal-1.6.0.1 ghc-pkg: unregistering Cabal-1.6.0.1 would break the following packages: haddock-2.3.0 ghc-6.10.1 (use -- ------------------------------------------------------
haskell98 also creates a transitive dependency on process and also shadows the system one. What happens if you do # cabal install -v --global haddock This should ignore all the user packages. There's definitely room for improvement in cabal-install here.
I tried to unregister haddock and then ghc and tried to re-register ghc (by doing 'make install' in the ghc source directory). Unfortunately this put me back in the same place again.
To provide a bit more information this all comes from a recent upgrade to ghc-6.10.1. As you can see from the package listing in the previous mail, there aren't that many installed packages (over those installed by ghc). It seems a little strange that this is not a problem for everyone else. It looks to me (albeit inexperienced) that the error occurs during the ghc "make install" target, but then if that were the case I can't see why the same thing wouldn't happen to everyone.
regards allan
Duncan Coutts wrote:
On Mon, 2008-11-24 at 20:05 +0000, Thomas Schilling wrote:
Could it be that the cabal gets confused because there are two versions of Cabal-1.6.0.1 but which probably depend on two different versions of process?
That could well be it. The user and global package dbs simply get overlayed so identical package versions in the user-db mask ones in the global db. So that would indeed mean that cabal would think that the ghc global package depended on the Cabal package from the user db, which is built against the different version of the process lib.
So the workaround for Allan would be to unregister the Cabal-1.6.0.1 from the user db: ghc-pkg unregister --user Cabal-1.6.0.1 and probably to rebuild anything that depends on it.
We'll have to think about if there's a better way to manage this. In the longer term I'd like to use hashes to identify installed packages but for now...
Duncan
-- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
_______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel
-- Push the envelope. Watch it bend.

Hi Thomas Sorry, I have *just* this second finished doing a re-install. Basically I deleted my local lib directory and my ~/.ghc directory. I then did a re-install of 'ghc 6.10.1' The good news is everything worked as it should. I've now got the latest haddock installed and cabal-install is working exactly as it should. The bad news is of course I now have no way of providing you with extra debugging information. I did however not completely delete my old ~/.ghc directory but move it out of the way. So is it possible I could do a similar thing with --package-db. Here's a transcript (note the directory is ~/.ghc.bck): ]allan@delgado:~/.ghc.bck/i386-linux-6.10.1$ cabal install haddock --package-db ./package.conf Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.1 however process-1.0.1.1 was excluded because ghc-6.10.1 requires process ==1.0.1.0 allan@delgado:~/.ghc.bck/i386-linux-6.10.1$ cabal install haddock --package-db ./package.conf --user Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires process ==1.0.1.1 however process-1.0.1.1 was excluded because ghc-6.10.1 requires process ==1.0.1.0 allan@delgado:~/.ghc.bck/i386-linux-6.10.1$ regards allan Thomas Schilling wrote:
2008/11/25 allan
: Hi Duncan and Thomas
haskell98 also creates a transitive dependency on process and also shadows the system one.
What happens if you do
# cabal install -v --global haddock
This should ignore all the user packages. There's definitely room for improvement in cabal-install here.
-- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
participants (3)
-
allan
-
Duncan Coutts
-
Thomas Schilling