Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,931
    • Issues 4,931
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 458
    • Merge requests 458
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #11530
Closed
Open
Created Feb 03, 2016 by alexlegg@trac-alexlegg

Make fails on systems with GREP_OPTIONS

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.

Trac metadata
Trac field Value
Version 7.10.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking