Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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,828
    • Issues 4,828
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 446
    • Merge requests 446
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #17429

Closed
Open
Created Nov 03, 2019 by David Hewson@dten

the impossible pprPanic, called at compiler/cmm/CmmLive.hs:70:8 in ghc:CmmLive

Summary

Whilst upgrading our project to use 8.8.1 to avoid a bug in 8.6.5 I encountered the following. I had everything building with -O0 and then tried to do an -O2 build but received this.

ghc: panic! (the 'impossible' happened)
  (GHC version 8.8.1 for x86_64-unknown-linux):
        LocalReg's live-in to graph
  cxl1 {_svLx::P64, _svLy::P64, _svLz::P64, _svLA::P64, _svLB::P64}
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/utils/Outputable.hs:1159:37 in ghc:Outputable
        pprPanic, called at compiler/cmm/CmmLive.hs:70:8 in ghc:CmmLive

Whilst trying to remove code (there's a lot) to produce something shareable i removed {-# INLINE f #-} from some functions and the error went away.

I do not yet have a small reproduction but am able to try any suggestions

Steps to reproduce

compile my code with -O1 or -O2

Expected behavior

it to build

Environment

  • GHC version used: 8.8.1

Optional:

  • Operating System: ubuntu 18.04
  • System Architecture: x86_64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking