
#13816: make phase1 fails with clang error on Mac OS X El Capitan -------------------------------------+------------------------------------- Reporter: bollu | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- `make` fails with the following build output at phase1: {{{ ╭─bollu@cantordust ~/work/ghc-all/ghc/libraries ‹2.3.1› ‹master*› ╰─$ export CC=gcc; export CXX=g++; CC=gcc CXX=g++ make 130 ↵ /Applications/Xcode.app/Contents/Developer/usr/bin/make -C .. all_libraries ===--- building phase 0 /Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print- directory -f ghc.mk phase=0 phase_0_builds make[2]: 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/text/ghc.mk:3: libraries/text/dist-boot/build/.depend-v.haskell: No such file or directory libraries/text/ghc.mk:3: libraries/text/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:590: 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 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[2]: *** [utils/ghc-pkg/dist/build/.depend.haskell] Error 1 make[1]: *** [all_libraries] Error 2 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 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13816 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler