Skip to content

GHC 7.2.1-rc1 panics on `cgLookupPanic`

Grabbed the ghc-7.2.0.20110728-x86_64-unknown-linux.tar.bz2 release, and as a first thing after install I tried to cabal install text, which paniced with the following output

...
Registering deepseq-1.1.0.2...
Configuring text-0.11.1.5...
Preprocessing library text-0.11.1.5...
Building text-0.11.1.5...
[ 1 of 38] Compiling Data.Text.Encoding.Utf32 ( Data/Text/Encoding/Utf32.hs, dist/build/Data/Text/Encoding/Utf32.o )
...
[23 of 38] Compiling Data.Text.Foreign ( Data/Text/Foreign.hs, dist/build/Data/Text/Foreign.o )

Data/Text/Foreign.hs:36:26:
    Warning: In the use of `unsafeIOToST'
             (imported from Control.Monad.ST):
             Deprecated: "Please import from Control.Monad.ST.Unsafe instead; This will be removed in the next release"
[24 of 38] Compiling Data.Text        ( Data/Text.hs, dist/build/Data/Text.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 7.2.0.20110728 for x86_64-unknown-linux):
	cgLookupPanic (probably invalid Core; try -dcore-lint)
    $w$j{v s1HTU} [lid]
    static binds for:
    local binds for:

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

cabal: Error: some packages failed to install:
text-0.11.1.5 failed during the building phase. The exception was:
ExitFailure 1
Trac metadata
Trac field Value
Version 7.1
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