[GHC] #15837: Hadrian should build dynamically linked ghc binary

GHC ghc-devs at haskell.org
Thu Nov 29 16:16:14 UTC 2018


#15837: Hadrian should build dynamically linked ghc binary
-------------------------------------+-------------------------------------
        Reporter:  davide            |                Owner:  davide
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Build System      |              Version:  8.6.1
  (Hadrian)                          |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D5385
       Wiki Page:                    |  Phab:D5327
-------------------------------------+-------------------------------------

Comment (by Alp Mestanogullari <alpmestan@…>):

 In [changeset:"fb9971607c5a41ade71338188c683ee9cb8ca6fc/ghc" fb99716/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="fb9971607c5a41ade71338188c683ee9cb8ca6fc"
 Hadrian: bump Cabal submodule, install extra dynamic flavours of RTS

 Previously, Hadrian was building all the appropriate dynamic ways for
 libHSrts
 but they were not picked up and installed in the package database when
 we register the rts library. Since we use Cabal for registering
 packages and
 the .cabal files of packages as sources of truth for configuring and
 installing,
 we ended up patching Cabal to add a new field,
 'extra-dynamic-library-flavours',
 to specify those extra flavours to install in .cabal files:

     https://github.com/haskell/cabal/pull/5606

 We now make use of this in rts.cabal.in to expose dynamic flavours
 behind a
 Cabal flag, which Hadrian will use whenever we are building a GHC
 flavour that
 requires dynamic libraries.

 This is all part of a larger plan to build a dynamic stage 2 GHC by
 default,
 like with make, which in turn will fix a lot of test failures. See

 Test Plan:
 hadrian/build.sh _build/stage1/lib/package.conf.d/rts-1.0.conf
 _build/stage1/lib/x86_64-.../ should contain many libHSrts-*.so

 Reviewers: snowleopard, DavidEichmann, bgamari, erikd, simonmar

 Reviewed By: snowleopard, DavidEichmann

 Subscribers: rwbarton, carter

 GHC Trac Issues: #15837

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

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


More information about the ghc-tickets mailing list