Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 3,615
    • Issues 3,615
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 198
    • Merge Requests 198
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #14063

Closed
Open
Opened Jul 30, 2017 by rcook@trac-rcook
  • Report abuse
  • New issue
Report abuse New issue

Compiling with --backpack with undefined dependency results in "the 'impossible' happened"

Using GHC 8.2.1:

> ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.1

And compiling with --backpack as follows:

> ghc --backpack foo.bkp
[1 of 4] Processing foo-indef
  [1 of 2] Compiling Str[sig]         ( foo-indef\Str.hsig, nothing )
  [2 of 2] Compiling Foo              ( foo-indef\Foo.hs, nothing )
[2 of 4] Processing foo-string
  Instantiating foo-string
  [1 of 1] Compiling Str              ( foo-string\Str.hs, foo-string\Str.o )
[3 of 4] Processing foo-int
  Instantiating foo-int
  [1 of 1] Compiling Str              ( foo-int\Str.hs, foo-int\Str.o )
[4 of 4] Processing main
ghc.EXE: panic! (the 'impossible' happened)
  (GHC version 8.2.1 for x86_64-unknown-mingw32):
        no package name
CallStack (from HasCallStack):
  error, called at compiler\backpack\DriverBkp.hs:573:32 in ghc:DriverBkp

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

make: *** [foo-indef/Foo.hi] Error 1

See attached foo.bkp file. While the Backpack file is invalid, in that the main unit mentions the foo dependency, which does not exist, this shouldn't lead to a GHC panic.

Trac metadata
Trac field Value
Version 8.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture

Related issues

  • Discussion
  • Designs
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
5
Labels
backpack bug compiler crash P::normal Trac import
Assign labels
  • View project labels
Reference: ghc/ghc#14063