rules_haskell icon indicating copy to clipboard operation
rules_haskell copied to clipboard

Building the most straightforward tests with GHC Bindist compiled with Hadrian

Open GuillaumeGen opened this issue 1 year ago • 2 comments

This is using a locally built bindist using Hadrian. This is currently passing 153 of the 206 tests when running bazel test //... --keep_going.

The main identified issues for failing tests are:

  • The issue with Cabal dependency calling undeclared splitFileName and minusFileName as described in #1832
  • The Hadrian bindist does not distribute a ghci binary. As far as I understood, this should be moved to ghc --interactive to pass tests related to REPL.
  • Some header files not found like "ghcplatform.h".
  • Some type interfaces changed between GHC 8.10.7 and 9.2.5

GuillaumeGen avatar Dec 06 '22 16:12 GuillaumeGen

Might be worth putting the generated bindist somewhere on the internet, to avoid reference to my local file system.

GuillaumeGen avatar Dec 06 '22 17:12 GuillaumeGen

Made some progress:

  1. use the official GHC 9.6.1 bindist as this is built with Hadrian
  2. fixed a few build problems, so now the ./tests/run-start-script.sh --use-bindists works on CI

avdv avatar May 15 '23 13:05 avdv