• 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

ghc1 linking1 failing3 Posts 2Views 306
Log in to reply