Closed alpmestan closed 5 years ago
Thanks @alpmestan! I'll give it a proper review in a couple of days. (Currently overwhelmed with teaching and other university commitments at the start of the year, plus upcoming Haskell eXchange.)
Note that after rebasing against latest hadrian & ghc, my Cabal patch doesn't work anymore. The source of the problem has not been identified yet, but the symptom is very simple to describe.
1/ hadrian still builds all the fancy flavours that we want, it puts them under Hadrian.Haskell.Cabal.configurePackage
, we do get all 4 flags (profiling, logging, dynamic, debug) from the Cabal Flags
builder and pass that to Cabal
3/ much further down the road, when comes the time to install the static and dynamic libraries for libHSrts, it looks as if extra-dynamic-library-flavours
is empty, except that with the 4 flags that we do pass when configuring, we should get the entire menu of dynamic flavours listed in there! So my Cabal patch ends up installing just the "vanilla shared" RTS library...
@DavidEichmann (who recently started giving us a helping hand on the hadrian testsuite front and hadrian/ghc in general) and I are looking into this.
Many thanks @alpmestan and @DavidEichmann!
What happened to this?
@bgamari A lot :-) See https://ghc.haskell.org/trac/ghc/ticket/15837 which sums everything up. In particular, the cabal PR I made got merged yesteday, so we're finally going to be able to proceed with the rest of the plan outlined at #15837.
@alpmestan Thanks! I guess we should close this PR here then?
Yes we can, the ticket I mentionned above "took over" :-)
Where non trivial means e.g "threaded dynamic", i.e not just "dynamic".
This requires a Cabal patch: https://github.com/haskell/cabal/pull/5606 and a GHC patch that bumps Cabal and also adds:
I will submit it once the Cabal patch is merged. Until then, I thought it would be a good idea to have this PR ready. As reported in #695 I can build & install all the dynamic RTS flavours I want with all those patches. This effectively fixes #695.