<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">Only problem remaining is compiling with -fllvm and running resulting executable<br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large"><br>Other problems below have now been solved:<br><br><ul><li>cpphs - new version resolves problem</li><li>cabal install vector - upgrade to gcc (Homebrew gcc 4.9.2_1) 4.9.2 solves problem</li></ul></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 1, 2015 at 9:58 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">I built from source on Mac OS and found the following issues:<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 class="gmail_extra"><ul><li><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;display:inline">​cabal install vector fails:</div></li><ul><li>[<font> 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o )<br><command line>: can't load .so/.DLL for: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib (dlopen(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib, 5): no suitable image found.  Did find:<br>    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib: mach-o, but wrong filetype)</font></li></ul><li><font><div class="gmail_default" style="font-family:times new roman,serif;font-size:large;display:inline">​cabal install cpphs fails:​</div></font></li><ul><li><font>   cabal install cpphs<br>Resolving dependencies...<br>Configuring cpphs-1.13...<br>Building cpphs-1.13...<br>Failed to install cpphs-1.13<br>Build log ( /Users/gcolpitts/.cabal/logs/cpphs-1.13.log ):<br>Warning: cpphs.cabal: Unknown fields: build-depends (line 5)<br>Fields allowed in this section:<br>name, version, cabal-version, build-type, license, license-file,<br>license-files, copyright, maintainer, stability, homepage,<br>package-url, bug-reports, synopsis, description, category, author,<br>tested-with, data-files, data-dir, extra-source-files,<br>extra-tmp-files, extra-doc-files<br>Configuring cpphs-1.13...<br>Building cpphs-1.13...<br>Preprocessing library cpphs-1.13...</font></li><li><font>Language/Preprocessor/Cpphs.hs:1:1:<br>    Could not find module ‘Prelude’<br>    It is a member of the hidden package ‘base-4.8.0.0’.<br>    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Cpphs/CppIfdef.hs:32:8:<br>    Could not find module ‘Numeric’<br>    It is a member of the hidden package ‘base-4.8.0.0’.<br>    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Cpphs/CppIfdef.hs:33:8:<br>    Could not find module ‘System.IO.Unsafe’<br>    It is a member of the hidden package ‘base-4.8.0.0’.<br>    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Cpphs/CppIfdef.hs:34:8:<br>    Could not find module ‘System.IO’<br>    It is a member of the hidden package ‘base-4.8.0.0’.<br>    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Cpphs/MacroPass.hs:29:8:<br>    Could not find module ‘Control.Monad’<br>    It is a member of the hidden package ‘base-4.8.0.0’.<br>    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Cpphs/MacroPass.hs:30:8:<br>    Could not find module ‘System.Time’<br>    Perhaps you meant<br>      System.CPUTime (needs flag -package-key base-4.8.0.0)<br>      System.Cmd (needs flag -package-key process-1.2.1.0@proce_ADbmNMhxdsoDn9NrOWjezu)<br>      System.Mem (needs flag -package-key base-4.8.0.0)<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Cpphs/MacroPass.hs:31:8:<br>    Could not find module ‘System.Locale’<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Cpphs/Options.hs:22:8:<br>    Could not find module ‘Data.Maybe’<br>    It is a member of the hidden package ‘base-4.8.0.0’.<br>    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Cpphs/ReadFirst.hs:19:8:<br>    Could not find module ‘System.Directory’<br>    It is a member of the hidden package ‘directory-1.2.1.1@direc_3m6Ew9I164U5MIkATLCdb8’.<br>    Perhaps you need to add ‘directory’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Unlit.hs:5:8:<br>    Could not find module ‘Data.Char’<br>    It is a member of the hidden package ‘base-4.8.0.0’.<br>    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br><br>Language/Preprocessor/Unlit.hs:6:8:<br>    Could not find module ‘Data.List’<br>    It is a member of the hidden package ‘base-4.8.0.0’.<br>    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.<br>    Use -v to see a list of the files searched for.<br>cabal: Error: some packages failed to install:<br>cpphs-1.13 failed during the building phase. The exception was:<br>ExitFailure 1</font></li></ul></ul><p></p><div class="gmail_default" 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 class="HOEnZb"><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>