Missing or recursive dependencies

Hi beginners. I'm getting an odd problem quite a lot recently: ghc -fglasgow-exts --make -O2 -W X.hs -v -o X package Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is shadowed by package Cabal-1.8.0.6-c995b90190c27e1dfa2ab3d5434fabef package QuickCheck-2.1.1.1-c7435cb0d5b5de72fe9540c48335606d is unusable due to missing or recursive dependencies: ghc-6.12.3-66a382195c8a71849653439b67021fd1 package bin-package-db-0.0.0.0-0dffb74a73bb78b5dc02ca941bbcbea0 is unusable due to missing or recursive dependencies: Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 package category-extras-0.53.5-ee54cd5c810a6c004a1b7a276d0e0076 is unusable due to missing or recursive dependencies: ghc-6.12.3-66a382195c8a71849653439b67021fd1 package comonad-random-0.1.2-897a5da683d269c3b2db3e03ac43279b is unusable due to missing or recursive dependencies: category-extras-0.53.5-ee54cd5c810a6c004a1b7a276d0e0076 ... I've asked on irc, and the consensus is that something is very wrong, however we weren't able to diagnose the cause. It would probably be worth looking at on-list for future reference. Does anyone have any ideas?

On Thursday 02 September 2010 11:31:01, Lyndon Maydwell wrote:
Hi beginners.
I'm getting an odd problem quite a lot recently:
ghc -fglasgow-exts --make -O2 -W X.hs -v -o X
package Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is shadowed by package Cabal-1.8.0.6-c995b90190c27e1dfa2ab3d5434fabef
You have two versions of Cabal-1.8.0.6, probably you should unregister the one in the user-db. Anyway, run ghc-pkg check first. Fix what that reports as broken by unregistering/reinstalling. Since what is shown below all directly or indirectly traces to ghc-6.12.3, which depends on Cabal-1.8.0.6, your two versions of that are probably the root cause, so I'd start with Cabal.
package QuickCheck-2.1.1.1-c7435cb0d5b5de72fe9540c48335606d is unusable due to missing or recursive dependencies: ghc-6.12.3-66a382195c8a71849653439b67021fd1 package bin-package-db-0.0.0.0-0dffb74a73bb78b5dc02ca941bbcbea0 is unusable due to missing or recursive dependencies: Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 package category-extras-0.53.5-ee54cd5c810a6c004a1b7a276d0e0076 is unusable due to missing or recursive dependencies: ghc-6.12.3-66a382195c8a71849653439b67021fd1 package comonad-random-0.1.2-897a5da683d269c3b2db3e03ac43279b is unusable due to missing or recursive dependencies: category-extras-0.53.5-ee54cd5c810a6c004a1b7a276d0e0076 ...
I've asked on irc, and the consensus is that something is very wrong, however we weren't able to diagnose the cause. It would probably be worth looking at on-list for future reference.
Does anyone have any ideas?

The thing is that ghc-pkg check returns nothing.
On Thu, Sep 2, 2010 at 5:44 PM, Daniel Fischer
On Thursday 02 September 2010 11:31:01, Lyndon Maydwell wrote:
Hi beginners.
I'm getting an odd problem quite a lot recently:
ghc -fglasgow-exts --make -O2 -W X.hs -v -o X
package Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is shadowed by package Cabal-1.8.0.6-c995b90190c27e1dfa2ab3d5434fabef
You have two versions of Cabal-1.8.0.6, probably you should unregister the one in the user-db.
Anyway, run ghc-pkg check first. Fix what that reports as broken by unregistering/reinstalling. Since what is shown below all directly or indirectly traces to ghc-6.12.3, which depends on Cabal-1.8.0.6, your two versions of that are probably the root cause, so I'd start with Cabal.
package QuickCheck-2.1.1.1-c7435cb0d5b5de72fe9540c48335606d is unusable due to missing or recursive dependencies: ghc-6.12.3-66a382195c8a71849653439b67021fd1 package bin-package-db-0.0.0.0-0dffb74a73bb78b5dc02ca941bbcbea0 is unusable due to missing or recursive dependencies: Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 package category-extras-0.53.5-ee54cd5c810a6c004a1b7a276d0e0076 is unusable due to missing or recursive dependencies: ghc-6.12.3-66a382195c8a71849653439b67021fd1 package comonad-random-0.1.2-897a5da683d269c3b2db3e03ac43279b is unusable due to missing or recursive dependencies: category-extras-0.53.5-ee54cd5c810a6c004a1b7a276d0e0076 ...
I've asked on irc, and the consensus is that something is very wrong, however we weren't able to diagnose the cause. It would probably be worth looking at on-list for future reference.
Does anyone have any ideas?

On Thursday 02 September 2010 17:27:49, Lyndon Maydwell wrote:
The thing is that ghc-pkg check returns nothing.
Okay, I think that's a good sign, sort of. Does $ ghc-pkg list Cabal list one Cabal-1.8.0.6 in the global db and one in the user-db? If so, unregister the one in the user-db $ ghc-pkg unregister --user Cabal-1.8.0.6 If it complains that would break anything, post the message.
On Thu, Sep 2, 2010 at 5:44 PM, Daniel Fischer
wrote:
On Thursday 02 September 2010 11:31:01, Lyndon Maydwell wrote:
Hi beginners.
I'm getting an odd problem quite a lot recently:
ghc -fglasgow-exts --make -O2 -W X.hs -v -o X
package Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is shadowed by package Cabal-1.8.0.6-c995b90190c27e1dfa2ab3d5434fabef
You have two versions of Cabal-1.8.0.6, probably you should unregister the one in the user-db.

Ah.
/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/package.conf.d
Cabal-1.8.0.6
/Users/lyndon/.ghc/i386-darwin-6.12.3/package.conf.d
Cabal-1.8.0.6
I've been making all my cabal-installs from my user account though.
Shouldn't I disable the global cabal?
On Fri, Sep 3, 2010 at 12:11 AM, Daniel Fischer
On Thursday 02 September 2010 17:27:49, Lyndon Maydwell wrote:
The thing is that ghc-pkg check returns nothing.
Okay, I think that's a good sign, sort of. Does
$ ghc-pkg list Cabal
list one Cabal-1.8.0.6 in the global db and one in the user-db? If so, unregister the one in the user-db
$ ghc-pkg unregister --user Cabal-1.8.0.6
If it complains that would break anything, post the message.
On Thu, Sep 2, 2010 at 5:44 PM, Daniel Fischer
wrote:
On Thursday 02 September 2010 11:31:01, Lyndon Maydwell wrote:
Hi beginners.
I'm getting an odd problem quite a lot recently:
ghc -fglasgow-exts --make -O2 -W X.hs -v -o X
package Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is shadowed by package Cabal-1.8.0.6-c995b90190c27e1dfa2ab3d5434fabef
You have two versions of Cabal-1.8.0.6, probably you should unregister the one in the user-db.

On Thursday 02 September 2010 18:28:09, Lyndon Maydwell wrote:
I tried it, and it seems to have cleared up the error.
Unregister tha Cabal in the user-db, I presume. ghc-6.12.3 depends on the global one, as that's the one built together with the compiler. Generally, unregistering stuff that came with the compiler itself is a bad idea.
participants (2)
-
Daniel Fischer
-
Lyndon Maydwell