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
ghc-tinfo6-nopie-8.2.2 requires changes to its settings file to work on Arch Linux #3648
Comments
Same seems to be true with ghc-tinfo6-nopie-8.0.2 as well. Steps
Result
and
FixAdd |
Just ran into this issue face-first, and I can confirm that it indeed affects both versions of GHC. |
I just (re-)ran into the
This seems to be a slightly different fix — it looks like the default option name is plain wrong (though I don't really know what's going on). |
This problem exist to me too. My env.
Gentoo profile 17.0 is GCC compile with I also solved the problem by adding @magthe PIC flag, but I do not think that writing a compilation flag by hand is a royal road. I do not think this is a problem of Arch alone, I think it is a problem affecting the whole PIE effective system. |
Since environment changed and ghc was installed in another place, I examined it. |
I think this is related to #3521 |
I think this is a duplicate of #3518. Please re-open if you disagree. |
General summary/comments (optional)
Using the pre-built GHC requires changes to build packages on Arch Linux. This seems related to #3488, but not identical.
Steps to reproduce
Use the pre-built
stack
1.6.1 from stackage.network
version 2.6.3.2 or something else using autoconf.CFLAGS=-fno-PIE
to autoconf #3488settings
file again, adding-fPIC
to the "C compiler flags".Expected
A successful build without having to modify files shipped with pre-build GHC.
Actual
The following error:
Based on #3488 I changed
-fno-PIE
to-fno-pie
in.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/lib/ghc-8.2.2/settings
.Attempting another build after that results in the same error.
Now add
-fPIC
to thesettings
file.Attempt another build. Success!
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: