How to compile git-annex?

Adam Bergmark adam at bergmark.nl
Sun Apr 26 17:02:40 UTC 2015


The package bloomfilter failed to compile because it isn't compatible with
GHC 7.10. You can either `cabal get' the package and patch it locally or
downgrade to GHC 7.8.

Either way it would be a good idea to send a pull request or file an issue
on the package's bugtracker, you can find it here:
http://hackage.haskell.org/package/bloomfilter


On Sun, Apr 26, 2015 at 3:00 PM, Peng Yu <pengyu.ut at gmail.com> wrote:

> Now, I get this. What should I do next to fix it?
>
> ~$  cabal install git-annex
> Resolving dependencies...
> Configuring HUnit-1.2.5.2...
> Configuring bloomfilter-2.0.0.0...
> Configuring IfElse-0.85...
> Configuring SHA-1.6.4.2...
> Building IfElse-0.85...
> Building HUnit-1.2.5.2...
> Building bloomfilter-2.0.0.0...
> Building SHA-1.6.4.2...
> Configuring dataenc-0.12...
> Failed to install bloomfilter-2.0.0.0
> Build log ( /Users/py/.cabal/logs/bloomfilter-2.0.0.0.log ):
> Configuring bloomfilter-2.0.0.0...
> Building bloomfilter-2.0.0.0...
> Preprocessing library bloomfilter-2.0.0.0...
> [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 (
> Data/BloomFilter/Mutable/Internal.hs,
> 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 )
>
> Data/BloomFilter/Mutable.hs:136:9:
>     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)
>           where
>               mu = bitArray mb
>               loop ((word :* bit) : wbs)
>                 = do { i <- unsafeRead mu word;
>                        .... }
>               loop _ = return True
> Configuring extensible-exceptions-0.1.1.4...
> Installed IfElse-0.85
> Building dataenc-0.12...
> Building extensible-exceptions-0.1.1.4...
> Configuring hslogger-1.2.8...
> Installed extensible-exceptions-0.1.1.4
> Building hslogger-1.2.8...
> Configuring hxt-charproperties-9.2.0.1...
> Installed HUnit-1.2.5.2
> Building hxt-charproperties-9.2.0.1...
> Configuring pcre-light-0.4.0.3...
> Installed dataenc-0.12
> Building pcre-light-0.4.0.3...
> Configuring primitive-0.6...
> Installed hslogger-1.2.8
> Building primitive-0.6...
> Configuring regex-base-0.93.2...
> Installed pcre-light-0.4.0.3
> 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-0.4.0.4...
> Installed regex-base-0.93.2
> Downloading regex-posix-0.95.2...
> Building transformers-compat-0.4.0.4...
> Configuring utf8-string-1...
> Installed transformers-compat-0.4.0.4
> Downloading transformers-base-0.4.4...
> Building utf8-string-1...
> Configuring tf-random-0.5...
> Installed hxt-charproperties-9.2.0.1
> Downloading hxt-unicode-9.0.2.4...
> Downloading hxt-regex-xmlschema-9.2.0.2...
> 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-9.0.2.4...
> Building transformers-base-0.4.4...
> Building hxt-unicode-9.0.2.4...
> Configuring hxt-regex-xmlschema-9.2.0.2...
> Installed transformers-base-0.4.4
> Downloading monad-control-1.0.0.4...
> Building hxt-regex-xmlschema-9.2.0.2...
> 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-9.0.2.4
> Configuring QuickCheck-2.8.1...
> Building QuickCheck-2.8.1...
> Configuring monad-control-1.0.0.4...
> Installed hxt-regex-xmlschema-9.2.0.2
> Downloading hxt-9.3.1.15...
> Building monad-control-1.0.0.4...
> Configuring regex-compat-0.95.1...
> Installed monad-control-1.0.0.4
> Downloading lifted-base-0.2.3.6...
> Installed json-0.9.1
> Configuring hxt-9.3.1.15...
> Building regex-compat-0.95.1...
> Building hxt-9.3.1.15...
> Configuring lifted-base-0.2.3.6...
> Installed regex-compat-0.95.1
> Downloading MissingH-1.3.0.1...
> Building lifted-base-0.2.3.6...
> Installed lifted-base-0.2.3.6
> Configuring MissingH-1.3.0.1...
> Building MissingH-1.3.0.1...
> Installed QuickCheck-2.8.1
> Downloading Crypto-4.2.5.1...
> Configuring Crypto-4.2.5.1...
> Building Crypto-4.2.5.1...
> Installed MissingH-1.3.0.1
> Installed SHA-1.6.4.2
> Installed Crypto-4.2.5.1
> Installed hxt-9.3.1.15
> Downloading hS3-0.5.9...
> Configuring hS3-0.5.9...
> Building hS3-0.5.9...
> Installed hS3-0.5.9
> Updating documentation index
> /Users/py/Library/Haskell/share/doc/x86_64-osx-ghc-7.10.1/index.html
> cabal: Error: some packages failed to install:
> bloomfilter-2.0.0.0 failed during the building phase. The exception was:
> ExitFailure 1
> git-annex-3.20120406 depends on bloomfilter-2.0.0.0 which failed to
> install.
>
> On Sat, Apr 25, 2015 at 11:42 PM, Brandon Allbery <allbery.b at gmail.com>
> wrote:
> > On Sun, Apr 26, 2015 at 12:34 AM, Peng Yu <pengyu.ut at gmail.com> 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 gmail.com
> ballbery at sinenomine.net
> > unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
>
>
> --
> Regards,
> Peng
> _______________________________________________
> cabal-devel mailing list
> cabal-devel at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/cabal-devel/attachments/20150426/e02ba042/attachment.html>


More information about the cabal-devel mailing list