New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link errors on Fedora 23 #257
Comments
The problem is with Cabal's call to hsc2hs. Cabal tells hsc2hs to link to libR.so (even though it's not technically needed here). But linking with a dynamic library in general requires PIC. Yet Cabal doesn't tell hsc2hs to -fPIC. So the link fails. A workaround is to set Likely this is an upstream bug in Cabal. But we could add the above workarounds to the mainline code, provided it doesn't break anything on other platforms. |
Note that the So one option is to simply tell Fedora users to use --nix. They get a predictable linker version and a predictable GCC version. And we know that those versions used by --nix aren't plagued by the above issues. |
Some additional notes on how to reproduce:
|
hub as in https://hub.github.com/.
|
I'll close this is a wontfix. This is an upstream issue, likely in Cabal though possibly in hsc2hs. Cabal should be passing |
Meanwhile, I've added a FAQ entry pointing to workarounds. |
[Originally reported by @djsamperi on ghc-dev@.]
On Fedora 23 one gets strange link errors, even when using ld.gold:
The text was updated successfully, but these errors were encountered: