#3862: ghc crash while building hledger with cabal
---------------------------------+------------------------------------------
Reporter: simonmic | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.4 | Keywords:
Os: MacOS X | Testcase:
Architecture: Unknown/Multiple | Failure: Compile-time crash
---------------------------------+------------------------------------------
{{{
$ cabal install -fweb -fvty -fchart --constraint 'template-haskell < 2.4'
Resolving dependencies...
Configuring hledger-0.8...
Preprocessing library hledger-0.8...
Preprocessing executables for hledger-0.8...
Building hledger-0.8...
ar: creating archive dist/build/libHShledger-0.8.a
[29 of 32] Compiling Commands.Convert ( Commands/Convert.hs,
dist/build/hledger/hledger-tmp/Commands/Convert.o )
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.4 for i386-apple-darwin):
applyTypeToArgs
parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.a32{v rwo} [gid]
@ csv-0.1.1:Text.CSV.CSV{tc r2Ve}
(csv-0.1.1:Text.CSV.a22{v r2Va} [gid]
`cast` (ghc-prim:GHC.Prim.sym{(w) tc 34v}
((parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.:CoGenParser{tc rhR})
ghc-prim:GHC.Types.Char{(w) tc 3o}
ghc-prim:GHC.Unit.(){(w) tc 40}
csv-0.1.1:Text.CSV.CSV{tc r2Ve})
::
<pred>parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.State{tc rhV}
ghc-prim:GHC.Types.Char{(w) tc 3o} ghc-
prim:GHC.Unit.(){(w) tc 40}
->
parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.Consumed{tc rit}
(parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.Reply{tc ris}
ghc-prim:GHC.Types.Char{(w) tc 3o}
ghc-prim:GHC.Unit.(){(w) tc 40}
csv-0.1.1:Text.CSV.CSV{tc r2Ve})
~
parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.GenParser{tc rhk}
ghc-prim:GHC.Types.Char{(w) tc 3o}
ghc-prim:GHC.Unit.(){(w) tc 40}
csv-0.1.1:Text.CSV.CSV{tc r2Ve}))
csvfile{v s3Vz} [lid]
forall st{tv i3Im} [tv] a{tv i3In} [tv].
parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.GenParser{tc rhk}
csv-0.1.1:Text.CSV.CSV{tc r2Ve} st{tv i3Im} [tv] a{tv i3In} [tv]
-> [base:GHC.Base.String{tc 36u}]
-> parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.State{tc rhV}
csv-0.1.1:Text.CSV.CSV{tc r2Ve} st{tv i3Im} [tv]
-> parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.Consumed{tc rit}
(parsec-2.1.0.1:Text.ParserCombinators.Parsec.Prim.Reply{tc ris}
csv-0.1.1:Text.CSV.CSV{tc r2Ve} st{tv i3Im} [tv] a{tv i3In}
[tv])
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
Seen for the first time today. Does not happen when using ghc --make.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3862>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs