[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#843791: ghc: builds fail on hurd-i386: /usr/bin/ld: -r and -pie may not be used together



Clint Adams 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.

Its related the the ghc 6.2.0 PIC/PIW thing. With GHC configured as:

    ./configure \
        CONF_CC_OPTS_STAGE2=-fno-PIE \
        CONF_GCC_LINKER_OPTS_STAGE2=-no-pie \
        CONF_LD_LINKER_OPTS_STAGE2=-no-pie \
        CONF_CC_OPTS_STAGE0=-no-pie \
        CONF_GCC_LINKER_OPTS_STAGE0=-no-pie \
        CONF_LD_LINKER_OPTS_STAGE0=-no-pie \
        CONF_HC_OPTS_STAGE0=-optl=-no-pie

and cabal-install version 1.24.0.1 this problem disappears.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


Reply to: