Subject: bug#42480: cabal-install/GHC fails to find libraries

From: John Soo <[email-masked]>
Date: Wed, 22 Jul 2020 11:45:06 -0700

Hi Guix,

I have a haskell project until recently compiled with the following:

env -u GHC_PACKAGE_PATH cabal new-build

Now it fails with the following:

ld: cannot find -lm
ld: cannot find -lpthread
ld: cannot find -lz
ld: cannot find -lrt
ld: cannot find -lutil
ld: cannot find -ldl
ld: cannot find -lpthread
ld: cannot find -lm
ld: cannot find -lrt
ld: cannot find -ldl
ld: cannot find -lpthread
ld: cannot find -lpthread
ld: cannot find -lpthread
ld: cannot find -lc

Could a graft be failing to update references to various libraries?

I really don't know what could be going on.

Thanks!

John