• ghc linking failing

    Anyone else having issues at the moment when trying to compile with haskell’s ghc?

    [[email protected] Haskell]$ sudo ghc --make test
    [1 of 1] Compiling Main             ( test.hs, test.o )
    Linking test ...
    /usr/bin/ld: cannot find -lHSbase-
    /usr/bin/ld: cannot find -lHSinteger-gmp-
    /usr/bin/ld: cannot find -lHSghc-prim-
    /usr/bin/ld: cannot find -lHSrts
    collect2: error: ld returned 1 exit status
    `gcc' failed in phase `Linker'. (Exit code: 1)
  • Just in case this is a topic for anyone else, here is the solution that worked for me;

    sudo pacman -S ghc-static

    As per the Arch wiki

failing4 ghc1 linking1 Posts 2Views 357
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.