• 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

failing6 linking1 ghc1 Posts 2Views 433
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.