[GHC] #8837: GHC 7.8.1-rc2 requires /usr/local/lib/libgmp10.10.dylib

GHC ghc-devs at haskell.org
Mon Mar 3 17:06:36 UTC 2014


#8837: GHC 7.8.1-rc2 requires /usr/local/lib/libgmp10.10.dylib
------------------------------------------+--------------------------------
        Reporter:  awick                  |            Owner:
            Type:  bug                    |           Status:  new
        Priority:  normal                 |        Milestone:  7.8.1
       Component:  Compiler               |          Version:  7.8.1-rc2
      Resolution:                         |         Keywords:
Operating System:  MacOS X                |     Architecture:  x86_64
 Type of failure:  Installing GHC failed  |  (amd64)
       Test Case:                         |       Difficulty:  Unknown
        Blocking:                         |       Blocked By:
                                          |  Related Tickets:
------------------------------------------+--------------------------------

Comment (by thoughtpolice):

 Hmmmm... So, this was an error on my part, but it makes me think of
 something I'm not sure we considered:

  - Right now, if you *don't* have GMP available at build time, and you use
 the in-tree GMP, GHC will link it statically into your applications. That
 is, GHC will build GMP locally to use it, and resulting applications won't
 have a dynamic link to `libgmp.so`.

  - If you have an external GMP at build time, then it will link resulting
 binaries against that. Since GHC self-bootstraps as you can see, this
 includes GHC itself. This happened to me because I did `brew install gmp`
 to test something.

 Adam, I can provide another binary in the mean time with the caveat it
 statically links to GMP. Is this acceptable? For some people I know (out
 of principle or otherwise) this isn't, and they will want to dynamically
 link, so perhaps there should be two for now.

 Frankly, the binary proliferation here is a bit silly almost... we should
 really carefully evaluate what to do with GMP etc in a discussion in the
 future.

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


More information about the ghc-tickets mailing list