How to compile git-annex?

Peng Yu pengyu.ut at gmail.com
Sun Apr 26 00:37:44 UTC 2015


On Sat, Apr 25, 2015 at 7:02 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
>
> On Sat, Apr 25, 2015 at 7:46 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>>
>> I don't have cabal. How to install cabal? Do I also install with MacPorts?
>
>
> Turns out if you do that you end up with hs-mtl and friends which will
> conflict with yesod's dependencies. You'll probably have to do an install
> from
> https://www.haskell.org/cabal/release/cabal-install-1.22.0.0/cabal-1.22.0.0-x86_64-apple-darwin-mavericks.tar.gz
> (apparently there are no binary builds for non-Mavericks, so if you need
> that then you have a problem :/ )

This will have a problem with MacPorts as show in this webpage. I do
need to have MacPorts installed on my machine.

http://blog.omega-prime.co.uk/?p=96

> Or you can remove the MacPorts-based ghc stuff and do an install as
> recommended by https://stackage.org and make certain it can't find any
> MacPorts-installed library because that will lead to libiconv conflicts.

This is still in conflict with iconv thing as shown in the above webpage.

~$ cabal install cabal-install
Resolving dependencies...
Downloading mtl-2.2.1...
Downloading network-2.6.0.2...
Downloading old-locale-1.0.0.7...
Configuring mtl-2.2.1...
Configuring network-2.6.0.2...
Downloading random-1.1...
Configuring old-locale-1.0.0.7...
Downloading stm-2.4.4...
Configuring random-1.1...
Downloading text-1.2.0.4...
Downloading zlib-0.5.4.2...
Failed to install mtl-2.2.1
Build log ( /Users/py/.cabal/logs/mtl-2.2.1.log ):
Configuring stm-2.4.4...
Configuring text-1.2.0.4...
Failed to install network-2.6.0.2
Build log ( /Users/py/.cabal/logs/network-2.6.0.2.log ):
Failed to install old-locale-1.0.0.7
Build log ( /Users/py/.cabal/logs/old-locale-1.0.0.7.log ):
Configuring zlib-0.5.4.2...
Failed to install random-1.1
Build log ( /Users/py/.cabal/logs/random-1.1.log ):
Failed to install stm-2.4.4
Build log ( /Users/py/.cabal/logs/stm-2.4.4.log ):
Failed to install text-1.2.0.4
Build log ( /Users/py/.cabal/logs/text-1.2.0.4.log ):
Failed to install zlib-0.5.4.2
Build log ( /Users/py/.cabal/logs/zlib-0.5.4.2.log ):
Error while Error while updating world-file. :
/Users/py/Library/Haskell/logs/: openBinaryTempFile: does not exist
(No such file or directory)
cabal: Error: some packages failed to install:
HTTP-4000.2.19 depends on text-1.2.0.4 which failed to install.
cabal-install-1.22.3.0 depends on zlib-0.5.4.2 which failed to install.
mtl-2.2.1 failed during the configure step. The exception was:
user error ('/Applications/ghc-7.10.1.app/Contents/bin/ghc' exited with an
error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _hs_iconv ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)
network-2.6.0.2 failed during the configure step. The exception was:
user error ('/Applications/ghc-7.10.1.app/Contents/bin/ghc' exited with an
error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _hs_iconv ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)
network-uri-2.6.0.1 depends on text-1.2.0.4 which failed to install.
old-locale-1.0.0.7 failed during the configure step. The exception was:
user error ('/Applications/ghc-7.10.1.app/Contents/bin/ghc' exited with an
error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _hs_iconv ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)
old-time-1.1.0.3 depends on old-locale-1.0.0.7 which failed to install.
parsec-3.1.9 depends on text-1.2.0.4 which failed to install.
random-1.1 failed during the configure step. The exception was:
user error ('/Applications/ghc-7.10.1.app/Contents/bin/ghc' exited with an
error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _hs_iconv ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)
stm-2.4.4 failed during the configure step. The exception was:
user error ('/Applications/ghc-7.10.1.app/Contents/bin/ghc' exited with an
error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _hs_iconv ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)
text-1.2.0.4 failed during the configure step. The exception was:
user error ('/Applications/ghc-7.10.1.app/Contents/bin/ghc' exited with an
error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _hs_iconv ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)
zlib-0.5.4.2 failed during the configure step. The exception was:
user error ('/Applications/ghc-7.10.1.app/Contents/bin/ghc' exited with an
error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _hs_iconv ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.8.0.0-I5BErHzyOm07EBNpKBEeUv.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)


> Apparently the yesod/Stackage folks think this insanity is a good thing.
>
> --
> 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


More information about the cabal-devel mailing list