[Pkg-haskell-maintainers] Bug#712228: Bug#712228: ghc: Hard to use for compilation: linking failures with no apparent solution

Reuben Thomas rrt at sc3d.org
Mon Jun 17 20:00:28 UTC 2013


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

> Hi,
>
> Am Montag, den 17.06.2013, 19:23 +0100 schrieb Reuben Thomas:
> > On 14 June 2013 22:14, Joachim Breitner <nomeata at debian.org> wrote:
> >         Control: tag -1 + unreproducible
> >
> >         Hi,
> >
> >         I installed Ubuntu raring (in a chroot), and everything is
> >         fine:
> >
> >         (raring)root at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20130617/80a1631f/attachment.html>


More information about the Pkg-haskell-maintainers mailing list