Your message dated Thu, 06 Oct 2016 06:03:42 +0000
with message-id <[email protected]>
and subject line Bug#712228: fixed in ghc 7.10.3-10
has caused the Debian Bug report #712228,
regarding Hardening flag -pie breaks compilation with GHC
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
712228: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=712228
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ghc
Version: 7.6.2-1ubuntu1
Severity: normal

I want to compile a simple Haskell program:

$ git clone git://github.com/jgoerzen/twidge.git
$ ghc --make -o setup Setup.lhs
[1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
Linking setup ...
/usr/bin/ld.bfd.real: 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

Oops! So, after a bit of searching, I tried:

$ ghc --make -dynamic -o setup Setup.lhs
[1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
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

Oops! More searching leads me to this ancient mailing list message:

http://www.haskell.org/pipermail/glasgow-haskell-users/2004-May/006597.html

but no further clues I can translate into workarounds. I can't find a
README.Debian explaining this problem, but without further evidence,
it doesn't seem to be a GHC bug.

I presume there is a workaround; it would be lovely to know what it is.

(Disclosure: I used to be on the GHC team! A very long time ago,
though. And I mostly worked on the Windows port.)

I am using Ubuntu, but the only change in the Ubuntu packaging is to
disable GHCi on ARM (a change since adopted upstream), so I'm fairly
confident this problem manifests on Debian x86_64 too.

-- System Information:
Debian Release: wheezy/sid
  APT prefers raring-updates
  APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500, 'raring')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8.0-19-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ghc depends on:
ii  gcc         4:4.7.3-1ubuntu10
ii  libbsd-dev  0.4.2-1ubuntu1
ii  libc6       2.17-0ubuntu5
ii  libc6-dev   2.17-0ubuntu5
ii  libffi-dev  3.0.13-2ubuntu1
ii  libffi6     3.0.13-2ubuntu1
ii  libgmp-dev  2:5.0.5+dfsg-2ubuntu3
ii  libgmp10    2:5.0.5+dfsg-2ubuntu3
ii  libtinfo5   5.9-10ubuntu4

ghc recommends no packages.

Versions of packages ghc suggests:
pn  ghc-doc      <none>
pn  ghc-prof     <none>
pn  haskell-doc  <none>
pn  llvm-3.0     <none>
ii  perl         5.14.2-21

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: ghc
Source-Version: 7.10.3-10

We believe that the bug you reported is fixed in the latest version of
ghc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Clint Adams <[email protected]> (supplier of updated ghc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 05 Oct 2016 15:27:23 -0400
Source: ghc
Binary: ghc ghc-prof ghc-doc
Architecture: source
Version: 7.10.3-10
Distribution: unstable
Urgency: medium
Maintainer: Debian Haskell Group 
<[email protected]>
Changed-By: Clint Adams <[email protected]>
Description:
 ghc        - The Glasgow Haskell Compilation system
 ghc-doc    - Documentation for the Glasgow Haskell Compilation system
 ghc-prof   - Profiling libraries for the Glasgow Haskell Compilation system
Closes: 712228
Changes:
 ghc (7.10.3-10) unstable; urgency=medium
 .
   [ Balint Reczey ]
   * Disable PIE to fix build when PIE is the default in gcc
     (change taken/revised from Ubuntu, Closes: #712228)
 .
   [ Clint Adams ]
   * Backport upstream 563a4857abcee4a6e43c68323274309c58f42aa0 to use gcc's
     SMP primitives instead of GHC's broken ones.
   * Backport upstream 7053019e7b04842dd7364039381d8c4c069489a2 to add a
     missing MO_WriteBarrier to emitPrimOp.
Checksums-Sha1:
 5930424fd1f1412df83e2144dba3250f2e3a8ff1 2478 ghc_7.10.3-10.dsc
 471a3df55c7f5ac6be75109d0c29de97842b98e9 11731468 ghc_7.10.3.orig.tar.xz
 534dc35e0bf7190464aff947e9e840576cc6189f 49824 ghc_7.10.3-10.debian.tar.xz
Checksums-Sha256:
 e81b45b0b80cc985b7f12eb0701aab3c73b8074ddfefb5330e55f849f03732c0 2478 
ghc_7.10.3-10.dsc
 cf90cedce1c28fd0e2b9e72fe8a938756668d18ea1fcc884a19f698658ac4fef 11731468 
ghc_7.10.3.orig.tar.xz
 21550f6d3e708a697d4cf69d5305d226bb1e06be476b6ef9318f1346829d43b5 49824 
ghc_7.10.3-10.debian.tar.xz
Files:
 1b6b13511531780d7b6e251829777ba9 2478 haskell extra ghc_7.10.3-10.dsc
 00104e629bfda9f956c23752b5f38613 11731468 haskell extra ghc_7.10.3.orig.tar.xz
 b0355e8c2dd7730966b613a7c6279ad4 49824 haskell extra 
ghc_7.10.3-10.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Comment: Debian!

iQKOBAEBCgB4BQJX9ecHXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ3NTgxRUM4NzQwNTNFNkM4MDc3OTFCOUI1
NTkyMzMxRTE5OUQzOEE4ERxjbGludEBkZWJpYW4ub3JnAAoJEFWSMx4ZnTioCHoP
/3EYJ3TvYD6MGIjWrFk6O2/LYvaEPRBswVU5MVI5uK1zMsX931p/V90YfhK/ySY2
G8kkZ+e8DcsAQC40JuFcSvF7Ea0Yy8VCXU92lmSYzl2qiNcWDErm5DlrKxHCGO0r
3ewuRhY5ftDDHet1+XrU4YWrUPbQ7akwd6m+zCM94j18UO+UDefzRhcnBib2C9or
VFu11FBnBCffI/geuN3jVjZTx7R+LRNsNTkF+D53JBD7wf6SRdDA0Y1W8NuX4fHX
4cxnza0YfZqgdtPEAh0jiouEAXlGXG9FN1qVO0RL/6FyfXV/psdlLL61j9TWRzpT
1Ex5AUfzrqA/kctsg0qnqR6WF93AJXE8z7erJaaDmkJJTQLr7e1Cw0gh7NCTLhKe
aDJuqX509xQNE/F8/eoi6PuQ/qPTBQ1p40Eo0+wP6fc0z96KE2uOTUrOkN9/lx18
RvGE9XFMXuLcMRDAYZhfytuBHEG2RUpaC7lVn6eIG0EHjc9lT9iuM84Xk5H/4D+b
rvWYcwyqN0v8gEgQyACBkO4DIxqc9nyXYV8v/TjLPcLsDrB9oHqLBQYZYpYx9yYZ
gSrt8m0TiYJdAlB3QzuwjMNPQWbJbyyLltICtWAVBReDw08kTEetcCeJfRhEZaqw
60VV3esYArOTT0JwFIN6rdwXJHGvwWrrUEbXYLVstAja
=13AN
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to