mv libraries/integer-gmp/gmp/gmp-5.0.3 libraries/integer-gmp/gmp/gmpbuild chmod +x libraries/integer-gmp/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-gmp/gmp/gmpbuild/ltmain.sh libraries/integer-gmp/gmp/gmpbuild/ltmain.sh.orig sed 's#cmd //c echo "\$1"#cmd /c "echo $1"#' < libraries/integer-gmp/gmp/gmpbuild/ltmain.sh.orig > libraries/integer-gmp/gmp/gmpbuild/ltmain.sh cd libraries/integer-gmp/gmp; (set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \ PATH=`pwd`:$PATH; \ export PATH; \ cd gmpbuild && \ CC=C:/msys32/home/ghc-builder/work/builder/tempbuild/build/inplace/mingw/bin/gcc.exe NM=C:/msys32/home/ghc-builder/work/builder/tempbuild/build/inplace/mingw/bin/nm.exe AR=/ghc-7.6.3/mingw/bin/ar ./configure \ --enable-shared=no \ --host=i386-unknown-mingw32 --build=i386-unknown-mingw32 checking build system type... i386-unknown-mingw32 checking host system type... i386-unknown-mingw32 checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking ABI=32 checking whether C:/msys32/home/ghc-builder/work/builder/tempbuild/build/inplace/mingw/bin/gcc.exe is gcc... yes checking compiler C:/msys32/home/ghc-builder/work/builder/tempbuild/build/inplace/mingw/bin/gcc.exe -m32 -O2 -pedantic -fomit-frame-pointer ... no, abs int -> double conversion checking compiler C:/msys32/home/ghc-builder/work/builder/tempbuild/build/inplace/mingw/bin/gcc.exe -O2 -pedantic -fomit-frame-pointer ... no configure: error: could not find a working compiler, see config.log for details libraries/integer-gmp/gmp/ghc.mk:135: recipe for target 'libraries/integer-gmp/gmp/gmp.h' failed make[1]: *** [libraries/integer-gmp/gmp/gmp.h] Error 1 Makefile:71: recipe for target 'all' failed make: *** [all] Error 2