Error when building Stack - ghc panic
OS: Fedora 29
GHC: 8.2.2
Stack: 1.9.3
I cloned the master branch of stack from github, then ran stack build and received the following error. Posting here because of the little message at the bottom.
$ stack setup && stack build
stack will use a sandboxed GHC it installed
For more information on paths, see 'stack path' and 'stack exec env'
To use this GHC and packages outside of a project, consider using:
stack ghc, stack ghci, stack runghc, or stack exec
stack-1.10.0: build (lib + exe)
Log files have been written to: /home/b4d/projects/stack/.stack-work/logs/
-- While building package stack-1.10.0 using:
/home/b4d/projects/stack/.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0 build lib:stack exe:stack --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /home/b4d/projects/stack/.stack-work/logs/stack-1.10.0.log
Preprocessing library for stack-1.10.0..
Building library for stack-1.10.0..
[ 50 of 117] Compiling Stack.StoreTH
ghc: panic! (the 'impossible' happened)
(GHC version 8.2.2 for x86_64-unknown-linux):
Loading temp shared object failed: /tmp/ghc20822_0/libghc_11.so: undefined symbol: stackzm1zi10zi0zmCgFjnTOw8YTK3zzhFHKoMtF_StackziConstants_minTerminalWidth_closure
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug