Skip to content

ghc-stage2: internal error: invalid closure

GHC head from git (commit 488e21c8).

Stage 1 of compile completes but first compile command of second stage fails with:

"inplace/bin/ghc-stage2"   -H64m -O0 -fasm     -i -iutils/ghctags/. -iutils/ghctags/dist-install/build -iutils/ghctags/dist-install/build/autogen -Iutils/ghctags/dist-install/build -Iutils/ghctags/dist-install/build/autogen        -package ghc -no-user-package-conf -rtsopts     -odir utils/ghctags/dist-install/build -hidir utils/ghctags/dist-install/build -stubdir utils/ghctags/dist-install/build -hisuf hi -osuf  o -hcsuf hc -c utils/ghctags/./Main.hs -o utils/ghctags/dist-install/build/Main.o
ghc-stage2: internal error: invalid closure, info=(nil)
    (GHC version 7.3.20110923 for powerpc_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

This was working 10 days ago (commit 493146ac). If needed, I can bisect to find the exact commit which broke it.

Trac metadata
Trac field Value
Version 7.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
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