[Haskell-cafe] PSA: gcc-6.2.0 breaks linking in ghc 7.10.3/8.0.1

Sergei Trofimovich slyich at gmail.com
Mon Oct 31 20:09:10 UTC 2016


On Mon, 31 Oct 2016 21:39:27 +0200
"Alan & Kim Zimmerman" <alan.zimm at gmail.com> wrote:

> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: Цифровая подпись OpenPGP
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20161031/699a61d8/attachment.sig>


More information about the Haskell-Cafe mailing list