Skip to content

[windows] GHC fails to link due to msys2 crt update

Context:

Steps to reproduce:

  1. clone https://github.com/vsafonkin/sample-msys-crt-git-package-bug
  2. update msys2 packages: pacman -Syy && pacman -S --noconfirm --noprogressbar mingw-w64-x86_64-crt-git
  3. make sure the global cabal.config contains extra-lib-dirs and extra-include-dirs pointing to the msys2 installation (as is done on the ghcup installation)
  4. 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

Edited by Julian Ospald
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information