Skip to content

Instantly share code, notes, and snippets.

@mchakravarty
Last active December 22, 2015 06:29
Show Gist options
  • Save mchakravarty/6431377 to your computer and use it in GitHub Desktop.
Save mchakravarty/6431377 to your computer and use it in GitHub Desktop.
I am trying to compile GHC HEAD from today (4 Sep) with the command line tools of Xcode5-DP6, using GHC 7.6.3 of the current Haskell Platform. I'm using the clang-xcode5-wrapper from GHC iOS, so that GHC 7.6 can be friends with clang's cpp. Unfortunately, it doesn't work. I have tracked it down to GHC trying to compute module dependencies (-M) a…
"/usr/bin/ghc" -M -static -H32m -O -Werror -Wall -H64m -O0 -package-db libraries/bootstrapping.conf -package-name Cabal-1.18.0 -hide-all-packages -i -ilibraries/Cabal/Cabal/. -ilibraries/Cabal/Cabal/dist-boot/build -ilibraries/Cabal/Cabal/dist-boot/build/autogen -Ilibraries/Cabal/Cabal/dist-boot/build -Ilibraries/Cabal/Cabal/dist-boot/build/autogen -Ilibraries/Cabal/Cabal/. -optP-include -optPlibraries/Cabal/Cabal/dist-boot/build/autogen/cabal_macros.h -package array-0.4.0.1 -package base-4.6.0.1 -package bytestring-0.10.0.2 -package containers-0.5.0.0 -package deepseq-1.3.0.1 -package directory-1.2.0.1 -package filepath-1.3.0.1 -package pretty-1.1.1.0 -package process-1.1.0.2 -package time-1.4.0.1 -package unix-2.6.0.1 -Wall -fno-ignore-asserts -fwarn-tabs -XHaskell98 -XCPP -fno-warn-deprecated-flags -no-user-package-db -rtsopts -w -odir libraries/Cabal/Cabal/dist-boot/build -hidir libraries/Cabal/Cabal/dist-boot/build -stubdir libraries/Cabal/Cabal/dist-boot/build -dep-makefile libraries/Cabal/Cabal/dist-boot/build/.depend-v.haskell.tmp -dep-suffix "" -include-pkg-deps libraries/Cabal/Cabal/./Distribution/Compat/Environment.hs libraries/Cabal/Cabal/./Distribution/Compat/Exception.hs libraries/Cabal/Cabal/./Distribution/Compat/ReadP.hs libraries/Cabal/Cabal/./Distribution/Compiler.hs libraries/Cabal/Cabal/./Distribution/InstalledPackageInfo.hs libraries/Cabal/Cabal/./Distribution/License.hs libraries/Cabal/Cabal/./Distribution/Make.hs libraries/Cabal/Cabal/./Distribution/ModuleName.hs libraries/Cabal/Cabal/./Distribution/Package.hs libraries/Cabal/Cabal/./Distribution/PackageDescription.hs libraries/Cabal/Cabal/./Distribution/PackageDescription/Check.hs libraries/Cabal/Cabal/./Distribution/PackageDescription/Configuration.hs libraries/Cabal/Cabal/./Distribution/PackageDescription/Parse.hs libraries/Cabal/Cabal/./Distribution/PackageDescription/PrettyPrint.hs libraries/Cabal/Cabal/./Distribution/PackageDescription/Utils.hs libraries/Cabal/Cabal/./Distribution/ParseUtils.hs libraries/Cabal/Cabal/./Distribution/ReadE.hs libraries/Cabal/Cabal/./Distribution/Simple.hs libraries/Cabal/Cabal/./Distribution/Simple/Bench.hs libraries/Cabal/Cabal/./Distribution/Simple/Build.hs libraries/Cabal/Cabal/./Distribution/Simple/Build/Macros.hs libraries/Cabal/Cabal/./Distribution/Simple/Build/PathsModule.hs libraries/Cabal/Cabal/./Distribution/Simple/BuildPaths.hs libraries/Cabal/Cabal/./Distribution/Simple/BuildTarget.hs libraries/Cabal/Cabal/./Distribution/Simple/CCompiler.hs libraries/Cabal/Cabal/./Distribution/Simple/Command.hs libraries/Cabal/Cabal/./Distribution/Simple/Compiler.hs libraries/Cabal/Cabal/./Distribution/Simple/Configure.hs libraries/Cabal/Cabal/./Distribution/Simple/GHC.hs libraries/Cabal/Cabal/./Distribution/Simple/Haddock.hs libraries/Cabal/Cabal/./Distribution/Simple/Hpc.hs libraries/Cabal/Cabal/./Distribution/Simple/Hugs.hs libraries/Cabal/Cabal/./Distribution/Simple/Install.hs libraries/Cabal/Cabal/./Distribution/Simple/InstallDirs.hs libraries/Cabal/Cabal/./Distribution/Simple/JHC.hs libraries/Cabal/Cabal/./Distribution/Simple/LHC.hs libraries/Cabal/Cabal/./Distribution/Simple/LocalBuildInfo.hs libraries/Cabal/Cabal/./Distribution/Simple/NHC.hs libraries/Cabal/Cabal/./Distribution/Simple/PackageIndex.hs libraries/Cabal/Cabal/./Distribution/Simple/PreProcess.hs libraries/Cabal/Cabal/./Distribution/Simple/PreProcess/Unlit.hs libraries/Cabal/Cabal/./Distribution/Simple/Program.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Ar.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Builtin.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Db.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Find.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/GHC.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/HcPkg.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Hpc.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Ld.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Run.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Script.hs libraries/Cabal/Cabal/./Distribution/Simple/Program/Types.hs libraries/Cabal/Cabal/./Distribution/Simple/Register.hs libraries/Cabal/Cabal/./Distribution/Simple/Setup.hs libraries/Cabal/Cabal/./Distribution/Simple/SrcDist.hs libraries/Cabal/Cabal/./Distribution/Simple/Test.hs libraries/Cabal/Cabal/./Distribution/Simple/UHC.hs libraries/Cabal/Cabal/./Distribution/Simple/UserHooks.hs libraries/Cabal/Cabal/./Distribution/Simple/Utils.hs libraries/Cabal/Cabal/./Distribution/System.hs libraries/Cabal/Cabal/./Distribution/TestSuite.hs libraries/Cabal/Cabal/./Distribution/Text.hs libraries/Cabal/Cabal/./Distribution/Verbosity.hs libraries/Cabal/Cabal/./Distribution/Version.hs libraries/Cabal/Cabal/./Language/Haskell/Extension.hs libraries/Cabal/Cabal/./Distribution/Compat/CopyFile.hs libraries/Cabal/Cabal/./Distribution/Compat/TempFile.hs libraries/Cabal/Cabal/./Distribution/GetOpt.hs libraries/Cabal/Cabal/./Distribution/Simple/GHC/IPI641.hs libraries/Cabal/Cabal/./Distribution/Simple/GHC/IPI642.hs libraries/Cabal/Cabal/dist-boot/build/autogen/Paths_Cabal.hs
libraries/Cabal/Cabal/Distribution/Version.hs:237:4:
error: invalid preprocessing directive
#-}
^
1 error generated.
withinreason chak 527 (.../Code/ghc-test): /usr/local/bin/clang-xcode5-wrapper --version
Apple LLVM version 5.0 (clang-500.1.74) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
'/usr/local/bin/clang-xcode5-wrapper' '-Werror' '-E' '-undef' '-traditional' '-m64' '-fno-stack-protector' '-m64' '-I' 'libraries/Cabal/Cabal/dist-boot/build' '-I' 'libraries/Cabal/Cabal/dist-boot/build' '-I' 'libraries/Cabal/Cabal/dist-boot/build/autogen' '-I' 'libraries/Cabal/Cabal/.' '-I' '/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/process-1.1.0.2/include' '-I' '/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/directory-1.2.0.1/include' '-I' '/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/unix-2.6.0.1/include' '-I' '/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/time-1.4.0.1/include' '-I' '/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/bytestring-0.10.0.2/include' '-I' '/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/base-4.6.0.1/include' '-I' '/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/include' '-D__GLASGOW_HASKELL__=706' '-Ddarwin_BUILD_OS=1' '-Dx86_64_BUILD_ARCH=1' '-Ddarwin_HOST_OS=1' '-Dx86_64_HOST_ARCH=1' '-U __PIC__' '-D__PIC__' '-include' 'libraries/Cabal/Cabal/dist-boot/build/autogen/cabal_macros.h' '-x' 'c' 'libraries/Cabal/Cabal/Distribution/Version.hs' '-o' '/var/folders/c2/qwhz21hd2fvb1mqvy6s1s_9w0000gp/T/ghc34718_0/ghc34718_64.hscpp'
libraries/Cabal/Cabal/Distribution/Version.hs:237:4:
error: invalid preprocessing directive
#-}
^
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment