[ANNOUNCE] Glasgow Haskell Compiler 8.0.1, release candidate 1

Andrés Sicard-Ramírez asr at eafit.edu.co
Wed Jan 13 20:49:44 UTC 2016


On 13 January 2016 at 15:28, George Colpitts <george.colpitts at gmail.com> wrote:
> installs fine on mac but cabal install vector fails on primitive, looks to
> me like gmp library is not provided
>
> cabal install vector
> Resolving dependencies...
> Configuring primitive-0.6.1.0...
> Failed to install primitive-0.6.1.0
> Build log ( /Users/gcolpitts/.cabal/logs/primitive-0.6.1.0.log ):
> cabal: Error: some packages failed to install:
> primitive-0.6.1.0 failed during the configure step. The exception was:
> user error ('/usr/local/bin/ghc' exited with an error:
> ld: library not found for -lgmp
> collect2: error: ld returned 1 exit status
> `gcc' failed in phase `Linker'. (Exit code: 1)
> )
> vector-0.11.0.0 depends on primitive-0.6.1.0 which failed to install.

I found a different problem installing vector on Ubuntu precise (12.04LTS):

  $ cabal install vector
  ...
  Installed primitive-0.6.1.0
  Configuring vector-0.11.0.0...
  ...
   Data/Vector/Generic/Mutable/Base.hs:18:1: error:
    Bad interface file:
/home/asr/.cabal/lib/x86_64-linux-ghc-8.0.0.20160111/primitive-0.6.1.0-6R7Tzfc83qM6k1j6TLqRai/Control/Monad/Primitive.hi
        Something is amiss; requested module
primitive-0.6.1.0 at primitive-0.6.1.0-de94d43ed2b084399e39dfe5a3f60217:Control.Monad.Primitive
differs from name found in the interface file
primi_6R7Tzfc83qM6k1j6TLqRai:Control.Monad.Primitive
Failed to install vector-0.11.0.0

I have found the same "Bad interface file" problem installing other packages.

Best,

-- 
Andrés


More information about the ghc-devs mailing list