{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiersxnulvilg7qj2xzxp65r226f57guc63xzizvnw7a5jagrqts5q",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mjr5rul7dck2"
},
"path": "/t/problems-using-stack-in-a-msys2-shell/13939#post_3",
"publishedAt": "2026-04-18T09:02:31.000Z",
"site": "https://discourse.haskell.org",
"textContent": "What version of stack was that?\n\nI tried to replicate that build following the same procedure, the only difference being the ghcup-managed stack, versions 3.9.3, at some point downgraded to 3.7.1, and the independently-installed msys2 at c:\\msys64.\n\nBut again they failed with the same permission denied on c:\\windows\\ghc5084_0, etc at first with msys2’s TMP=/tmp and then with the reinstated windows c:\\Users\\drbean\\AppData\\Local\\Temp.\n\nInterestingly, in that tmp dir, there are 3 files from 2 days ago,\n\n\n -rwxr-xr-x 1 drbean なし 78336 Apr 16 16:08 AppData/Local/Temp/ghc11D2.exe\n -rwxr-xr-x 1 drbean なし 78336 Apr 16 16:08 AppData/Local/Temp/ghc3E12.exe\n -rwxr-xr-x 1 drbean なし 81408 Apr 16 18:23 AppData/Local/Temp/ghcD835.exe\n\n\nThen I tried creating a shortcut on the desktop for stack’s programs/x86_64-windows/msys-20240727/msys2_shell.cmd, opening a msys2 terminal and running ghcup’s stack 3.7.1 to build turtle.\n\nAnd it built!\n\nWhich suggests it’s the MSYS2 difference is the cause., not ghcup’s stack.\n\nNow, when I revert to the independent MSYS2, it returns immediately without error.\n\nThanks for walking me through the procedure. Otherwise I probably would not have succeeded building turtle.",
"title": "Problems using Stack in a MSYS2 shell"
}