[GHC] #8497: clang/wrapper cannot build GHC head with integer-gmp on Mavericks

GHC ghc-devs at haskell.org
Wed Nov 20 13:21:20 UTC 2013


#8497: clang/wrapper cannot build GHC head with integer-gmp on Mavericks
----------------------------------------+----------------------------------
        Reporter:  kazu-yamamoto        |            Owner:
            Type:  bug                  |           Status:  new
        Priority:  normal               |        Milestone:
       Component:  Compiler             |          Version:  7.7
      Resolution:                       |         Keywords:  clang
Operating System:  MacOS X              |     Architecture:
 Type of failure:  Building GHC failed  |  Unknown/Multiple
       Test Case:                       |       Difficulty:  Unknown
        Blocking:                       |       Blocked By:
                                        |  Related Tickets:
----------------------------------------+----------------------------------

Comment (by kazu-yamamoto):

 OK. I understand the source of this problem.

 On Mavericks, "/usr/bin/gcc" is a wrapper for clang:

 {{{
 % /usr/bin/gcc --version
 Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
 --with-gxx-include-dir=/usr/include/c++/4.2.1
 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
 Target: x86_64-apple-darwin13.0.0
 Thread model: posix
 }}}

 With this gcc, "libraries/integer-gmp/gmp/gmpbuild/configure" fails.
 If we can pass CC=clang to this configure, it works.

 To prove this, I modified "libraries/integer-gmp/gmp/ghc.mk" to hard-code
 "CC=clang". With this hack, I can build GHC head with integer-gmp on
 Mavericks.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8497#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list