make phase1 fails with clang error on Mac OS X El Capitan
make
fails with the following build output at phase1:
╭─bollu@cantordust ~/work/ghc-all/ghc ‹2.3.1› ‹master*›
╰─$ export CC=gcc; export CXX=g++; CC=gcc CXX=g++ make
+ test -f mk/config.mk.old
+ cmp -s mk/config.mk mk/config.mk.old
touch -r mk/config.mk.old mk/config.mk
+ test -f mk/project.mk.old
+ cmp -s mk/project.mk mk/project.mk.old
+ cp -p mk/project.mk mk/project.mk.old
touch -r mk/project.mk.old mk/project.mk
+ test -f compiler/ghc.cabal.old
+ cmp -s compiler/ghc.cabal compiler/ghc.cabal.old
+ cp -p compiler/ghc.cabal compiler/ghc.cabal.old
touch -r compiler/ghc.cabal.old compiler/ghc.cabal
===--- building phase 0
/Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory -f ghc.mk phase=0 phase_0_builds
"rm" -f compiler/stage1/build/Config.hs
Creating compiler/stage1/build/Config.hs ...
done.
"inplace/bin/ghc-cabal" configure libraries/ghc-boot-th dist-boot "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring ghc-boot-th-8.3...
"/usr/local/bin/ghc-pkg" update -v0 --force --package-db=libraries/bootstrapping.conf libraries/ghc-boot-th/dist-boot/inplace-pkg-config
ghc-boot-th-8.3: Warning: Unrecognized field abi-depends on line 30
ghc-boot-th-8.3: Warning: Unrecognized field indefinite on line 18
ghc-boot-th-8.3: Warning: haddock-interfaces: /Users/bollu/work/ghc-all/ghc/libraries/ghc-boot-th/dist-boot/doc/html/ghc-boot-th/ghc-boot-th.haddock doesn't exist or isn't a file
"inplace/bin/ghc-cabal" configure libraries/ghc-boot dist-boot "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring ghc-boot-8.3...
"/usr/local/bin/ghc-pkg" update -v0 --force --package-db=libraries/bootstrapping.conf libraries/ghc-boot/dist-boot/inplace-pkg-config
ghc-boot-8.3: Warning: Unrecognized field abi-depends on line 37
ghc-boot-8.3: Warning: Unrecognized field indefinite on line 23
ghc-boot-8.3: Warning: haddock-interfaces: /Users/bollu/work/ghc-all/ghc/libraries/ghc-boot/dist-boot/doc/html/ghc-boot/ghc-boot.haddock doesn't exist or isn't a file
"inplace/bin/ghc-cabal" configure libraries/hoopl dist-boot "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring hoopl-3.10.2.2...
"/usr/local/bin/ghc-pkg" update -v0 --force --package-db=libraries/bootstrapping.conf libraries/hoopl/dist-boot/inplace-pkg-config
hoopl-3.10.2.2: Warning: Unrecognized field abi-depends on line 36
hoopl-3.10.2.2: Warning: Unrecognized field indefinite on line 17
hoopl-3.10.2.2: Warning: haddock-interfaces: /Users/bollu/work/ghc-all/ghc/libraries/hoopl/dist-boot/doc/html/hoopl/hoopl.haddock doesn't exist or isn't a file
"inplace/bin/ghc-cabal" configure libraries/transformers dist-boot "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring transformers-0.5.2.0...
"/usr/local/bin/ghc-pkg" update -v0 --force --package-db=libraries/bootstrapping.conf libraries/transformers/dist-boot/inplace-pkg-config
transformers-0.5.2.0: Warning: Unrecognized field abi-depends on line 55
transformers-0.5.2.0: Warning: Unrecognized field indefinite on line 33
transformers-0.5.2.0: Warning: haddock-interfaces: /Users/bollu/work/ghc-all/ghc/libraries/transformers/dist-boot/doc/html/transformers/transformers.haddock doesn't exist or isn't a file
"inplace/bin/ghc-cabal" configure libraries/template-haskell dist-boot "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring template-haskell-2.12.0.0...
"/usr/local/bin/ghc-pkg" update -v0 --force --package-db=libraries/bootstrapping.conf libraries/template-haskell/dist-boot/inplace-pkg-config
template-haskell-2.12.0.0: Warning: Unrecognized field abi-depends on line 32
template-haskell-2.12.0.0: Warning: Unrecognized field indefinite on line 16
template-haskell-2.12.0.0: Warning: haddock-interfaces: /Users/bollu/work/ghc-all/ghc/libraries/template-haskell/dist-boot/doc/html/template-haskell/template-haskell.haddock doesn't exist or isn't a file
"inplace/bin/ghc-cabal" configure libraries/ghci dist-boot "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring ghci-8.3...
"/usr/local/bin/ghc-pkg" update -v0 --force --package-db=libraries/bootstrapping.conf libraries/ghci/dist-boot/inplace-pkg-config
ghci-8.3: Warning: Unrecognized field abi-depends on line 31
ghci-8.3: Warning: Unrecognized field indefinite on line 14
ghci-8.3: Warning: haddock-interfaces: /Users/bollu/work/ghc-all/ghc/libraries/ghci/dist-boot/doc/html/ghci/ghci.haddock doesn't exist or isn't a file
"inplace/bin/ghc-cabal" configure libraries/terminfo dist-boot "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring terminfo-0.4.1.0...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... /Users/bollu/work/LLVM-all/polly/llvm_build_ninja/bin/clang
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 /Users/bollu/work/LLVM-all/polly/llvm_build_ninja/bin/clang accepts -g... yes
checking for /Users/bollu/work/LLVM-all/polly/llvm_build_ninja/bin/clang option to accept ISO C89... none needed
checking for setupterm in -ltinfo... no
checking for setupterm in -lncursesw... no
checking for setupterm in -lncurses... yes
configure: creating ./config.status
config.status: creating terminfo.buildinfo
configure: WARNING: unrecognized options: --with-compiler
"/usr/local/bin/ghc-pkg" update -v0 --force --package-db=libraries/bootstrapping.conf libraries/terminfo/dist-boot/inplace-pkg-config
terminfo-0.4.1.0: Warning: Unrecognized field abi-depends on line 35
terminfo-0.4.1.0: Warning: Unrecognized field indefinite on line 18
terminfo-0.4.1.0: Warning: haddock-interfaces: /Users/bollu/work/ghc-all/ghc/libraries/terminfo/dist-boot/doc/html/terminfo/terminfo.haddock doesn't exist or isn't a file
"inplace/bin/ghc-cabal" configure compiler stage1 "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --flags=stage1 --flags=ncg --ghc-option=-DSTAGE=1 --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy" --disable-library-for-ghci
Configuring ghc-8.3...
Warning: 'license-file: ../LICENSE' is a relative path outside of the source
tree. This will not work when generating a tarball with 'sdist'.
"/usr/local/bin/ghc-pkg" update -v0 --force --package-db=libraries/bootstrapping.conf compiler/stage1/inplace-pkg-config
ghc-8.3: Warning: Unrecognized field abi-depends on line 125
ghc-8.3: Warning: Unrecognized field indefinite on line 19
ghc-8.3: Warning: haddock-interfaces: /Users/bollu/work/ghc-all/ghc/compiler/stage1/doc/html/ghc/ghc.haddock doesn't exist or isn't a file
"inplace/bin/ghc-cabal" configure ghc stage1 "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --flags=stage1 --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --disable-library-vanilla --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring ghc-bin-8.3.20170608...
Warning: 'data-dir: ..' is a relative path outside of the source tree. This
will not work when generating a tarball with 'sdist'.
"rm" -f utils/ghc-pkg/dist/build/Version.hs
echo "module Version where" >> utils/ghc-pkg/dist/build/Version.hs
echo "version, targetOS, targetARCH :: String" >> utils/ghc-pkg/dist/build/Version.hs
echo "version = \"8.3.20170608\"" >> utils/ghc-pkg/dist/build/Version.hs
echo "targetOS = \"darwin\"" >> utils/ghc-pkg/dist/build/Version.hs
echo "targetARCH = \"x86_64\"" >> utils/ghc-pkg/dist/build/Version.hs
"inplace/bin/ghc-cabal" configure utils/ghc-pkg dist "" --with-ghc="/usr/local/bin/ghc" --with-ghc-pkg="/usr/local/bin/ghc-pkg" --package-db=/Users/bollu/work/ghc-all/ghc/libraries/bootstrapping.conf --disable-library-for-ghci --disable-library-vanilla --disable-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-stack-protector -Wno-unknown-pragmas" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" -DWITH_TERMINFO" --gcc-options="-Wall -fno-stack-protector -Wno-unknown-pragmas " --constraint "binary == 0.8.4.1" --constraint "Cabal == 2.0.0.0" --constraint "hpc == 0.6.0.3" --constraint "ghc-boot-th == 8.3" --constraint "ghc-boot == 8.3" --constraint "hoopl == 3.10.2.2" --constraint "transformers == 0.5.2.0" --constraint "template-haskell == 2.12.0.0" --constraint "ghci == 8.3" --constraint "terminfo == 0.4.1.0" --with-gcc="clang" --with-ld="ld" --with-ar="/usr/bin/ar" --with-alex="/Users/bollu/.local/bin/alex" --with-happy="/Users/bollu/.local/bin/happy"
Configuring ghc-pkg-6.9...
make[1]: Nothing to be done for `phase_0_builds'.
===--- building phase 1
/Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory -f ghc.mk phase=1 phase_1_builds
utils/unlit/ghc.mk:33: utils/unlit/dist/build/.depend.c_asm: No such file or directory
utils/hp2ps/ghc.mk:43: utils/hp2ps/dist/build/.depend.c_asm: No such file or directory
utils/genapply/ghc.mk:23: utils/genapply/dist/build/.depend.haskell: No such file or directory
utils/genapply/ghc.mk:23: utils/genapply/dist/build/.depend.c_asm: No such file or directory
libraries/hpc/ghc.mk:3: libraries/hpc/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/hpc/ghc.mk:3: libraries/hpc/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/binary/ghc.mk:3: libraries/binary/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/binary/ghc.mk:3: libraries/binary/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/Cabal/Cabal/ghc.mk:3: libraries/Cabal/Cabal/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/Cabal/Cabal/ghc.mk:3: libraries/Cabal/Cabal/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/ghc-boot-th/ghc.mk:3: libraries/ghc-boot-th/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/ghc-boot-th/ghc.mk:3: libraries/ghc-boot-th/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/ghc-boot/ghc.mk:3: libraries/ghc-boot/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/ghc-boot/ghc.mk:3: libraries/ghc-boot/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/template-haskell/ghc.mk:3: libraries/template-haskell/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/template-haskell/ghc.mk:3: libraries/template-haskell/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/hoopl/ghc.mk:3: libraries/hoopl/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/hoopl/ghc.mk:3: libraries/hoopl/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/transformers/ghc.mk:3: libraries/transformers/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/transformers/ghc.mk:3: libraries/transformers/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/terminfo/ghc.mk:3: libraries/terminfo/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/terminfo/ghc.mk:3: libraries/terminfo/dist-boot/build/.depend-v.c_asm: No such file or directory
libraries/ghci/ghc.mk:3: libraries/ghci/dist-boot/build/.depend-v.haskell: No such file or directory
libraries/ghci/ghc.mk:3: libraries/ghci/dist-boot/build/.depend-v.c_asm: No such file or directory
compiler/ghc.mk:592: compiler/stage1/build/.depend-v.haskell: No such file or directory
utils/ghc-pkg/ghc.mk:70: utils/ghc-pkg/dist/build/.depend.haskell: No such file or directory
"rm" -f compiler/stage1/ghc_boot_platform.h
Creating compiler/stage1/ghc_boot_platform.h...
Done.
"rm" -f ghc/stage1/build/.depend.haskell.tmp
"/usr/local/bin/ghc" -M -static -H32m -O -Wall -package-db libraries/bootstrapping.conf -hide-all-packages -i -ighc/. -ighc/stage1/build -Ighc/stage1/build -ighc/stage1/build/ghc/autogen -Ighc/stage1/build/ghc/autogen -optP-include -optPghc/stage1/build/ghc/autogen/cabal_macros.h -package-id base-4.9.1.0 -package-id array-0.5.1.1 -package-id bytestring-0.10.8.1 -package-id directory-1.3.0.0 -package-id process-1.4.3.0 -package-id filepath-1.4.1.1 -package-id ghc-boot-8.3 -package-id ghc-8.3 -package-id unix-2.7.2.1 -Wall -XHaskell2010 -no-hs-main -no-user-package-db -rtsopts -odir ghc/stage1/build -hidir ghc/stage1/build -stubdir ghc/stage1/build -dep-makefile ghc/stage1/build/.depend.haskell.tmp -dep-suffix "" -include-pkg-deps ghc/./Main.hs
echo "ghc_stage1_depfile_haskell_EXISTS = YES" >> ghc/stage1/build/.depend.haskell.tmp
for dir in ghc/stage1/build/./; do if test ! -d $dir; then mkdir -p $dir; fi done
grep -v ' : [a-zA-Z]:/' ghc/stage1/build/.depend.haskell.tmp > ghc/stage1/build/.depend.haskell.tmp2
sed -e '/hs$/ p' -e '/hs$/ s/o /hi /g' -e '/hs$/ s/:/ : %hi: %o /' -e '/hs$/ s/^/$(eval $(call hi-rule,/' -e '/hs$/ s/$/))/' -e '/hs-boot$/ p' -e '/hs-boot$/ s/o-boot /hi-boot /g' -e '/hs-boot$/ s/:/ : %hi-boot: %o-boot /' -e '/hs-boot$/ s/^/$(eval $(call hi-rule,/' -e '/hs-boot$/ s/$/))/' ghc/stage1/build/.depend.haskell.tmp2 > ghc/stage1/build/.depend.haskell
"rm" -f utils/ghc-pkg/dist/build/.depend.haskell.tmp
"/usr/local/bin/ghc" -M -static -H32m -O -Wall -package-db libraries/bootstrapping.conf -hide-all-packages -i -iutils/ghc-pkg/. -iutils/ghc-pkg/dist/build -Iutils/ghc-pkg/dist/build -iutils/ghc-pkg/dist/build/ghc-pkg/autogen -Iutils/ghc-pkg/dist/build/ghc-pkg/autogen -optP-DWITH_TERMINFO -optP-include -optPutils/ghc-pkg/dist/build/ghc-pkg/autogen/cabal_macros.h -package-id base-4.9.1.0 -package-id directory-1.3.0.0 -package-id process-1.4.3.0 -package-id containers-0.5.7.1 -package-id filepath-1.4.1.1 -package-id Cabal-2.0.0.0 -package-id binary-0.8.4.1 -package-id ghc-boot-8.3 -package-id bytestring-0.10.8.1 -package-id terminfo-0.4.1.0 -package-id unix-2.7.2.1 -XHaskell2010 -no-user-package-db -rtsopts -odir utils/ghc-pkg/dist/build -hidir utils/ghc-pkg/dist/build -stubdir utils/ghc-pkg/dist/build -dep-makefile utils/ghc-pkg/dist/build/.depend.haskell.tmp -dep-suffix "" -include-pkg-deps utils/ghc-pkg/./Main.hs utils/ghc-pkg/dist/build/Version.hs
utils/ghc-pkg/Main.hs:1451:40: error:
error: editor placeholder in source file
then termText (location db) <#> termText "\n (no packages)\n"
^
1 error generated.
`clang' failed in phase `C pre-processor'. (Exit code: 1)
make[1]: *** [utils/ghc-pkg/dist/build/.depend.haskell] Error 1
make: *** [all] Error 2
g++ version:
╭─bollu@cantordust ~/work/ghc-all/ghc/libraries ‹2.3.1› ‹master*›
╰─$ g++ --version 2 ↵
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
GCC version:
╭─bollu@cantordust ~/work/ghc-all/ghc/libraries ‹2.3.1› ‹master*›
╰─$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
GHC version:
╭─bollu@cantordust ~/work/ghc-all/ghc/libraries ‹2.3.1› ‹master*›
╰─$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2