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,866
    • Issues 4,866
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 461
    • Merge requests 461
  • 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
  • #17185
Closed
Open
Created 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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking