Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,262
    • Issues 4,262
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 403
    • Merge Requests 403
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #17185

Closed
Open
Opened Sep 12, 2019 by Ryan Scott@RyanGlScottMaintainer

8.8.1 regression: Combining -prof and -optP-traditional breaks

(Originally reported here.)

Here's a module:

module Main where

main :: IO ()
main = return ()

On GHC 8.6.5, compiling this with both -prof and -optP-traditional works just fine:

$ /opt/ghc/8.6.5/bin/ghc Main.hs -prof -optP-traditional
[1 of 1] Compiling Main             ( Main.hs, Main.o )
Linking Main ...

But on GHC 8.8.1, it errors:

$ /opt/ghc/8.8.1/bin/ghc Main.hs -prof -optP-traditional
Loaded package environment from /home/rgscott/.ghc/x86_64-linux-8.8.1/environments/default
[1 of 1] Compiling Main             ( Main.hs, Main.o )
cc1: error: command line option ‘-traditional’ is valid for the driver but not for C
`gcc' failed in phase `C Compiler'. (Exit code: 1)

This prevents the lens-4.18 library from being built in profiled mode on 8.8.1.

Assignee
Assign to
9.0.1
Milestone
9.0.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#17185