
#13771: ghc fails to build on openSUSE
---------------------------------+--------------------------------------
Reporter: msuchanek | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.2
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
---------------------------------+--------------------------------------
Comment (by msuchanek):
ok, so as I understand the issue distributions are moving towards
compiling with -fPIE -pie or whatever is the current flag for whatever
reason. It seems on SUSE these flags are added to rpm flags on the build
service meaning system binaries are built with them but locally compiled
binaries are not.
Adding these flags requires that object files must be built with -fPIC and
gcc complains if it is not the case and refuses to link binaries.
== Issue: gcc started using PIE on system with ghc installed
==== simulation:
{{{
# mv /usr/bin/gcc /usr/bin/gcc.real
cat > /usr/bin/gcc <