[GHC] #10002: Invalid ghcversion.h file in GHC 7.10.1 RC1
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Using cpphs 1.18.7, I got the following error with GHC 7.10.1 RC1: {{{ $ cat Main.hs {-# LANGUAGE CPP #-} module Main where main :: IO () main = putStrLn "Hello, World!" }}} {{{ $ ghc -pgmP cpphs -optP --cpp Main.hs ... /usr/local/stow/ghc-7.10.1.RC1/lib/ghc-7.10.0.20141222/include/ghcversion.h:12:30: parse error on input ‘\\’ }}} By replacing {{{\\}}} by {{{\}}} in ghcversion.h, the issue is fixed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10002> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by hvr): what was the exact content of the `ghcversion.h` file? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10002#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: hvr Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by hvr): * owner: => hvr * priority: normal => highest -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10002#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: hvr Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Herbert Valerio Riedel <hvr@…>): In [changeset:"1289048eaf31915b9335c6f7e0b7b64625ab0ed5/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="1289048eaf31915b9335c6f7e0b7b64625ab0ed5" Fix bad '... \\' escape in ghcversion.h generation Today I learned about the peculiarities of escaping within single-quotes: Turns out, echo 'foo \\' emits foo \\ rather than escaping the '\'. Curiously, if you need to escape a ' within single-quotes, here's how to do it echo 'foo '\'' bar' which will emit foo ' bar This fixes #10002 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10002#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: hvr Type: bug | Status: merge Priority: highest | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by hvr): * status: new => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10002#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: hvr Type: bug | Status: merge Priority: highest | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by asr): Thanks! -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10002#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: hvr Type: bug | Status: closed Priority: highest | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged into ghc-7.10. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10002#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10002: Invalid ghcversion.h file in GHC 7.10.1 RC1 -------------------------------------+------------------------------------- Reporter: asr | Owner: hvr Type: bug | Status: closed Priority: highest | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by hvr): (merged via 42aad2834e634aee50254e0a67685ef129286d50) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10002#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC