Skip to content

GHC 8.10.5 on Intel Mac cannot build the `network` package

Summary

With macOS Big Sur on Intel Mac, GHC 8.10.5 fails to build the network package. This bug turned out when I tried to build HLS and my personal projects with GHC 8.10.5, and also seems preventing HLS from building on macOS with CI. I'm not sure if this must be reported here or to the network package, but the package successfully buids with older versions of GHC 8.10.x, so I assume this is GHC's bug.

Steps to reproduce

Try to build the network package with GHC 8.10.5 on macOS Big Sur on Intel Mac. For example:

$ stack build --resolver ghc-8.10.5 network

Then GHC gets stuck during the configuration phase; in particular it stops to make any progress after showing "preprocessing...":

network> Preprocessing library for network-3.1.2.1..

Expected behavior

The package must be built successfully, or, at least, some error must be reported.

Environment

  • GHC version used: 8.10.5

Optional:

  • Operating System: macOS BigSur 11.4
  • System Architecture: Intel Core i7
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information