valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 115 forks source link

can't load .so/.DLL for: libHSinteger-gmp-0.5.0.0 #414

Open roper79 opened 6 years ago

roper79 commented 6 years ago
hastec Main.hs -o ../dist/main.js -Wall -fno-warn-missing-signatures --debug
|| hastec: <command line>: can't load .so/.DLL for: libHSinteger-gmp-0.5.0.0-7De04errl6qF6aE1LQQO7V.so (libHSinteger-gmp-0.5.0.0-7De04errl6qF6aE1LQQO7V.so: cannot open shared object file: No such file or directory)

https://github.com/valderman/haste-compiler/commit/ab0f6c1bbb93e9919205c804817e99e1455aa325 built using Stack

Is this enough, or should I dig deeper?

valderman commented 6 years ago

Does the problem persist if you use the official binaries, or when building with the portable and static flags on?

roper79 commented 6 years ago

The official Linux binary has the problem. Now trying to compile with stack install --ghc-options='-optl-static' (excuse my incompetence, have not found how to switch the portable flag on) and I got stuck in the linking process: Linking .stack-work/dist/x86_64-linux-nopie/Cabal-1.22.5.0/build/haste-boot/haste-boot ... /usr/bin/ld: cannot find -lbz2
Any hint? (libbz2 is present in the system) Thanks!