Skip to content

the 'impossible' happened during building PureScript for profiling

Repro steps:

  • git clone https://github.com/purescript/purescript
  • cd purescript
  • git checkout v0.11.2
  • stack build --profile

The error was:

[ 23 of 145] Compiling Language.PureScript.Constants ( src/Language/PureScript/Constants.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Language/PureScript/Constants.p_o )
ghc: panic! (the 'impossible' happened)
  (GHC version 8.0.2 for x86_64-unknown-linux):
        kindPrimRep.go rep_sfuE

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


--  While building package purescript-0.11.2 using:
      /home/harry/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0 build lib:purescript exe:purs --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1

Sorry that this is pretty much the complete opposite of a minimal reproducing example, but I have no clue how to go about isolating the part that's actually causing the problem.

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