<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><ul><li>Has anybody successfully used llvm on the Mac with 7.10.1 RC1? My problem is described below.</li><li>Which is the recommended gcc to use when building source?</li><ul><li>GNU gcc  4.9.2</li><li>Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)</li></ul><li>When using ghci with 7.10.1 RC1 I get the following errors intermittently. Is anybody else seeing these?</li><ul><li>Too late for parseStaticFlags: call it before runGhc or runGhcT<br>*** Exception: ExitFailure 1</li><li>ld: library not found for -l:ghc31505_10.dylib<br>collect2: error: ld returned 1 exit status<br>phase `Linker' failed (exitcode = 1)<br></li></ul></ul></div><div class="gmail_extra"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">​Thanks​</div><br><div class="gmail_quote">On Fri, Jan 2, 2015 at 9:12 AM, George Colpitts <span dir="ltr"><<a href="mailto:george.colpitts@gmail.com" target="_blank">george.colpitts@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:times new roman,serif;font-size:large">Only problem remaining is compiling with -fllvm and running resulting executable<br></div><div style="font-family:times new roman,serif;font-size:large"><br><div style="font-family:times new roman,serif;font-size:large">​.<div class="gmail_default" style="font-family:times new roman,serif;font-size:large;display:inline">​..​</div><br><br><ul><li>llvm , compiling with llvm (3.4.2) gives the following warnings:</li><ul><li>$ ghc  -fllvm cubeFast.hs<br>[1 of 1] Compiling Main             ( cubeFast.hs, cubeFast.o )<br>clang: warning: argument unused during compilation: '-fno-stack-protector'<br>clang: warning: argument unused during compilation: '-D TABLES_NEXT_TO_CODE'<br>clang: warning: argument unused during compilation: '-I .'<br>clang: warning: argument unused during compilation: '-fno-common'<br>clang: warning: argument unused during compilation: '-U __PIC__'<br>clang: warning: argument unused during compilation: '-D __PIC__'<br>Linking cubeFast ...</li><li>running the resulting executable crashes (compiling without -fllvm gives no warnings and executable works properly)<br></li><li> cat bigCube.txt | ./cubeFast > /dev/null<br>Segmentation fault: 11</li><li>Exception Type:        EXC_BAD_ACCESS (SIGSEGV)<br>Exception Codes:       KERN_INVALID_ADDRESS at 0xfffffffd5bfd8460<br></li></ul></ul></div></div></div><div class=""><div class="h5"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><ul><li><div style="font-family:times new roman,serif;font-size:large;display:inline"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;display:inline">​...</div></div></li></ul><p></p><div style="font-family:times new roman,serif;font-size:large;display:inline">​Configuration details:<br><br><ul><li>Mac OS 10.10.1 (Yosemite)<br></li><li> uname -a<br>Darwin iMac27-5.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64</li><li>llvm info:</li><li> opt --version<br>LLVM (<a href="http://llvm.org/" target="_blank">http://llvm.org/</a>):<br>  LLVM version 3.4.2<br>  Optimized build with assertions.<br>  Built Oct 31 2014 (23:14:30).<br>  Default target: x86_64-apple-darwin14.0.0<br>  Host CPU: corei7</li><li> gcc --version<br>gcc (Homebrew gcc 4.9.1) 4.9.1<br>Copyright (C) 2014 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.  There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</li><li>​ /usr/bin/ghc --info<br> [("Project name","The Glorious Glasgow Haskell Compilation System")<br> ,("GCC extra via C opts"," -fwrapv")<br> ,("C compiler command","/usr/bin/gcc")<br> ,("C compiler flags"," -m64 -fno-stack-protector")<br> ,("C compiler link flags"," -m64")<br> ,("Haskell CPP command","/usr/bin/gcc")<br> ,("Haskell CPP flags","-E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs")<br> ,("ld command","/usr/bin/ld")<br> ,("ld flags"," -arch x86_64")<br> ,("ld supports compact unwind","YES")<br> ,("ld supports build-id","NO")<br> ,("ld supports filelist","YES")<br> ,("ld is GNU ld","NO")<br> ,("ar command","/usr/bin/ar")<br> ,("ar flags","clqs")<br> ,("ar supports at file","NO")<br> ,("touch command","touch")<br> ,("dllwrap command","/bin/false")<br> ,("windres command","/bin/false")<br> ,("libtool command","libtool")<br> ,("perl command","/usr/bin/perl")<br> ,("target os","OSDarwin")<br> ,("target arch","ArchX86_64")<br> ,("target word size","8")<br> ,("target has GNU nonexec stack","False")<br> ,("target has .ident directive","True")<br> ,("target has subsections via symbols","True")<br> ,("Unregisterised","NO")<br> ,("LLVM llc command","llc")<br> ,("LLVM opt command","opt")<br> ,("Project version","7.8.3")<br> ,("Booter version","7.6.3")<br> ,("Stage","2")<br> ,("Build platform","x86_64-apple-darwin")<br> ,("Host platform","x86_64-apple-darwin")<br> ,("Target platform","x86_64-apple-darwin")<br> ,("Have interpreter","YES")<br> ,("Object splitting supported","YES")<br> ,("Have native code generator","YES")<br> ,("Support SMP","YES")<br> ,("Tables next to code","YES")<br> ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn l_dyn thr_l_dyn")<br> ,("Support dynamic-too","YES")<br> ,("Support parallel --make","YES")<br> ,("Dynamic by default","NO")<br> ,("GHC Dynamic","YES")<br> ,("Leading underscore","YES")<br> ,("Debug on","False")<br> ,("LibDir","/Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3")<br> ,("Global Package DB","/Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3/package.conf.d")<br> ]</li><li>Not sure I found the correct instructions for building from source,  I used the following:</li><ul><li><pre>$ autoreconf
$ ./configure
$ make
$ make install</pre></li></ul></ul></div><br><p></p><div class="gmail_quote"><br>On Tue, Dec 23, 2014 at 10:36 AM, Austin Seipp <span dir="ltr"><<a href="mailto:austin@well-typed.com" target="_blank">austin@well-typed.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We are pleased to announce the first release candidate for GHC 7.10.1:<br>
<br>
    <a href="https://downloads.haskell.org/~ghc/7.10.1-rc1/" target="_blank">https://downloads.haskell.org/~ghc/7.10.1-rc1/</a><br>
<br>
This includes the source tarball and bindists for 64bit/32bit Linux<br>
and Windows. Binary builds for other platforms will be available<br>
shortly. (CentOS 6.5 binaries are not available at this time like they<br>
were for 7.8.x). These binaries and tarballs have an accompanying<br>
SHA256SUMS file signed by my GPG key id (0x3B58D86F).<br>
<br>
We plan to make the 7.10.1 release sometime in February of 2015. We<br>
expect another RC to occur during January of 2015.<br>
<br>
Please test as much as possible; bugs are much cheaper if we find them<br>
before the release!<span><font color="#888888"><br>
<span><font color="#888888"><br>
--<br>
Regards,<br>
<br>
Austin Seipp, Haskell Consultant<br>
Well-Typed LLP, <a href="http://www.well-typed.com/" target="_blank">http://www.well-typed.com/</a><br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</font></span></font></span></blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>