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

Joachim Breitner nomeata at debian.org
Mon Jun 17 20:11:59 UTC 2013


Control: tags 712228 - unreproducible + confirmed
Control: retitle 712228 Hardening flag -pie breaks compilation with GHC

Hi,

Am Montag, den 17.06.2013, 21:00 +0100 schrieb Reuben Thomas:

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

ok, that is important information. With that I was able to narrow it
down to the "-pie":

$ rm Setup.o; ghc --make Setup.lhs  
[1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
Linking Setup ...
$ rm Setup.o; ghc --make Setup.lhs  -optl -pie 
[1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
Linking Setup ...
/usr/bin/ld: Setup.o: relocation R_X86_64_32S against `stg_CAF_BLACKHOLE_info' can not be used when making a shared object; recompile with -fPIC
Setup.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

Now someone who knows these flags should investigate if and how this can
be fixed.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20130617/771b1c1c/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list