Building a Haskell project with GitHub workflows fails with libffi error only on ghc-9.2

GHCup uses the following bindist:

It appears ubuntu 24 doesn’t provide libffi7 anymore: Ubuntu – Package Search Results -- libffi

I don’t see any other official bindist that is built with libffi8 for GHC 9.2.8.

That means I’d have to build it myself. Also see: Build fresh versions of old bindists · Issue #903 · haskell/ghcup-hs · GitHub

The main issues with building GHC stuff downstream at the moment is:

  • there’s no github CI to build GHC yet (my private runners are on GH, for various reasons)
  • the test suite is not run, because
    • it’s incredibly flaky
    • the test bindist is constantly broken (running the test suite in the same env that GHC was built is wrong, but that’s what GHC is currently doing on gitlab)