Skip to content

Compiling pandoc with llvm backend fails with panic

I decided to try compiling pandoc with the llvm backend (GHC 7.0.2 32 bit on Mac OSX 10.6). I put -fllvm in Ghc-Options in the cabal file and did a 'cabal install'. It failed eventually with the following message, which I am duly reporting:

[14 of 37] Compiling Text.Pandoc.Readers.LaTeX ( src/Text/Pandoc/Readers/LaTeX.hs, dist/build/pandoc/pandoc-tmp/Text/Pandoc/Readers/LaTeX.o )
SpecConstr
    Function `$w$j{v s62TR} [lid]'
      has two call patterns, but the limit is 1
    Use -fspec-constr-count=n to set the bound
    Use -dppr-debug to see specialisations
SpecConstr
    Function `$w$j{v s62TR} [lid]'
      has two call patterns, but the limit is 1
    Use -fspec-constr-count=n to set the bound
    Use -dppr-debug to see specialisations
[...deleted more in that vein...]
SpecConstr
    Function `$w$j{v s63cF} [lid]'
      has two call patterns, but the limit is 1
    Use -fspec-constr-count=n to set the bound
    Use -dppr-debug to see specialisations
ghc: panic! (the 'impossible' happened)
  (GHC version 7.0.2 for i386-apple-darwin):
	LLvmMangler Cannot read"_c6"as it's not an Int

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Edited by Ian Lynagh -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information