[GHC] #11530: Make fails on systems with GREP_OPTIONS

GHC ghc-devs at haskell.org
Wed Feb 3 04:06:04 UTC 2016


#11530: Make fails on systems with GREP_OPTIONS
----------------------------------------+---------------------------------
           Reporter:  alexlegg          |             Owner:
               Type:  bug               |            Status:  new
           Priority:  normal            |         Milestone:
          Component:  Build System      |           Version:  7.10.3
           Keywords:                    |  Operating System:  POSIX
       Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
          Test Case:                    |        Blocked By:
           Blocking:                    |   Related Tickets:
Differential Rev(s):                    |         Wiki Page:
----------------------------------------+---------------------------------
 In rules/manual-package-config.mk the following use of grep will cause
 later errors if -n (prepending line numbers) is set in GREP_OPTIONS.

 {{{
 grep -v '^#pragma GCC' $$@.raw | \
             sed -e 's/""//g' -e 's/:[   ]*,/: /g' >$$@
 }}}

 It causes parsing issues later, with errors like:

 {{{
 : Warning: Unrecognized field 420 on line 420
 : Warning: Unrecognized field 419 on line 419
 ...
 : Warning: Unrecognized field 1 on line 1
 : missing id field
 : invalid package identifier:
 : invalid package key:
 }}}

 It may be worth adding an `export GREP_OPTIONS=` somewhere in the make
 file as it's reasonably difficult to figure out the actual problem from
 the error message. I would do this and submit a patch but I'm not sure if
 it is desired since GREP_OPTIONS is now deprecated.

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


More information about the ghc-tickets mailing list