[GHC] #12759: Latest Debian GCC breaks GHC
GHC
ghc-devs at haskell.org
Fri Nov 11 18:17:22 UTC 2016
#12759: Latest Debian GCC breaks GHC
-----------------------------+----------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.2
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Linux | Architecture: Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-----------------------------+----------------------------------------
Comment (by Ben Gamari <ben@…>):
In [changeset:"d421a7e22e0be3de32376970b8c38ec308f959da/ghc"
d421a7e2/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="d421a7e22e0be3de32376970b8c38ec308f959da"
Pass -no-pie to GCC
Certain distributions (e.g. Debian and Ubuntu) have enabled PIE be
default in their GCC packaging. This breaks our abuse of GCC as a linker
which requires that we pass -Wl,-r, which is incompatible with
PIE (since the former implies that we are generating a relocatable
object file and the latter an executable).
This is a second attempt at D2691. This attempt constrasts with D2691 in
that
it preserves the "does gcc support -no-pie" flag in settings, allowing
this to
be reconfigured by `configure` during installation of a binary
distribution.
Thanks for @rwbarton for drawing attention to this issue.
Test Plan: Validate
Reviewers: austin, hvr, erikd
Reviewed By: erikd
Subscribers: thomie, rwbarton, erikd
Differential Revision: https://phabricator.haskell.org/D2693
GHC Trac Issues: #12759
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12759#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list