Skip to content

ghc-stage2 panic while compiling ghc-paths-0.1.0.5

Compilation of ghc-paths-0.1.0.5 with ghc-6.11.20090816 (darcs checkout) fails:

jsch@lafleur:~/Desktop/ghc-paths-0.1.0.5$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.11.20090816

jsch@lafleur:~/Desktop/ghc-paths-0.1.0.5$ cabal --version
cabal-install version 0.6.2
using version 1.6.0.3 of the Cabal library

jsch@lafleur:~/Desktop/ghc-paths-0.1.0.5$ cabal configure --user
Resolving dependencies...
Configuring ghc-paths-0.1.0.5...

jsch@lafleur:~/Desktop/ghc-paths-0.1.0.5$ cabal build
Preprocessing library ghc-paths-0.1.0.5...
Building ghc-paths-0.1.0.5...
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 6.11.20090816 for i386-unknown-linux):
        Prelude.chr: bad argument: (-939524096)

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

To compile ghc-paths-0.1.0.5 I replaced the Cabal library first (Setup.hs fails with 1.7.3):

jsch@lafleur:~/Desktop/ghc-paths-0.1.0.5$ ghc-pkg list
/home/jsch/stow/ghc-darcs/lib/ghc-6.11.20090816/package.conf:
    (Cabal-1.7.3), array-0.2.0.1, base-3.0.3.0, base-4.1.0.0,
    bytestring-0.9.1.4, containers-0.2.0.1, directory-1.0.0.2,
    (dph-base-0.4.0), (dph-par-0.4.0), (dph-prim-interface-0.4.0),
    (dph-prim-par-0.4.0), (dph-prim-seq-0.4.0), (dph-seq-0.4.0),
    extensible-exceptions-0.1.1.0, ffi-1.0, filepath-1.1.0.1,
    ghc-6.11.20090816, ghc-prim-0.1.0.0, haskeline-0.6.2,
    haskell98-1.0.1.0, hpc-0.5.0.2, integer-gmp-0.1.0.0, mtl-1.1.0.2,
    old-locale-1.0.0.1, old-time-1.0.0.1, pretty-1.0.1.0,
    process-1.0.1.1, random-1.0.0.1, rts-1.0, syb-0.1.0.0,
    template-haskell-2.4.0.0, terminfo-0.3.1, time-1.1.4, unix-2.3.1.0,
    utf8-string-0.3.4
/home/jsch/.ghc/i386-linux-6.11.20090816/package.conf:
    Cabal-1.6.0.2

I have since updated my checkout (to 20090817) and will update this ticket as soon as I know if the problem persists.

Trac metadata
Trac field Value
Version 6.11
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