ghc --interactive error: "gcc: error: libgmp.so: No such file or directory"
I get this error when I run hello world with ghci
or runghc
:
$ ghc-stage2 --interactive Hello.hs
GHCi, version 8.5.20180117: http://www.haskell.org/ghc/ :? for help
gcc: error: libgmp.so: No such file or directory
gcc: fatal error: no input files
compilation terminated.
`gcc' failed in phase `gcc'. (Exit code: 1)
It works with 8.2.2's runghc
and ghci
so it seems like a regression to me.
This also causes validate failure on my laptop, because at one point validate script runs runghc
.
OS: Xubuntu 16.04.2
libgmp.so
location:
➜ ~ locate libgmp.so
/usr/lib/x86_64-linux-gnu/libgmp.so
/usr/lib/x86_64-linux-gnu/libgmp.so.10
/usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libgmp.so
Trac metadata
Trac field | Value |
---|---|
Version | |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |