[windows] GHC fails to link due to msys2 crt update
Context:
- https://github.com/msys2/MINGW-packages/issues/10837
- https://github.com/msys2/MINGW-packages/pull/10634
Steps to reproduce:
- clone https://github.com/vsafonkin/sample-msys-crt-git-package-bug
- update msys2 packages:
pacman -Syy && pacman -S --noconfirm --noprogressbar mingw-w64-x86_64-crt-git
- make sure the global cabal.config contains
extra-lib-dirs
andextra-include-dirs
pointing to the msys2 installation (as is done on the ghcup installation) - run
cabal run
Workaround was mentioned by @Phyx https://github.com/msys2/MINGW-packages/issues/10837#issuecomment-1047105402
Not sure if #21109 (closed) is related