Your message dated Thu, 20 Oct 2016 18:21:58 +0000
with message-id <[email protected]>
and subject line Bug#712228: fixed in ghc 8.0.1-4
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: 8.0.1-4
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.
Sven Bartscher <[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: Thu, 13 Oct 2016 18:49:00 +0200
Source: ghc
Binary: ghc ghc-prof ghc-doc
Architecture: source
Version: 8.0.1-4
Distribution: experimental
Urgency: medium
Maintainer: Debian Haskell Group
<[email protected]>
Changed-By: Sven Bartscher <[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 (8.0.1-4) experimental; urgency=medium
.
[ Balint Reczey ]
* Disable PIE to fix build when PIE is the default in gcc
(change taken/revised from Ubuntu, Closes: #712228)
Checksums-Sha1:
2c87c16133a58b456d7b5d461cd8e301737c179f 2461 ghc_8.0.1-4.dsc
585a2d34a17ce2452273147f2e3cef1a2efe1aa5 10645912 ghc_8.0.1.orig.tar.xz
8e683eb3daabb694c1d7c2e6df47152b26ce461d 46916 ghc_8.0.1-4.debian.tar.xz
Checksums-Sha256:
938787fedc11a9de3233d9f3673ea60c7c047794e98fd14cbb379b27dc5cf7c2 2461
ghc_8.0.1-4.dsc
90fb20cd8712e3c0fbeb2eac8dab6894404c21569746655b9b12ca9684c7d1d2 10645912
ghc_8.0.1.orig.tar.xz
3f4a3ea506c0e4c350a339a88d57ea68dc3d2d4baf1f88599c9f49e4334cf0fe 46916
ghc_8.0.1-4.debian.tar.xz
Files:
a799b5fe1deeeb9cf659548522a458e8 2461 haskell extra ghc_8.0.1-4.dsc
c185b8a1f3e67e43533ec590b751c2ff 10645912 haskell extra ghc_8.0.1.orig.tar.xz
41aaa31f79f1265e010bf03d27eb035e 46916 haskell extra ghc_8.0.1-4.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Comment: Debian!
iQJ8BAEBCgBmBQJYCQe6XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ3NTgxRUM4NzQwNTNFNkM4MDc3OTFCOUI1
NTkyMzMxRTE5OUQzOEE4AAoJEFWSMx4ZnTioae8QAIncgqRmMDjRmSMzu/yX6aQy
HJuowQYDbJShodcZ/E0X9zedhE1Bq45bBR4T2ZeEybz0tIZaK8Vhvafd27rnuBvO
Il046yb8nhhHgdLJ/9KwTOzXTxBjku45q2a7EW/pyjHFMNYM8xxaq0IEyh7V3WDy
RzZMyGWq5InNilGyIfhTPw5REx1c3eiHSawuzOBjhD/jFHQisabKfiUqi1ImUXAk
2kL8JfrLCGG/NRYKP4G/INIY2c+sN64uc0FUtDgSHQ+r1x9AmjjrGIUo5psJ3VkC
sCq/OpK5Xm1QW32wp1jsoMO1bPSIsWMwAs0DrWyUB72/UGv38cMr0dX+w0kGorGX
wxkw1zq4+g6YL/lTiK6TvrjlhwXYIJfJpmRPwvuEHLdMDtotb6X49DfymIx+G0Up
jC5HawrS+aDeVgn+pnQzyk0ev5DRTBvElmphCs2xDdy+PFas67UTFLJhjgIIglGs
Ry7lYyG/iF5sbcFlCFE1USUaj0tzYYTvVUaxhKAI4zlaxB/S0zeFQw+3WhG4uJua
rzsclmlKW7Ml5oS+HHyqIu1bf/GAmYsh1FQDCEtUaePVw5rnVHJfGo0QEuBTuFnD
1drnFEa+6IwCesZ+TK4rXT9ZpadjwoezrzhKQxrXAlH3Z0RvBTgWr4kUQrbHmzUE
mdMgAPez45ITVMxQcNOV
=wYDG
-----END PGP SIGNATURE-----
--- End Message ---