<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">I did get compiling from source to work on the Mac. Unfortunately I'm not sure what the problem was. <br><br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:large">I now see a new problem, not sure if it is a ghc problem or a library problem:<br><br><div style="margin-left:40px">cabal install HsOpenSSL<br>...<br>Building HsOpenSSL-0.11.1.1...<br>Preprocessing library HsOpenSSL-0.11.1.1...<br>In file included from BN.hsc:45:<br>cbits/HsOpenSSL.h:3:10: fatal error: 'openssl/asn1.h' file not found<br>#include <openssl/asn1.h><br>         ^<br>1 error generated.<br>compiling dist/build/OpenSSL/BN_hsc_make.c failed (exit code 1)<br>command was: /usr/bin/gcc -c dist/build/OpenSSL/BN_hsc_make.c -o dist/build/OpenSSL/BN_hsc_make.o -m64 -fno-stack-protector -D__GLASGOW_HASKELL__=710 -Ddarwin_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Ddarwin_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Icbits -D PTHREAD -DCALLCONV=ccall -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/Users/gcolpitts/Library/Haskell/ghc-7.10.2.20151105-x86_64/lib/network-2.6.2.1/include -I/usr/local/lib/ghc-7.10.2.20151105/unix_KZL8h98IqDM57kQSPo1mKx/include -I/usr/local/lib/ghc-7.10.2.20151105/time_FTheb6LSxyX1UABIbBXRfn/include -I/usr/local/lib/ghc-7.10.2.20151105/bytes_6VWy06pWzJq9evDvK2d4w6/include -I/usr/local/lib/ghc-7.10.2.20151105/base_HQfYBxpPvuw8OunzQu6JGM/include -I/usr/local/lib/ghc-7.10.2.20151105/integ_2aU3IZNMF9a7mQ0OzsZ0dS/include -I/usr/local/lib/ghc-7.10.2.20151105/include -I/usr/local/lib/ghc-7.10.2.20151105/include/<br>cabal: Error: some packages failed to install:<br>HsOpenSSL-0.11.1.1 failed during the building phase. The exception was:<br>ExitFailure 1<br><br>/usr/bin/gcc --version<br>/usr/bin/gcc --version<br>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1<br>Apple LLVM version 7.0.0 (clang-700.1.76)<br>Target: x86_64-apple-darwin15.0.0<br>Thread model: posix<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 9, 2015 at 10:49 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 style="font-family:'times new roman',serif;font-size:large">redid with just make rather than make -j5. I get</div><div style="font-family:'times new roman',serif;font-size:large"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div style="font-family:'times new roman',serif;font-size:large"><br></div><div style="font-family:'times new roman',serif;font-size:large">...</div><div style="font-family:'times new roman',serif;font-size:large"><div>chmod +x libraries/integer-gmp2/gmp/ln</div></div><div style="font-family:'times new roman',serif;font-size:large"><div># Their cmd invocation only works on msys. On cygwin it starts</div></div><div style="font-family:'times new roman',serif;font-size:large"><div># a cmd interactive shell. The replacement works in both environments.</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>mv libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh.orig</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>sed 's#cmd //c echo "\$1"#cmd /c "echo $1"#' < libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh.orig > libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>cd libraries/integer-gmp2/gmp; (set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \</div></div><div style="font-family:'times new roman',serif;font-size:large"><div><span style="white-space:pre-wrap">       </span>    PATH=`pwd`:$PATH; \</div></div><div style="font-family:'times new roman',serif;font-size:large"><div><span style="white-space:pre-wrap">   </span>    export PATH; \</div></div><div style="font-family:'times new roman',serif;font-size:large"><div><span style="white-space:pre-wrap">        </span>    cd gmpbuild && \</div></div><div style="font-family:'times new roman',serif;font-size:large"><div><span style="white-space:pre-wrap">      </span>    CC=clang NM=/usr/bin/nm AR=/usr/bin/ar ./configure \</div></div><div style="font-family:'times new roman',serif;font-size:large"><div><span style="white-space:pre-wrap">  </span>          --enable-shared=no \</div></div><div style="font-family:'times new roman',serif;font-size:large"><div><span style="white-space:pre-wrap"> </span>          --host=x86_64-apple-darwin --build=x86_64-apple-darwin</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>/bin/sh: SHELLOPTS: readonly variable</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking build system type... /bin/sh: SHELLOPTS: readonly variable</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>/bin/sh: SHELLOPTS: readonly variable</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>x86_64-apple-darwin</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking host system type... /bin/sh: SHELLOPTS: readonly variable</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>/bin/sh: SHELLOPTS: readonly variable</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>x86_64-apple-darwin</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking for a BSD-compatible install... /usr/bin/install -c</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking whether build environment is sane... yes</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>/bin/sh: SHELLOPTS: readonly variable</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking for a thread-safe mkdir -p... ./install-sh -c -d</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking for gawk... no</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking for mawk... no</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking for nawk... no</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking for awk... awk</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking whether make sets $(MAKE)... yes</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking whether to enable maintainer-specific portions of Makefiles... no</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking ABI=64</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking whether clang is gcc... yes</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking compiler clang -O2 -pedantic -fPIC -m64 ... no, gnupro alpha ev6 char spilling</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking ABI=32</div></div><div style="font-family:'times new roman',serif;font-size:large"><div>checking whether clang is gcc... yes</div></div><div style="font-family:'times new roman',serif;font-size:large"><div><b>checking compiler clang -m32 -O2 -pedantic -fPIC -fomit-frame-pointer ... no, gnupro alpha ev6 char spilling</b></div></div><div style="font-family:'times new roman',serif;font-size:large"><div><b>checking compiler clang -O2 -pedantic -fPIC -fomit-frame-pointer ... no, gnupro alpha ev6 char spilling</b></div></div><div style="font-family:'times new roman',serif;font-size:large"><div><b>configure: error: could not find a working compiler, see config.log for details</b></div></div><div style="font-family:'times new roman',serif;font-size:large"><div><b>make[1]: *** [libraries/integer-gmp2/gmp/gmp.h] Error 1</b></div></div><div style="font-family:'times new roman',serif;font-size:large"><div><b>make: *** [all] Error 2</b></div></div></blockquote></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 9, 2015 at 9:32 AM, Ben Gamari <span dir="ltr"><<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>George Colpitts <<a href="mailto:george.colpitts@gmail.com" target="_blank">george.colpitts@gmail.com</a>> writes:<br>
<br>
> I get<br>
><br>
> make[1]: *** [libraries/integer-gmp2/gmp/gmp.h] Error 1<br>
> make[1]: *** Waiting for unfinished jobs....<br>
<br>
</span>It looks like the build failed somewhere before this point. Could you<br>
provide a more complete log?<br>
<br>
Cheers,<br>
<br>
- Ben<br>
<br>
<br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>