[GHC] #8156: amd64 + in-tree gmp build broken
GHC
ghc-devs at haskell.org
Mon Jan 23 02:41:51 UTC 2017
#8156: amd64 + in-tree gmp build broken
-------------------------------------+-------------------------------------
Reporter: errge | Owner:
Type: bug | Status: closed
Priority: low | Milestone:
Component: Build System | Version: 7.7
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture: x86_64
Type of failure: Building GHC | (amd64)
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: #4022 #4366 | Differential Rev(s):
#4374 |
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by rwbarton):
* status: infoneeded => closed
* resolution: => fixed
Comment:
This was fixed by the new integer-gmp library in 7.10, which applies the
following patch (part of `libraries/integer-gmp/gmp/gmpsrc.patch`) to
build GMP with `-fPIC` unconditionally:
{{{#!diff
--- gmp-5.0.3/configure 2012-02-03 16:52:49.000000000 +0100
+++ gmpbuild/configure 2014-11-07 23:46:33.629758238 +0100
@@ -3937,8 +3937,8 @@
#
cclist="gcc cc"
-gcc_cflags="-O2 -pedantic"
-gcc_64_cflags="-O2 -pedantic"
+gcc_cflags="-O2 -pedantic -fPIC"
+gcc_64_cflags="-O2 -pedantic -fPIC"
cc_cflags="-O"
cc_64_cflags="-O"
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8156#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list