FS#54591 - [ghc] Linker cannot find boot libs
Attached to Project:
Community Packages
Opened by Phil Ruffwind (Rufflewind) - Sunday, 25 June 2017, 23:58 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 26 June 2017, 01:25 GMT
Opened by Phil Ruffwind (Rufflewind) - Sunday, 25 June 2017, 23:58 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 26 June 2017, 01:25 GMT
|
Details
Description: Linker cannot find boot libs (base, ghc-prim,
rts, etc).
Additional info: * ghc-8.0.2-1-x86_64 * reproducible on a fresh Arch container Steps to reproduce: $ echo 'main = pure ()' >test.hs $ /usr/bin/ghc test.hs [1 of 1] Compiling Main ( test.hs, test.o ) Linking test ... /usr/bin/ld: cannot find -lHSbase-4.9.1.0 /usr/bin/ld: cannot find -lHSinteger-gmp-1.0.0.1 /usr/bin/ld: cannot find -lHSghc-prim-0.5.0.0 /usr/bin/ld: cannot find -lHSrts collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) |
This task depends upon
Edit:
Workaround: uncomment and add ghc-options: -dynamic to your ~/.cabal/config file.