Skip to content

Instantly share code, notes, and snippets.

@christiaanb
Created July 14, 2014 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiaanb/ec06e93fa16fdfdb5fa3 to your computer and use it in GitHub Desktop.
Save christiaanb/ec06e93fa16fdfdb5fa3 to your computer and use it in GitHub Desktop.
/opt/ghc/7.8.3$ make
cd ./src/ghc-7.8.3 && ./configure --prefix=/opt/ghc/7.8.3 && make install
checking for path to top of build tree... /opt/ghc/7.8.3/src/ghc-7.8.3
Build platform inferred as: x86_64-apple-darwin
Host platform inferred as: x86_64-apple-darwin
Target platform inferred as: x86_64-apple-darwin
GHC build : x86_64-apple-darwin
GHC host : x86_64-apple-darwin
GHC target : x86_64-apple-darwin
checking for perl... /usr/bin/perl
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether ln -s works... yes
checking for gsed... /usr/local/bin/gsed
checking XCode version... xcode-select: Error: No Xcode is selected. Use xcode-select -switch <path-to-xcode>, or see the xcode-select manpage (man xcode-select) for further information.
not found (too old?)
checking for gcc... /usr/bin/gcc
checking for ld... /usr/bin/ld
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking version of gcc... 4.2.1
checking how to run the C preprocessor... /usr/bin/gcc -E
checking whether ld is GNU ld... no
checking whether ld understands --build-id... no
checking whether ld understands -no_compact_unwind... yes
checking whether ld understands -filelist... yes
checking for extra options to pass gcc when compiling via C... -fwrapv
checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and CPPFLAGS... done
checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done
checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done
checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done
checking for .subsections_via_symbols... yes
checking whether your assembler supports .ident directive... yes
checking for GNU non-executable stack support... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of void *... 8
checking for ar... /usr/bin/ar
checking whether /usr/bin/ar is GNU ar... no
checking for ar arguments... clqs
checking whether /usr/bin/ar supports @file... no
checking for ranlib... ranlib
configure: creating ./config.status
config.status: creating settings
config.status: creating mk/config.mk
config.status: creating mk/install.mk
****************************************************
Configuration done, ready to 'make install'
(see README and INSTALL files for more info.)
****************************************************
make -r --no-print-directory -f ghc.mk install BINDIST=YES NO_INCLUDE_DEPS=YES
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/bin"
"rm" -f "/opt/ghc/7.8.3/bin/ghci-7.8.3"
create () { touch "$1" && chmod 755 "$1" ; } && create "/opt/ghc/7.8.3/bin/ghci-7.8.3"
echo '#!/bin/sh' >> "/opt/ghc/7.8.3/bin/ghci-7.8.3"
echo 'exec "/opt/ghc/7.8.3/bin/ghc-7.8.3" --interactive ${1+"$@"}' >> "/opt/ghc/7.8.3/bin/ghci-7.8.3"
chmod +x "/opt/ghc/7.8.3/bin/ghci-7.8.3"
"rm" -f "/opt/ghc/7.8.3/bin/ghci"
ln -s ghci-7.8.3 "/opt/ghc/7.8.3/bin/ghci"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/include"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/." && /usr/local/bin/ginstall -c -m 644 includes/./*.h "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/./" && /usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/rts" && /usr/local/bin/ginstall -c -m 644 includes/rts/*.h "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/rts/" && /usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/rts/prof" && /usr/local/bin/ginstall -c -m 644 includes/rts/prof/*.h "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/rts/prof/" && /usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/rts/storage" && /usr/local/bin/ginstall -c -m 644 includes/rts/storage/*.h "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/rts/storage/" && /usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/stg" && /usr/local/bin/ginstall -c -m 644 includes/stg/*.h "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/stg/" && true
/usr/local/bin/ginstall -c -m 644 includes/ghcautoconf.h includes/ghcplatform.h includes/dist-derivedconstants/header/DerivedConstants.h "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/include"
/usr/local/bin/ginstall -c -m 644 rts/dist/build/ffi.h rts/dist/build/ffitarget.h "/opt/ghc/7.8.3/lib/ghc-7.8.3/include/"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/bin"
"rm" -f "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
create () { touch "$1" && chmod 755 "$1" ; } && create "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
echo '#!/bin/sh' >> "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
echo 'exedir="/opt/ghc/7.8.3/lib/ghc-7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
echo 'exeprog="haddock"' >> "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
echo 'executablename="$exedir/$exeprog"' >> "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
echo 'datadir="/opt/ghc/7.8.3/share"' >> "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
echo 'bindir="/opt/ghc/7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
echo 'topdir="/opt/ghc/7.8.3/lib/ghc-7.8.3"' >> "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
cat utils/haddock/haddock.wrapper >> "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
chmod +x "/opt/ghc/7.8.3/bin/haddock-ghc-7.8.3"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Classic.theme/"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Ocean.std-theme/"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3/latex/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/frames.html "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/haddock-util.js "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Classic.theme/haskell_icon.gif "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Classic.theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Classic.theme/minus.gif "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Classic.theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Classic.theme/plus.gif "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Classic.theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Classic.theme/xhaddock.css "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Classic.theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Ocean.std-theme/hslogo-16.png "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Ocean.std-theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Ocean.std-theme/minus.gif "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Ocean.std-theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Ocean.std-theme/ocean.css "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Ocean.std-theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Ocean.std-theme/plus.gif "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Ocean.std-theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/html/Ocean.std-theme/synopsis.png "/opt/ghc/7.8.3/lib/ghc-7.8.3/html/Ocean.std-theme/"
/usr/local/bin/ginstall -c -m 644 utils/haddock/resources/latex/haddock.sty "/opt/ghc/7.8.3/lib/ghc-7.8.3/latex/"
"rm" -f "/opt/ghc/7.8.3/bin/haddock"
ln -s haddock-ghc-7.8.3 "/opt/ghc/7.8.3/bin/haddock"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/bin"
"rm" -f "/opt/ghc/7.8.3/bin/hsc2hs"
create () { touch "$1" && chmod 755 "$1" ; } && create "/opt/ghc/7.8.3/bin/hsc2hs"
echo '#!/bin/sh' >> "/opt/ghc/7.8.3/bin/hsc2hs"
echo 'exedir="/opt/ghc/7.8.3/lib/ghc-7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/hsc2hs"
echo 'exeprog="hsc2hs"' >> "/opt/ghc/7.8.3/bin/hsc2hs"
echo 'executablename="$exedir/$exeprog"' >> "/opt/ghc/7.8.3/bin/hsc2hs"
echo 'datadir="/opt/ghc/7.8.3/share"' >> "/opt/ghc/7.8.3/bin/hsc2hs"
echo 'bindir="/opt/ghc/7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/hsc2hs"
echo 'topdir="/opt/ghc/7.8.3/lib/ghc-7.8.3"' >> "/opt/ghc/7.8.3/bin/hsc2hs"
echo 'HSC2HS_EXTRA="--cflag=-m64 --cflag=-fno-stack-protector --lflag=-m64"' >> "/opt/ghc/7.8.3/bin/hsc2hs"
cat utils/hsc2hs/hsc2hs.wrapper >> "/opt/ghc/7.8.3/bin/hsc2hs"
chmod +x "/opt/ghc/7.8.3/bin/hsc2hs"
/usr/local/bin/ginstall -c -m 644 utils/hsc2hs/template-hsc.h "/opt/ghc/7.8.3/lib/ghc-7.8.3"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/bin"
"rm" -f "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
create () { touch "$1" && chmod 755 "$1" ; } && create "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
echo '#!/bin/sh' >> "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
echo 'exedir="/opt/ghc/7.8.3/lib/ghc-7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
echo 'exeprog="ghc-pkg"' >> "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
echo 'executablename="$exedir/$exeprog"' >> "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
echo 'datadir="/opt/ghc/7.8.3/share"' >> "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
echo 'bindir="/opt/ghc/7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
echo 'topdir="/opt/ghc/7.8.3/lib/ghc-7.8.3"' >> "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
cat utils/ghc-pkg/ghc-pkg.wrapper >> "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
chmod +x "/opt/ghc/7.8.3/bin/ghc-pkg-7.8.3"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/bin"
"rm" -f "/opt/ghc/7.8.3/bin/ghc-pkg"
ln -s ghc-pkg-7.8.3 "/opt/ghc/7.8.3/bin/ghc-pkg"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/bin"
"rm" -f "/opt/ghc/7.8.3/bin/hpc"
create () { touch "$1" && chmod 755 "$1" ; } && create "/opt/ghc/7.8.3/bin/hpc"
echo '#!/bin/sh' >> "/opt/ghc/7.8.3/bin/hpc"
echo 'exedir="/opt/ghc/7.8.3/lib/ghc-7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/hpc"
echo 'exeprog="hpc"' >> "/opt/ghc/7.8.3/bin/hpc"
echo 'executablename="$exedir/$exeprog"' >> "/opt/ghc/7.8.3/bin/hpc"
echo 'datadir="/opt/ghc/7.8.3/share"' >> "/opt/ghc/7.8.3/bin/hpc"
echo 'bindir="/opt/ghc/7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/hpc"
echo 'topdir="/opt/ghc/7.8.3/lib/ghc-7.8.3"' >> "/opt/ghc/7.8.3/bin/hpc"
cat utils/hpc/hpc.wrapper >> "/opt/ghc/7.8.3/bin/hpc"
chmod +x "/opt/ghc/7.8.3/bin/hpc"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/bin"
"rm" -f "/opt/ghc/7.8.3/bin/runghc-7.8.3"
create () { touch "$1" && chmod 755 "$1" ; } && create "/opt/ghc/7.8.3/bin/runghc-7.8.3"
echo '#!/bin/sh' >> "/opt/ghc/7.8.3/bin/runghc-7.8.3"
echo 'exedir="/opt/ghc/7.8.3/lib/ghc-7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/runghc-7.8.3"
echo 'exeprog="runghc"' >> "/opt/ghc/7.8.3/bin/runghc-7.8.3"
echo 'executablename="$exedir/$exeprog"' >> "/opt/ghc/7.8.3/bin/runghc-7.8.3"
echo 'datadir="/opt/ghc/7.8.3/share"' >> "/opt/ghc/7.8.3/bin/runghc-7.8.3"
echo 'bindir="/opt/ghc/7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/runghc-7.8.3"
echo 'topdir="/opt/ghc/7.8.3/lib/ghc-7.8.3"' >> "/opt/ghc/7.8.3/bin/runghc-7.8.3"
cat utils/runghc/runghc.wrapper >> "/opt/ghc/7.8.3/bin/runghc-7.8.3"
chmod +x "/opt/ghc/7.8.3/bin/runghc-7.8.3"
"rm" -f "/opt/ghc/7.8.3/bin/runhaskell"
ln -s runghc "/opt/ghc/7.8.3/bin/runhaskell"
"rm" -f "/opt/ghc/7.8.3/bin/runghc"
ln -s runghc-7.8.3 "/opt/ghc/7.8.3/bin/runghc"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/bin"
"rm" -f "/opt/ghc/7.8.3/bin/ghc-7.8.3"
create () { touch "$1" && chmod 755 "$1" ; } && create "/opt/ghc/7.8.3/bin/ghc-7.8.3"
echo '#!/bin/sh' >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
echo 'exedir="/opt/ghc/7.8.3/lib/ghc-7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
echo 'exeprog="ghc-stage2"' >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
echo 'executablename="$exedir/$exeprog"' >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
echo 'datadir="/opt/ghc/7.8.3/share"' >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
echo 'bindir="/opt/ghc/7.8.3/bin"' >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
echo 'topdir="/opt/ghc/7.8.3/lib/ghc-7.8.3"' >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
echo 'executablename="$exedir/ghc"' >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
cat ghc/ghc.wrapper >> "/opt/ghc/7.8.3/bin/ghc-7.8.3"
chmod +x "/opt/ghc/7.8.3/bin/ghc-7.8.3"
"rm" -f "/opt/ghc/7.8.3/bin/ghc"
ln -s ghc-7.8.3 "/opt/ghc/7.8.3/bin/ghc"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/share/man"
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/share/man/man1"
/usr/local/bin/ginstall -c -m 644 docs/man/ghc.1 "/opt/ghc/7.8.3/share/man/man1"
# driver/ghc-usage.txt driver/ghci-usage.txt includes/dist-derivedconstants/header/platformConstants settings = libraries to install
# "/opt/ghc/7.8.3/lib/ghc-7.8.3" = directory to install to
/usr/local/bin/ginstall -c -m 755 -d "/opt/ghc/7.8.3/lib/ghc-7.8.3"
for i in driver/ghc-usage.txt driver/ghci-usage.txt includes/dist-derivedconstants/header/platformConstants settings; do case $i in *.a) /usr/local/bin/ginstall -c -m 644 $i "/opt/ghc/7.8.3/lib/ghc-7.8.3"; ranlib "/opt/ghc/7.8.3/lib/ghc-7.8.3"/`basename $i` ;; *.dll) /usr/local/bin/ginstall -c -m 755 $i "/opt/ghc/7.8.3/lib/ghc-7.8.3" ; strip "/opt/ghc/7.8.3/lib/ghc-7.8.3"/`basename $i` ;; *.so) /usr/local/bin/ginstall -c -m 755 $i "/opt/ghc/7.8.3/lib/ghc-7.8.3" ;; *.dylib) /usr/local/bin/ginstall -c -m 755 $i "/opt/ghc/7.8.3/lib/ghc-7.8.3";; *) /usr/local/bin/ginstall -c -m 644 $i "/opt/ghc/7.8.3/lib/ghc-7.8.3"; esac; done
/usr/bin/gcc -E -m64 -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs -P -DINSTALLING -DLIB_DIR='"/opt/ghc/7.8.3/lib/ghc-7.8.3"' -DINCLUDE_DIR='"/opt/ghc/7.8.3/lib/ghc-7.8.3/include"' -DPAPI_INCLUDE_DIR="" -DPAPI_LIB_DIR="" -DFFI_INCLUDE_DIR= -DFFI_LIB_DIR= '-DFFI_LIB="Cffi"' -x c -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header rts/package.conf.in -o rts/dist/package.conf.install.raw
cc1: error: unrecognized command line option "-Wno-invalid-pp-token"
cc1: error: unrecognized command line option "-Wno-unicode"
make[2]: *** [rts/dist/package.conf.install] Error 1
make[1]: *** [install] Error 2
make: *** [install] Error 2
/opt/ghc/7.8.3$
@dgomez10
Copy link

Were you ever able to figure out how to make the right changes and remove errors cc1: and cc2: by removing those CLI options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment