commercialhaskell / commercialhaskell/stack

Windows 11: Trying to build with `ghc-git-682bf9799b3c3037ee484732bd83c3d21f620fc0`

Open
#6,823 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

On Windows 11, trying to build with `compiler: ghc-git-682bf9799b3c3037ee484732bd83c3d21f620fc0` was failing during Stage 1, with:

~~~text
_build/stage0/bin/ghc.exe: createProcess: does not exist (No such file or directory)
~~~

even though `_build/stage0/bin/ghc.exe` had been created during Stage 0.

The reason seems to be a problem with long paths (even though long paths support was enabled). Creating, short, `C:\Temp` and setting `TEMP` and `TMP` to reference it saw GHC built from source.

However, the build has folder `lib\targets` containing file `default.target` and that file has absolute paths. The built GHC does not work, as a consequence.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.