
I did get compiling from source to work on the Mac. Unfortunately I'm not
sure what the problem was.
I now see a new problem, not sure if it is a ghc problem or a library
problem:
cabal install HsOpenSSL
...
Building HsOpenSSL-0.11.1.1...
Preprocessing library HsOpenSSL-0.11.1.1...
In file included from BN.hsc:45:
cbits/HsOpenSSL.h:3:10: fatal error: 'openssl/asn1.h' file not found
#include
redid with just make rather than make -j5. I get
... chmod +x libraries/integer-gmp2/gmp/ln # Their cmd invocation only works on msys. On cygwin it starts # a cmd interactive shell. The replacement works in both environments. mv libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh.orig 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 cd libraries/integer-gmp2/gmp; (set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \ PATH=`pwd`:$PATH; \ export PATH; \ cd gmpbuild && \ CC=clang NM=/usr/bin/nm AR=/usr/bin/ar ./configure \ --enable-shared=no \ --host=x86_64-apple-darwin --build=x86_64-apple-darwin /bin/sh: SHELLOPTS: readonly variable checking build system type... /bin/sh: SHELLOPTS: readonly variable /bin/sh: SHELLOPTS: readonly variable x86_64-apple-darwin checking host system type... /bin/sh: SHELLOPTS: readonly variable /bin/sh: SHELLOPTS: readonly variable x86_64-apple-darwin checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /bin/sh: SHELLOPTS: readonly variable checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking ABI=64 checking whether clang is gcc... yes checking compiler clang -O2 -pedantic -fPIC -m64 ... no, gnupro alpha ev6 char spilling checking ABI=32 checking whether clang is gcc... yes *checking compiler clang -m32 -O2 -pedantic -fPIC -fomit-frame-pointer ... no, gnupro alpha ev6 char spilling* *checking compiler clang -O2 -pedantic -fPIC -fomit-frame-pointer ... no, gnupro alpha ev6 char spilling* *configure: error: could not find a working compiler, see config.log for details* *make[1]: *** [libraries/integer-gmp2/gmp/gmp.h] Error 1* *make: *** [all] Error 2*
On Mon, Nov 9, 2015 at 9:32 AM, Ben Gamari
wrote: George Colpitts
writes: I get
make[1]: *** [libraries/integer-gmp2/gmp/gmp.h] Error 1 make[1]: *** Waiting for unfinished jobs....
It looks like the build failed somewhere before this point. Could you provide a more complete log?
Cheers,
- Ben