GHC 8.10.5 on Intel Mac cannot build the `network` package
With macOS Big Sur on Intel Mac, GHC 8.10.5 fails to build the
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.
$ 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-126.96.36.199..
The package must be built successfully, or, at least, some error must be reported.
- GHC version used: 8.10.5
- Operating System: macOS BigSur 11.4
- System Architecture: Intel Core i7