Problems using Stack in a MSYS2 shell
What version of stack was that?
I 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.
But 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.
Interestingly, in that tmp dir, there are 3 files from 2 days ago,
-rwxr-xr-x 1 drbean なし 78336 Apr 16 16:08 AppData/Local/Temp/ghc11D2.exe
-rwxr-xr-x 1 drbean なし 78336 Apr 16 16:08 AppData/Local/Temp/ghc3E12.exe
-rwxr-xr-x 1 drbean なし 81408 Apr 16 18:23 AppData/Local/Temp/ghcD835.exe
Then 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.
And it built!
Which suggests it’s the MSYS2 difference is the cause., not ghcup’s stack.
Now, when I revert to the independent MSYS2, it returns immediately without error.
Thanks for walking me through the procedure. Otherwise I probably would not have succeeded building turtle.
Discussion in the ATmosphere