[GHC] #13805: GHC 8.0.2 fails to build on macOS 10.13/Xcode 9 - preprocessor error in ghc-pkg

GHC ghc-devs at haskell.org
Fri Jun 9 00:12:44 UTC 2017


#13805: GHC 8.0.2 fails to build on macOS 10.13/Xcode 9 - preprocessor error in
ghc-pkg
-------------------------------------+-------------------------------------
           Reporter:  mistydemeo     |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  ghc-pkg        |           Version:  8.0.2
           Keywords:                 |  Operating System:  MacOS X
       Architecture:  x86_64         |   Type of failure:  Building GHC
  (amd64)                            |  failed
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Building GHC 8.0.2 on macOS 10.13 fails with the following error when
 building

 {{{
 utils/ghc-pkg/Main.hs:1269:40: error:
      error: editor placeholder in source file
                then termText (location db) <#> termText "\n    (no
 packages)\n"
                                            ^
 }}}

 I'm not very familiar with Haskell, but it looks to me like the C
 preprocessor is mistaking `<#>` for an invalid cpp directive instead of
 Haskell syntax.

 This is using the Xcode 9 beta (and its associated CLT), which ships
 "Apple LLVM version 9.0.0 (clang-900.0.22.8)". The same version should be
 available in the Xcode 9 beta for 10.12, but I haven't tested.

 The full build logs are available here:
 https://gist.github.com/anonymous/dc5f0c9d087f5d299f71393805c5d611

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13805>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list