
I'm trying to fiddle with clang scripts from Manuel Chakavarty and this one:
https://gist.github.com/mzero/7245290
the former works (vector builds fine), but when installing Snap it
generates the following error:
Loading package network-2.4.2.0 ...
GHCi runtime linker: fatal error: I found a duplicate definition for symbol
_hsnet_freeaddrinfo
whilst processing object file
/Users/adinapoli/programming/haskell/faceguess/.cabal-sandbox/lib/x86_64-osx-ghc-7.6.3/network-2.4.2.0/libHSnetwork-2.4.2.0.a
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
GHCi cannot safely continue in this situation. Exiting now. Sorry.
Failed to install snap-0.13.0.4
cabal: Error: some packages failed to install:
snap-0.13.0.4 failed during the building phase. The exception was:
ExitFailure 1
I haven't tried the latter, though.
A.
On 2 November 2013 22:23, Carter Schonwald
i have no clue. Doesn't GHC also come prebuilt with Vector?
might be worth filing a ticket on GHC track too. perhaps.
On Sat, Nov 2, 2013 at 6:02 PM, Alfredo Di Napoli < alfredo.dinapoli@gmail.com> wrote:
Hi Carter,
I do have Xcode 5 installed, this is the strange thing. Do you suggest to try reinstall Xcode or to downgrade gcc? (I'm using 4.8 atm). Also, the error is triggered by base, do you think I should try reinstalling ghc compiling with the newly installed gcc?
Thanks, A.
On 2 November 2013 21:09, Carter Schonwald
wrote: You need to have xcode 5 installed if you wish for the lib issues to go way if you're using the gcc approach, it sounds like you don't have xcode 5 installed.
On Sat, Nov 2, 2013 at 5:06 PM, Alfredo Di Napoli < alfredo.dinapoli@gmail.com> wrote:
Hello Cafè, this is what I'm getting:
╰─$ cabal install vector-0.10.9.1 1 ↵ Resolving dependencies... Configuring vector-0.10.9.1... Building vector-0.10.9.1... Preprocessing library vector-0.10.9.1... [ 1 of 19] Compiling Data.Vector.Storable.Internal ( Data/Vector/Storable/Internal.hs, dist/build/Data/Vector/Storable/Internal.o ) [ 2 of 19] Compiling Data.Vector.Fusion.Util ( Data/Vector/Fusion/Util.hs, dist/build/Data/Vector/Fusion/Util.o ) [ 3 of 19] Compiling Data.Vector.Fusion.Stream.Size ( Data/Vector/Fusion/Stream/Size.hs, dist/build/Data/Vector/Fusion/Stream/Size.o )
Data/Vector/Fusion/Stream/Size.hs:25:10: Warning: No explicit method or default declaration for `*' In the instance declaration for `Num Size'
Data/Vector/Fusion/Stream/Size.hs:25:10: Warning: No explicit method or default declaration for `abs' In the instance declaration for `Num Size'
Data/Vector/Fusion/Stream/Size.hs:25:10: Warning: No explicit method or default declaration for `signum' In the instance declaration for `Num Size' [ 4 of 19] Compiling Data.Vector.Internal.Check ( Data/Vector/Internal/Check.hs, dist/build/Data/Vector/Internal/Check.o ) [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... <command line>: can't load .so/.DLL for: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/libiconv.dylib (dlopen(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/libiconv.dylib, 9): no suitable image found. Did find:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/libiconv.dylib: mach-o, but wrong filetype) Failed to install vector-0.10.9.1 cabal: Error: some packages failed to install: vector-0.10.9.1 failed during the building phase. The exception was: ExitFailure 1
I've did the trick of installing gcc-4.8 as described here:
http://cp.reddit.com/r/haskell/comments/1ozukp/anyone_running_ghc_763_on_osx...
I'm running a compiled version of ghc 7.6.3 (so not installed via the Haskell platform).
Have anyone stumbled upon this?
Thanks, Alfredo
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe