Arch & Haskell

Arch & Haskell


I'm facing huge problems with my Haskell installation on Arch. For some reason I got into dependency hell. So I decided to start over completely. I removed all Haskell packages (haskell-*) on my system. I removed stack and I removed cabal-install. Then I installed cabal-install (including its dependecies of course with pacman) and removed ~/.ghc, ~/.cabal and ~/.stack. So thinking of being completely fresh I tried to build stack from there. But even that fails with linker errors. For instance I get:

Linking dist/build/hspec-discover/hspec-discover ... /usr/bin/ld: cannot find -lHSdirectory- /usr/bin/ld: cannot find -lHSunix- /usr/bin/ld: cannot find -lHSbytestring- /usr/bin/ld: cannot find -lHStime- /usr/bin/ld: cannot find -lHSdeepseq- /usr/bin/ld: cannot find -lHSarray- /usr/bin/ld: cannot find -lHSfilepath- /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) 

What is going wrong? What am I doing wrong? Has anyone had the same problems, or has ideas. I tried fixing it all day yesterday. I tried installing stack only, and building from there. I tried using stack-static from AUR, I tried using cabal-install-git from AUR. And so on. I really got no clue what I can do anymore.

When I install Haskell tools e.g. stack via pacman I already get a lot of warnings in the 'Registering Haskell modules' section for various packages:

... hackage-security- dependency "network-" doesn't exist (ignoring) ... 

Why is that, after I removed all haskell tools? Can anyone give me a hint how to fix this?

Submitted July 16, 2017 at 04:33PM by schnecki004
via reddit


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s