[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



On Thu, Nov 10, 2016 at 06:06:32AM +1100, Erik de Castro Lopo wrote:
> > > [ 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
> 
> 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.

Why is it only happening with the .p_o ?


Reply to: