How to compile git-annex?

Peng Yu pengyu.ut at
Sun Apr 26 13:00:12 UTC 2015

Now, I get this. What should I do next to fix it?

~$  cabal install git-annex
Resolving dependencies...
Configuring HUnit-
Configuring bloomfilter-
Configuring IfElse-0.85...
Configuring SHA-
Building IfElse-0.85...
Building HUnit-
Building bloomfilter-
Building SHA-
Configuring dataenc-0.12...
Failed to install bloomfilter-
Build log ( /Users/py/.cabal/logs/bloomfilter- ):
Configuring bloomfilter-
Building bloomfilter-
Preprocessing library bloomfilter-
[1 of 7] Compiling Data.BloomFilter.Array ( Data/BloomFilter/Array.hs,
dist/build/Data/BloomFilter/Array.o )
[2 of 7] Compiling Data.BloomFilter.Mutable.Internal (
dist/build/Data/BloomFilter/Mutable/Internal.o )
[3 of 7] Compiling Data.BloomFilter.Util ( Data/BloomFilter/Util.hs,
dist/build/Data/BloomFilter/Util.o )
[4 of 7] Compiling Data.BloomFilter.Mutable (
Data/BloomFilter/Mutable.hs, dist/build/Data/BloomFilter/Mutable.o )

    Non type-variable argument
      in the constraint: Data.Array.Base.MArray
                           (Data.Array.Base.STUArray s) Hash m
    (Use FlexibleContexts to permit this)
    When checking that ‘loop’ has the inferred type
      loop :: forall (m :: * -> *).
              Data.Array.Base.MArray (Data.Array.Base.STUArray s) Hash m =>
              [Int :* Int] -> m Bool
    In an equation for ‘elem’:
        elem elt mb
          = loop (hashesM mb elt)
              mu = bitArray mb
              loop ((word :* bit) : wbs)
                = do { i <- unsafeRead mu word;
                       .... }
              loop _ = return True
Configuring extensible-exceptions-
Installed IfElse-0.85
Building dataenc-0.12...
Building extensible-exceptions-
Configuring hslogger-1.2.8...
Installed extensible-exceptions-
Building hslogger-1.2.8...
Configuring hxt-charproperties-
Installed HUnit-
Building hxt-charproperties-
Configuring pcre-light-
Installed dataenc-0.12
Building pcre-light-
Configuring primitive-0.6...
Installed hslogger-1.2.8
Building primitive-0.6...
Configuring regex-base-0.93.2...
Installed pcre-light-
Building regex-base-0.93.2...
Configuring syb-0.4.4...
Installed primitive-0.6
Downloading tf-random-0.5...
Building syb-0.4.4...
Configuring transformers-compat-
Installed regex-base-0.93.2
Downloading regex-posix-0.95.2...
Building transformers-compat-
Configuring utf8-string-1...
Installed transformers-compat-
Downloading transformers-base-0.4.4...
Building utf8-string-1...
Configuring tf-random-0.5...
Installed hxt-charproperties-
Downloading hxt-unicode-
Downloading hxt-regex-xmlschema-
Building tf-random-0.5...
Configuring regex-posix-0.95.2...
Installed syb-0.4.4
Downloading json-0.9.1...
Building regex-posix-0.95.2...
Configuring transformers-base-0.4.4...
Installed utf8-string-1
Installed tf-random-0.5
Downloading QuickCheck-2.8.1...
Configuring hxt-unicode-
Building transformers-base-0.4.4...
Building hxt-unicode-
Configuring hxt-regex-xmlschema-
Installed transformers-base-0.4.4
Downloading monad-control-
Building hxt-regex-xmlschema-
Configuring json-0.9.1...
Installed regex-posix-0.95.2
Downloading regex-compat-0.95.1...
Building json-0.9.1...
Installed hxt-unicode-
Configuring QuickCheck-2.8.1...
Building QuickCheck-2.8.1...
Configuring monad-control-
Installed hxt-regex-xmlschema-
Downloading hxt-
Building monad-control-
Configuring regex-compat-0.95.1...
Installed monad-control-
Downloading lifted-base-
Installed json-0.9.1
Configuring hxt-
Building regex-compat-0.95.1...
Building hxt-
Configuring lifted-base-
Installed regex-compat-0.95.1
Downloading MissingH-
Building lifted-base-
Installed lifted-base-
Configuring MissingH-
Building MissingH-
Installed QuickCheck-2.8.1
Downloading Crypto-
Configuring Crypto-
Building Crypto-
Installed MissingH-
Installed SHA-
Installed Crypto-
Installed hxt-
Downloading hS3-0.5.9...
Configuring hS3-0.5.9...
Building hS3-0.5.9...
Installed hS3-0.5.9
Updating documentation index
cabal: Error: some packages failed to install:
bloomfilter- failed during the building phase. The exception was:
ExitFailure 1
git-annex-3.20120406 depends on bloomfilter- which failed to install.

On Sat, Apr 25, 2015 at 11:42 PM, Brandon Allbery <allbery.b at> wrote:
> On Sun, Apr 26, 2015 at 12:34 AM, Peng Yu <pengyu.ut at> wrote:
>> I have the following disabled.
>> ~/.cabal$ grep prof config
>> -- line to your ~/.bash_profile:
>> -- library-profiling: True
>> -- executable-profiling: False
> That's showing the defaults, commented out because that's what they do
> unless told otherwise. You need to uncomment library-profiling and change it
> to False.
> --
> brandon s allbery kf8nh                               sine nomine associates
> allbery.b at                                  ballbery at
> unix, openafs, kerberos, infrastructure, xmonad


More information about the cabal-devel mailing list