• 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-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)
    
    
  • 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 248
Log in to reply