[GHC] #9828: genprimopcode: parse error

GHC ghc-devs at haskell.org
Sun Nov 23 07:56:01 UTC 2014


#9828: genprimopcode: parse error
----------------------------+----------------------------------------------
       Reporter:  erikd     |                   Owner:
           Type:  bug       |                  Status:  new
       Priority:  normal    |               Milestone:
      Component:  Compiler  |                 Version:  7.9
       Keywords:            |        Operating System:  Linux
   Architecture:  powerpc   |         Type of failure:  Building GHC failed
     Difficulty:  Unknown   |               Test Case:
     Blocked By:            |                Blocking:
Related Tickets:            |  Differential Revisions:
----------------------------+----------------------------------------------
 Building git HEAD on powerpc-linux I get:

 {{{
 "inplace/bin/genprimopcode" --data-decl  <
 compiler/stage1/build/primops.txt
                > compiler/stage1/build/primop-data-decl.hs-incl
 genprimopcode: parse error at "Parse error at line 42, column 8"
 }}}

 If I look at line 42 of `compiler/stage1/build/primops.txt` I see:

 {{{
 -- SCALAR_TYPE is the scalar type used to inject to/project from
  vector
 }}}

 The word "vector" from the comment got wrapped onto the next line for no
 good reason.

 I've checked the file `compiler/prelude/primops.txt.pp` which is processed
 to generate the file I'm having problems with and that file is fine.

 I've cloned a new copy of the repo and done the usual `perl boot &&
 ./configure && make` only to see exactly the same result.

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


More information about the ghc-tickets mailing list