[GHC] #12755: Build from source fails on Ubuntu 16.10: ld: -r and -pie may not be used together
GHC
ghc-devs at haskell.org
Sun Oct 23 08:49:40 UTC 2016
#12755: Build from source fails on Ubuntu 16.10: ld: -r and -pie may not be used
together
-------------------------------------+-------------------------------------
Reporter: SamuelMarks | Owner:
Type: bug | Status: new
Priority: high | Milestone:
Component: Build System | Version: 8.0.1
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Building GHC | (amd64)
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by hvr):
This is a known issue and there should be already related tickets filed
about this in the GHC wiki.
Also, in https://launchpad.net/~hvr/+archive/ubuntu/ghc I addressed this
problem by simply calling `configure` a bit differently to make it work
which basically comes down to
{{{
CONF_CC_OPTS_STAGE2=-fno-PIE \
CONF_GCC_LINKER_OPTS_STAGE2=-no-pie \
CONF_LD_LINKER_OPTS_STAGE2=-no-pie \
./configure
}}}
Did somebody come up with a reliable autoconf test already to detect
whether `gcc` has `-no-pie` on by default? IIRC you can't rely on CPP for
this and you really have to perform a compile and analyse the result,
which is the main reason we haven't implemented it yet...
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12755#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list