GHC bug while installing doctest package using cabal
Summary
While I was trying to install 'doctest' package using cabal install doctest
I came across this error:
Undefined symbols for architecture x86_64: "___darwin_check_fd_set_overflow", referenced from: _awaitEvent in libHSrts.a(Select.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) clang' failed in phase Linker'. (Exit code: 1) cabal: Failed to build exe:hsc2hs from hsc2hs-0.68.7 (which is required by exe:doctest from doctest-0.17). See the build log above for details.
Steps to reproduce
Then, I posted this issue here and @phadej suggests that it might be a GHC issue. Could you please take a look and let me know how to resolve this?
Expected behavior
Installation of the 'doctest' package using cabal
Environment
- GHC version used: Version 8.10.1
Optional:
- Operating System: Mac OS
- System Architecture: x86_64