PSA: gcc-6.2.0 breaks linking in ghc 7.10.3/8.0.1

On my Debian testing machine, after gcc updated to gcc (Debian 6.2.0-9) 6.2.0 20161019 I started getting linker errors complaining about -fPIC Herbert Valerio Riedel pointed out on #hackage that the settings file has to be updated to cope with this. So, the files /opt/ghc/7.10.3/lib/ghc-7.10.3/settings /opt/ghc/8.0.1/lib/ghc-8.0.1/settings need to be updated to have the following values set ("C compiler flags", "-fno-PIE -fno-stack-protector"), ("C compiler link flags", "-no-pie"), ("ld flags", "-no-pie"), The precise location of these files may differ on your machine. Alan

On Mon, 31 Oct 2016 21:39:27 +0200
"Alan & Kim Zimmerman"
On my Debian testing machine, after gcc updated to
gcc (Debian 6.2.0-9) 6.2.0 20161019
I started getting linker errors complaining about -fPIC
Herbert Valerio Riedel pointed out on #hackage that the settings file has to be updated to cope with this.
So, the files
/opt/ghc/7.10.3/lib/ghc-7.10.3/settings /opt/ghc/8.0.1/lib/ghc-8.0.1/settings
need to be updated to have the following values set
("C compiler flags", "-fno-PIE -fno-stack-protector"), ("C compiler link flags", "-no-pie"), ("ld flags", "-no-pie"),
The precise location of these files may differ on your machine.
Alan
The bug is a https://ghc.haskell.org/trac/ghc/ticket/11834 That should be not any gcc-6.2.0 but one built with --enable-default-pie -- Sergei
participants (2)
-
Alan & Kim Zimmerman
-
Sergei Trofimovich