facebook/duckling

ghc: panic! when stack build.

Opened this issue · 0 comments

When I run stack build, it shows:

Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
Installed GHC.
Trouble loading CompilerPaths cache: CompilerFileMetadataMismatch
ghc: panic! (the 'impossible' happened)
(GHC version 8.8.4 for x86_64-unknown-linux):
Prelude.chr: bad argument: 2634022915

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

Error: [S-6374]
While building simple Setup.hs (scroll up to its section to see the error) using:
/home/niuboyuan/.stack/programs/x86_64-linux/ghc-tinfo6-8.8.4/bin/ghc-8.8.4 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-3.0.1.0 /home/niuboyuan/.stack/setup-exe-src/setup-SvXsv1f_.hs /home/niuboyuan/.stack/setup-exe-src/setup-shim-SvXsv1f_.hs -o /home/niuboyuan/.stack/setup-exe-cache/x86_64-linux-tinfo6/tmp-Cabal-simple_SvXsv1f__3.0.1.0_ghc-8.8.4
Process exited with code: ExitFailure 1

I found this issue is due to ghc 8.8.4, and ghc 9.0.2 fix this issue, but how can I change ghc version when I run stack build?