[GHC] #8493: Can't compile happy + ghc with clang's CPP

GHC ghc-devs at haskell.org
Thu Oct 31 06:14:24 UTC 2013


#8493: Can't compile happy + ghc with clang's CPP
----------------------------------+----------------------------------------
       Reporter:  maxs            |             Owner:
           Type:  bug             |            Status:  new
       Priority:  highest         |         Milestone:  7.8.1
      Component:  libraries       |           Version:  7.7
  (other)                         |  Operating System:  MacOS X
       Keywords:  happy           |   Type of failure:  Building GHC failed
   Architecture:                  |         Test Case:
  Unknown/Multiple                |          Blocking:
     Difficulty:  Unknown         |
     Blocked By:                  |
Related Tickets:                  |
----------------------------------+----------------------------------------
 On OS X MtnLion with Xcode 5:

 Compiling GHC fails early on because the GenericTemate outputted by happy
 is syntactically invalid. It is invalid because of tabs inserted into the
 template that cause the functions to have syntax / indenting errors. I
 attempted to install happy to patch it, but happy will not compile either
 because of the tabs.

 I think clang's CPP is inserting tabs into lines with > 8 spaces of
 indentation.

 Also the comment lines in the template of this form are invalid for clang
 and cause it to fail.

 {{{
 # 5 comment
 }}}

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


More information about the ghc-tickets mailing list