tweag / HaskellR

The full power of R in Haskell.

Home Page:https://tweag.github.io/HaskellR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS X compile issue

reckbo opened this issue · comments

When I try to compile using stack I get the error below. I've run into this before and I believe I solved it using cabal and --with-gcc=clang, but not sure how to do it with stack. Any suggestions?

    git clone http://github.com/tweag/HaskellR && cd HaskellR
    stack build 

ld: malformed mach-o, symbol table not in __LINKEDIT file '/nix/store/01a8nfwswqra5szdrd76di2x7cv3910c-libiconv-osx-10.9.5/lib/libiconv.dylib'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    linking .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Data/Memory/MemMap/Posix_hsc_make.o failed (exit code 1)
    command was: /usr/bin/gcc .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Data/Memory/MemMap/Posix_hsc_make.o .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Data/Memory/MemMap/Posix_hsc_utils.o -o .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Data/Memory/MemMap/Posix_hsc_make -m64 -L/nix/store/g2xpd8z4drs9ylahrc28hc29y12a8isq-ghc-7.10.3/lib/ghc-7.10.3/bytes_6VWy06pWzJq9evDvK2d4w6 -L/nix/store/g2xpd8z4drs9ylahrc28hc29y12a8isq-ghc-7.10.3/lib/ghc-7.10.3/deeps_6vMKxt5sPFR0XsbRWvvq59 -L/nix/store/g2xpd8z4drs9ylahrc28hc29y12a8isq-ghc-7.10.3/lib/ghc-7.10.3/array_67iodizgJQIIxYVTp4emlA -L/nix/store/g2xpd8z4drs9ylahrc28hc29y12a8isq-ghc-7.10.3/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM -L/nix/store/01a8nfwswqra5szdrd76di2x7cv3910c-libiconv-osx-10.9.5/lib -liconv -L/nix/store/g2xpd8z4drs9ylahrc28hc29y12a8isq-ghc-7.10.3/lib/ghc-7.10.3/integ_2aU3IZNMF9a7mQ0OzsZ0dS -L/nix/store/9h0y52vcpf74w141ynlb7i6gil3qscqa-gmp-6.1.0/lib -lgmp -L/nix/store/g2xpd8z4drs9ylahrc28hc29y12a8isq-ghc-7.10.3/lib/ghc-7.10.3/ghcpr_8TmvWUcS1U1IKHT0levwg3 -L/nix/store/g2xpd8z4drs9ylahrc28hc29y12a8isq-ghc-7.10.3/lib/ghc-7.10.3/rts -lm -ldl

Sorry for being unresponsive for a long time.
This should be fixed with 0.9.1 release and you don't need to pass the option.

Feel free to reopen if you still have problems.