Skip to content

Deadlock with GHC-9.10, cabal-3.10.3 and parallel build

Summary

I try to compile a project with many packages. With GHC-9.10 the compilation runs into a deadlock sooner or later, that is, the output freezes in the midst of a line of the compilation console output.

This happens with -j and not without. It happens with cabal-3.10.3 but not e.g. cabal-3.6 It happens with GHC-9.10-alpha1 - 3 but not with GHC-9.8 or earlier.

I suspect it has to do with the parallel builds that can interleave compilation across package boundaries.

Environment

  • GHC version used: 9.10-alpha3

Optional:

  • Operating System: Debian11
  • System Architecture: x86_64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information