facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
Other
4.06k stars 723 forks source link

ghc: panic! when stack build. #715

Open neumann21 opened 1 year ago

neumann21 commented 1 year ago

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/x8664-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?