Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 3,615
    • Issues 3,615
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 198
    • Merge Requests 198
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #10002

Closed
Open
Opened Jan 18, 2015 by Andrés Sicard-Ramírez@asr
  • Report abuse
  • New issue
Report abuse New issue

Invalid ghcversion.h file in GHC 7.10.1 RC1

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.

Trac metadata
Trac field Value
Version 7.10.1-rc1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture

Related issues

  • Discussion
  • Designs
Assignee
Assign to
7.10.1
Milestone
7.10.1
Assign milestone
Time tracking
None
Due date
None
3
Labels
bug P::highest Trac import
Assign labels
  • View project labels
Reference: ghc/ghc#10002