Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install package due to shadowed dependencies #4959

Closed
dwagner-gh opened this issue Dec 18, 2017 · 5 comments
Closed

Cannot install package due to shadowed dependencies #4959

dwagner-gh opened this issue Dec 18, 2017 · 5 comments

Comments

@dwagner-gh
Copy link

dwagner-gh commented Dec 18, 2017

Hi,

when running "cabal install gloss==1.11.*" on linux mint I get:

Resolving dependencies...
Downloading bmp-1.2.6.3...
Configuring bmp-1.2.6.3...
Building bmp-1.2.6.3...
Installed bmp-1.2.6.3
Downloading gloss-rendering-1.11.1.1...
Configuring gloss-rendering-1.11.1.1...
Building gloss-rendering-1.11.1.1...
Failed to install gloss-rendering-1.11.1.1
Build log ( /home/dennis/.cabal/logs/ghc-8.2.1/gloss-rendering-1.11.1.1-5c3vhUXtg3H6kdWtnLlFJJ.log ):
cabal: Entering directory '/tmp/cabal-tmp-4805/gloss-rendering-1.11.1.1'
Configuring gloss-rendering-1.11.1.1...
Preprocessing library for gloss-rendering-1.11.1.1..
Building library for gloss-rendering-1.11.1.1..
<command line>: cannot satisfy -package-id OpenGL-3.0.2.0-HD761o8mqKO1GjV1UDm6ix: 
    OpenGL-3.0.2.0-HD761o8mqKO1GjV1UDm6ix is unusable due to shadowed dependencies:
      text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH ObjectName-1.1.0.1-9TjFIQDc3nwAGCLQ6K0uBK StateVar-1.1.0.4-LujcYvYAkps2n0ooX2fxnO OpenGLRaw-3.2.5.0-AGBjdECXAdpBqRpkvHo1D1 GLURaw-2.0.0.3-8JLLoTDEv9VB0E4RGuuu22
    (use -v for more information)
cabal: Leaving directory '/tmp/cabal-tmp-4805/gloss-rendering-1.11.1.1'
cabal: Error: some packages failed to install:
gloss-1.11.1.1-3O6fP4vFijnFm8w79uU8BX depends on gloss-1.11.1.1 which failed
to install.
gloss-rendering-1.11.1.1-5c3vhUXtg3H6kdWtnLlFJJ failed during the building
phase. The exception was:
ExitFailure 1

When running "ghc -v3" I get:

Glasgow Haskell Compiler, Version 8.2.1, stage 2 booted by GHC version 8.0.2
Using binary package database: /usr/local/haskell/ghc-8.2.1-x86_64/lib/ghc-8.2.1/package.conf.d/package.cache
Using binary package database: /home/dennis/.ghc/x86_64-linux-8.2.1/package.conf.d/package.cache
package flags []
loading package database /usr/local/haskell/ghc-8.2.1-x86_64/lib/ghc-8.2.1/package.conf.d
loading package database /home/dennis/.ghc/x86_64-linux-8.2.1/package.conf.d
package GLURaw-2.0.0.3-8JLLoTDEv9VB0E4RGuuu22 is unusable due to shadowed dependencies:
  OpenGLRaw-3.2.5.0-AGBjdECXAdpBqRpkvHo1D1
package GLUT-2.7.0.12-6EAG9rnuF10HeWK97rVsdr is unusable due to shadowed dependencies:
  StateVar-1.1.0.4-LujcYvYAkps2n0ooX2fxnO OpenGL-3.0.2.0-HD761o8mqKO1GjV1UDm6ix
package HTTP-4000.3.7-FyFkOPpSucw73jWgAX6vWY is unusable due to shadowed dependencies:
  parsec-3.1.11-DPgnR92AWEaFOaixmwipet mtl-2.2.1-19EL8AGBsN3DnnOhrC9xY3 network-uri-2.6.1.0-8fmDUfTamRDELKGV9jMzo3 network-2.6.3.2-8o5F7G3DMrLGgmHkPzZYJx
package HUnit-1.6.0.0-4l1U6BLkB471ERiSTXOjLi is unusable due to shadowed dependencies:
  call-stack-0.1.0-9jal1kz08FU8PWnIBPoZ86
package OpenGL-3.0.2.0-HD761o8mqKO1GjV1UDm6ix is unusable due to shadowed dependencies:
  text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH ObjectName-1.1.0.1-9TjFIQDc3nwAGCLQ6K0uBK StateVar-1.1.0.4-LujcYvYAkps2n0ooX2fxnO OpenGLRaw-3.2.5.0-AGBjdECXAdpBqRpkvHo1D1 GLURaw-2.0.0.3-8JLLoTDEv9VB0E4RGuuu22
package OpenGLRaw-3.2.5.0-AGBjdECXAdpBqRpkvHo1D1 is unusable due to shadowed dependencies:
  fixed-0.2.1.1-8TAIwVfklKaFZqU07AJe1c half-0.2.2.3-5sZk4UblOHkKgVoM6yhxhd text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH
package QuickCheck-2.10.0.1-DTIBC3CyU6p3h4xSnOjkg1 is unusable due to shadowed dependencies:
  random-1.1-DtLcP2Z2iOOC0RwcSmXjBK tf-random-0.5-ABDhxe3mXYlHUEE5hzgewx
package StateVar-1.1.0.4-LujcYvYAkps2n0ooX2fxnO is unusable due to shadowed dependencies:
  stm-2.4.4.1-2iQ3ZIiQ6vc4AnCVcs8oMd
package async-2.1.1.1-B1zjaWD98Sd3roiQTopWAE is unusable due to shadowed dependencies:
  stm-2.4.4.1-2iQ3ZIiQ6vc4AnCVcs8oMd
package attoparsec-0.13.2.0-5dp4kBDsiGY4dQpLKbD5rk is unusable due to shadowed dependencies:
  scientific-0.3.5.1-L0qYzdp0wpz8rO8gircNSR text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH
package case-insensitive-1.2.0.10-7uZ9WdL3zeIK7zYotLnvd1 is unusable due to shadowed dependencies:
  text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH hashable-1.2.6.1-14fEJP30YhAG9w115PODz0
package hashable-1.2.6.1-14fEJP30YhAG9w115PODz0 is unusable due to shadowed dependencies:
  text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH
package haskell-src-1.0.2.0-8c0DGwjdWsJJvtDKsTwa50 is unusable due to shadowed dependencies:
  syb-0.7-2rRPTNxBP6YFePrCXw4i2o
package network-uri-2.6.1.0-8fmDUfTamRDELKGV9jMzo3 is unusable due to shadowed dependencies:
  parsec-3.1.11-DPgnR92AWEaFOaixmwipet
package parsec-3.1.11-DPgnR92AWEaFOaixmwipet is unusable due to shadowed dependencies:
  mtl-2.2.1-19EL8AGBsN3DnnOhrC9xY3 text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH
package regex-base-0.93.2-6R4SyH615Fd96n1BuXT5nY is unusable due to shadowed dependencies:
  mtl-2.2.1-19EL8AGBsN3DnnOhrC9xY3
package regex-compat-0.95.1-8fXRfZk39z47p2j5rS3E9Q is unusable due to shadowed dependencies:
  regex-base-0.93.2-6R4SyH615Fd96n1BuXT5nY regex-posix-0.95.2-CqFmfrcIyQF7PY3RsTZcGI
package regex-posix-0.95.2-CqFmfrcIyQF7PY3RsTZcGI is unusable due to shadowed dependencies:
  regex-base-0.93.2-6R4SyH615Fd96n1BuXT5nY
package scientific-0.3.5.1-L0qYzdp0wpz8rO8gircNSR is unusable due to shadowed dependencies:
  integer-logarithms-1.0.2-VAUswqHa2j8Wo9H471XH1 text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH hashable-1.2.6.1-14fEJP30YhAG9w115PODz0 primitive-0.6.2.0-V0ibjLQDdN6fcQS5bjLVg
package tf-random-0.5-ABDhxe3mXYlHUEE5hzgewx is unusable due to shadowed dependencies:
  primitive-0.6.2.0-V0ibjLQDdN6fcQS5bjLVg random-1.1-DtLcP2Z2iOOC0RwcSmXjBK
package unordered-containers-0.2.8.0-HVcKYx0GQoVIIbKuoCcJbx is unusable due to shadowed dependencies:
  hashable-1.2.6.1-14fEJP30YhAG9w115PODz0
package vector-0.12.0.1-6mmeV84KOvJADXavl6mOiY is unusable due to shadowed dependencies:
  primitive-0.6.2.0-V0ibjLQDdN6fcQS5bjLVg
wired-in package ghc-prim mapped to ghc-prim-0.5.1.0
wired-in package integer-gmp mapped to integer-gmp-1.0.1.0
wired-in package base mapped to base-4.10.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.12.0.0
wired-in package ghc mapped to ghc-8.2.1
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Deleting temp files:
Deleting: 
*** Deleting temp dirs:
Deleting: 
ghc: no input files
Usage: For basic information, try the `--help' option.

Is there some way I can fix this? I tried removing and reinstalling the haskell-platform package. The weird thing is, even after removing the package, the ghci command seems to be there

@gbaz
Copy link
Collaborator

gbaz commented Dec 18, 2017

when you say "package" do you mean from your package manager?

There was a known related bug in earlier versions of the 8.2.1 platform. The 8.2.2 platform fixes this, ad well as installing the latest 8.2.1.

@gbaz
Copy link
Collaborator

gbaz commented Dec 18, 2017

(It looks like you're trying to manage ghc with your package manager, but the version used is from an install of the generic-linux binaries from haskell.org/platform --hence the confusion)

@dwagner-gh
Copy link
Author

dwagner-gh commented Dec 19, 2017

Can I somehow remove these generic-linux binaries again? I don't know know which version is used by the linux package manager... should I just try to install 8.2.2 so that 8.2.1 is overwritten?

@gbaz
Copy link
Collaborator

gbaz commented Dec 19, 2017

If you install the new platform over the old one, I think everything should work. Sorry for the inconvenience.

@dwagner-gh
Copy link
Author

Thanks a lot man. I reinstalled 8.2.2 from haskell.org/platform using the offered archive. I was getting desperate, but it seems the solution was pretty easy 👍.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants