On 17 June 2013 20:51, Joachim Breitner <nome...@debian.org> wrote:

> Hi,
>
> Am Montag, den 17.06.2013, 19:23 +0100 schrieb Reuben Thomas:
> > On 14 June 2013 22:14, Joachim Breitner <nome...@debian.org> wrote:
> >         Control: tag -1 + unreproducible
> >
> >         Hi,
> >
> >         I installed Ubuntu raring (in a chroot), and everything is
> >         fine:
> >
> >         (raring)root@kirk:/tmp/twidge# ghc --make Setup.lhs
> >         [1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
> >
> >         Linking Setup ...
> >
> >         I know that this is not very helpful, but something seems to
> >         be strange
> >         in your setup.
> >
> >
> > I found it: I have
> >
> > DEB_BUILD_HARDENING=1
> >
> > in my environment; unsetting it fixes the problem. It seems to me that
> > this should count as a bug, though.
>
> I’m surprised that this affects "ghc --make Setup.lhs", and could not
> reproduce it here:
>
> $ export DEB_BUILD_HARDENING=1
> $ ghc --make Setup.lhs
> [1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
> Linking Setup ...
>
>
Or were you talking about trying to build the twidge Debian package?
>

No:

$ ghc --make -dynamic -o setup Setup.lhs
Linking setup ...
$ export DEB_BUILD_HARDENING=1
$ ghc --make -dynamic -o setup Setup.lhs
Linking setup ...
/usr/bin/ld.bfd.real: Setup.o: relocation R_X86_64_PC32 against undefined
symbol `newCAF' can not be used when making a shared object; recompile with
-fPIC
/usr/bin/ld.bfd.real: final link failed: Bad value
collect2: error: ld returned 1 exit status

However, I have hardening-wrapper installed on my system, which installs
new /usr/bin/gcc etc. to take account of hardening settings, AIUI.

Reply via email to