<div dir="ltr">Ok, for the lost souls which will find this thread, I've solved the problem in two steps:<div><br></div><div>a) Used the script here: <a href="http://justtesting.org/post/64947952690/the-glasgow-haskell-compiler-ghc-on-os-x-10-9">http://justtesting.org/post/64947952690/the-glasgow-haskell-compiler-ghc-on-os-x-10-9</a></div>
<div><br></div><div>b) Specifically for the snap problem, I've solved it following the FAQ here: <a href="http://www.haskell.org/haskellwiki/GHC/FAQ#I_get_an_error_message_from_GHCi_about_a_.22duplicate_definition_for_symbol_module_registered.22">http://www.haskell.org/haskellwiki/GHC/FAQ#I_get_an_error_message_from_GHCi_about_a_.22duplicate_definition_for_symbol_module_registered.22</a></div>
<div><br></div><div>The command was:</div><div>cabal install snap --ld-options="-x"<br></div><div><br></div><div>HTH,</div><div>A.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 November 2013 22:40, Alfredo Di Napoli <span dir="ltr"><<a href="mailto:alfredo.dinapoli@gmail.com" target="_blank">alfredo.dinapoli@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm trying to fiddle with clang scripts from Manuel Chakavarty and this one:<div><br></div><div><a href="https://gist.github.com/mzero/7245290" target="_blank">https://gist.github.com/mzero/7245290</a><br>
</div><div><br>
</div><div>the former works (vector builds fine), but when installing Snap it generates the following error:</div><div><br></div><div><div>Loading package network-2.4.2.0 ...</div><div><br></div><div>GHCi runtime linker: fatal error: I found a duplicate definition for symbol</div>

<div>   _hsnet_freeaddrinfo</div><div>whilst processing object file</div><div>   /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</div><div>This could be caused by:</div>

<div>   * Loading two different object files which export the same symbol</div><div>   * Specifying the same object file twice on the GHCi command line</div><div>   * An incorrect `package.conf' entry, causing some object to be</div>

<div>     loaded twice.</div><div>GHCi cannot safely continue in this situation.  Exiting now.  Sorry.</div><div><br></div><div>Failed to install snap-0.13.0.4</div><div class="im"><div>cabal: Error: some packages failed to install:</div>

</div><div>snap-0.13.0.4 failed during the building phase. The exception was:</div><div>ExitFailure 1</div></div><div><br></div><div><br></div><div>I haven't tried the latter, though.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>A.</div></font></span></div><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On 2 November 2013 22:23, Carter Schonwald <span dir="ltr"><<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">i have no clue.  Doesn't GHC also come prebuilt with Vector? <div><br></div><div>might be worth filing a ticket on GHC track too. perhaps.</div>

</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Sat, Nov 2, 2013 at 6:02 PM, Alfredo Di Napoli <span dir="ltr"><<a href="mailto:alfredo.dinapoli@gmail.com" target="_blank">alfredo.dinapoli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="ltr">Hi Carter,<div><br></div><div>I do have Xcode 5 installed, this is the strange thing.</div><div>Do you suggest to try reinstall Xcode or to downgrade gcc? (I'm using 4.8 atm).</div><div>Also, the error is triggered by base, do you think I should try reinstalling ghc compiling with the newly installed gcc?</div>




<div><br></div><div>Thanks,</div><div>A.</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 November 2013 21:09, Carter Schonwald <span dir="ltr"><<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div>




<br></div><div><br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote"><div><div>On Sat, Nov 2, 2013 at 5:06 PM, Alfredo Di Napoli <span dir="ltr"><<a href="mailto:alfredo.dinapoli@gmail.com" target="_blank">alfredo.dinapoli@gmail.com</a>></span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

<div dir="ltr">Hello Cafè,<div>this is what I'm getting:</div><div><br></div><div><br></div><div><div>╰─$ cabal install vector-0.10.9.1                                                                                         1 ↵</div>







<div>Resolving dependencies...</div><div>Configuring vector-0.10.9.1...</div><div>Building vector-0.10.9.1...</div><div>Preprocessing library vector-0.10.9.1...</div><div>[ 1 of 19] Compiling Data.Vector.Storable.Internal ( Data/Vector/Storable/Internal.hs, dist/build/Data/Vector/Storable/Internal.o )</div>







<div>[ 2 of 19] Compiling Data.Vector.Fusion.Util ( Data/Vector/Fusion/Util.hs, dist/build/Data/Vector/Fusion/Util.o )</div><div>[ 3 of 19] Compiling Data.Vector.Fusion.Stream.Size ( Data/Vector/Fusion/Stream/Size.hs, dist/build/Data/Vector/Fusion/Stream/Size.o )</div>







<div><br></div><div>Data/Vector/Fusion/Stream/Size.hs:25:10: Warning:</div><div>    No explicit method or default declaration for `*'</div><div>    In the instance declaration for `Num Size'</div><div><br></div><div>







Data/Vector/Fusion/Stream/Size.hs:25:10: Warning:</div><div>    No explicit method or default declaration for `abs'</div><div>    In the instance declaration for `Num Size'</div><div><br></div><div>Data/Vector/Fusion/Stream/Size.hs:25:10: Warning:</div>







<div>    No explicit method or default declaration for `signum'</div><div>    In the instance declaration for `Num Size'</div><div>[ 4 of 19] Compiling Data.Vector.Internal.Check ( Data/Vector/Internal/Check.hs, dist/build/Data/Vector/Internal/Check.o )</div>







<div>[ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o )</div><div>Loading package ghc-prim ... linking ... done.</div><div>Loading package integer-gmp ... linking ... done.</div>







<div>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:</div>







<div>        /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/libiconv.dylib: mach-o, but wrong filetype)</div><div>Failed to install vector-0.10.9.1</div><div>cabal: Error: some packages failed to install:</div>







<div>vector-0.10.9.1 failed during the building phase. The exception was:</div><div>ExitFailure 1</div></div><div><br></div><div><br></div><div><br></div><div>I've did the trick of installing gcc-4.8 as described here:</div>







<div><br></div><div><a href="http://cp.reddit.com/r/haskell/comments/1ozukp/anyone_running_ghc_763_on_osx_mavericks/ccxpla5" target="_blank">http://cp.reddit.com/r/haskell/comments/1ozukp/anyone_running_ghc_763_on_osx_mavericks/ccxpla5</a><br>







</div><div><br></div><div>I'm running a compiled version of ghc 7.6.3 (so not installed via the Haskell platform).</div><div><br></div><div>Have anyone stumbled upon this?</div><div><br></div><div>Thanks,</div><div>Alfredo</div>







</div>
<br></div></div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>