
#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 bgamari): So I spent quite a while today working through building a tree with the new compiler. It turns out there are a number of build system issues which get in the way of this which I've fixed in Phab:D2672, Phab:D2673, and Phab:D2674. With these patches you can simply configure with, {{{ $ ./configure \ CONF_GCC_LINKER_OPTS_STAGE0=-no-pie \ CONF_LD_LINKER_OPTS_STAGE0=-no-pie \ CONF_HC_OPTS_STAGE0=-optl=-no-pie }}} and build as usual. It's not entirely clear here why the Haskell compiler options shouldn't just include `CONF_LD_LINKER_OPTS_*` with the appropriate prefix but I didn't want to change that today so instead I just passed `CONF_HC_OPTS_STAGE0` explicitly. Note that it is only necessary to pass `-no-pie` to the stage0 link; the later stages should build with `-fPIC` as this is the new compiler's default. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12759#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler