[GHC] #15990: Dynamically built GHC crashes on MacOS

GHC ghc-devs at haskell.org
Thu Jan 17 17:47:05 UTC 2019


#15990: Dynamically built GHC crashes on MacOS
-------------------------------------+-------------------------------------
        Reporter:  harpocrates       |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Build System      |              Version:  8.7
  (Hadrian)                          |
      Resolution:                    |             Keywords:
Operating System:  MacOS X           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"2f65025eeb4a79458af26d759e932d70633a64db/ghc"
 2f65025e/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="2f65025eeb4a79458af26d759e932d70633a64db"
 Hadrian: support extra libraries + OSX rpath

 Summary:
 This fixes some of the issues that surfaced when trying to build
 dynamic GHC on OSX. Unfortunately, due some other `libffi`
 issues, this doesn't completely fix dynamic builds on OSX.

   - Use 'extra-libraries' from .cabal files instead of hardcoding
     which packages need which extra libs. Also add support for
     'extra-lib-dirs'.

   - Make sure Hadrian looks in the right places to support both
     plain '<pkg>.buildinfo' and '<pkg>.buildinfo.in' files.

   - Make the '-rpath' support more robust across OS's (it previously
     didn't work on OSX and possibly windows either).

 Reviewers: angerman, alpmestan, adamse, DavidEichmann, bgamari, Phyx

 Subscribers: rwbarton, carter

 GHC Trac Issues: #15990

 Differential Revision: https://phabricator.haskell.org/D5409
 }}}

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


More information about the ghc-tickets mailing list