Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghc: panic! when stack build. #715

Open
neumann21 opened this issue Mar 21, 2023 · 0 comments
Open

ghc: panic! when stack build. #715

neumann21 opened this issue Mar 21, 2023 · 0 comments

Comments

@neumann21
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant