You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<no location info>: error:
Warning: Couldn't figure out linker information!
Make sure you're using GNU ld, GNU gold or the built in OS X linker, etc.
collect2: fatal error: cannot find ‘ld’
compilation terminated.
`gcc' failed in phase `Linker'. (Exit code: 1)
What is the preferred workflow these days?
The text was updated successfully, but these errors were encountered:
Btw I think the issue is that in your case you are passing -fuse-ld=lld to your linker, which is probably ld.bfd or ld.gold. But you are meant to pass it to gcc.
I saw the same message and this is what was causing it for me.
Context:
I'm converting a project to cabal, and it has many shell scripts with such invocations:
(https://github.com/ibaryshnikov/iced-hs/blob/5c7ad27deba8fad4f29df7d16d67881c21ca1508/examples/radio/build.sh#L7-L12)
However it's unclear to me how to create a working setup where
lld
is used reliably.## Reproducer
$ git clone https://github.com/haskell-text/text-display $ cd text-display $ git switch use-lld $ cabal build
What is the preferred workflow these days?
The text was updated successfully, but these errors were encountered: