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

**URL:** <https://discourse.haskell.org/t/building-a-haskell-project-with-github-workflows-fails-with-libffi-error-only-on-ghc-9-2/10031>\
**Category:** Learn\
**Created:** [July 26, 2024, 12:28pm UTC](https://discourse.haskell.org/t/building-a-haskell-project-with-github-workflows-fails-with-libffi-error-only-on-ghc-9-2/10031 "2024-07-26T12:28:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hasufell](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/hasufell/32/1250_2.png) [@hasufell](https://discourse.haskell.org/u/hasufell)\
**Post date:** [July 29, 2024, 3:29am UTC](https://discourse.haskell.org/t/building-a-haskell-project-with-github-workflows-fails-with-libffi-error-only-on-ghc-9-2/10031/3 "2024-07-29T03:29:33Z")

</div>

GHCup uses the following bindist:

- [https://downloads.haskell.org/ghc/9.2.8/ghc-9.2.8-x86\_64-ubuntu20.04-linux.tar.xz](https://downloads.haskell.org/ghc/9.2.8/ghc-9.2.8-x86_64-ubuntu20.04-linux.tar.xz)
- [ghcup-metadata/ghcup-0.0.8.yaml at 86086fda4b282085da33efa6d6e84f9725f50f56 · haskell/ghcup-metadata · GitHub](https://github.com/haskell/ghcup-metadata/blob/86086fda4b282085da33efa6d6e84f9725f50f56/ghcup-0.0.8.yaml#L2995)

It appears ubuntu 24 doesn’t provide libffi7 anymore: [Ubuntu – Package Search Results -- libffi](https://packages.ubuntu.com/search?keywords=libffi&searchon=names&suite=noble&section=all)

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](https://github.com/haskell/ghcup-hs/issues/903)

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)

---

_[View the full topic](https://discourse.haskell.org/t/building-a-haskell-project-with-github-workflows-fails-with-libffi-error-only-on-ghc-9-2/10031)._
