Re: Bug#843791: ghc: builds fail on hurd-i386: /usr/bin/ld: -r and -pie may not be used together
Clint Adams, on Wed 09 Nov 2016 17:08:23 +0000, wrote:
> On Wed, Nov 09, 2016 at 05:47:13PM +0100, Samuel Thibault wrote:
> > It seems the latest ghc has troubles building packages on hurd-i386:
> > [ 1 of 18] Compiling Data.Streaming.Zlib.Lowlevel ( Data/Streaming/Zlib/Lowlevel.hs, dist-ghc/build/Data/Streaming/Zlib/Lowlevel.o )
> > ...
> > [18 of 18] Compiling Data.Streaming.Text ( Data/Streaming/Text.hs, dist-ghc/build/Data/Streaming/Text.o )
> > [ 1 of 18] Compiling Data.Streaming.Zlib.Lowlevel ( Data/Streaming/Zlib/Lowlevel.hs, dist-ghc/build/Data/Streaming/Zlib/Lowlevel.p_o )
> > /usr/bin/ld: -r and -pie may not be used together
> That's confusing.
This seems to be triggered by the newer dpkg, which apparently emits
-pie itself on hurd-i386: on my not-so-up-to-date box I hadn't the
issue, and after upgrading dpkg&dpkg-dev I got the issue on my box too.
dpkg maintainers: ghc does emi -no-pie, but it seems dpkg's -pie
I'm however surprised that dpkg adds -pie on hurd-i386 too: AIUI hurd's
gcc does have pie enabled by default too.