You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build will fail, but first it outputs the command it's trying to run which is approxy 38k characters long, longer than limit that can be given to createProcess. the command is that long because it includes all module names and there's a lot of them
Removing the last 20 or so modules from the Cabal package takes it under the limit and it then builds. (technically depends on ghc path)
Please use version-prefixed commands (e.g. v2-build or v1-build) to avoid ambiguity.
^^ dunno what this means :)
Expected behavior
A clear and concise description of what you expected to happen.
It should build
System information
Operating system: Windows 10 (2004)
cabal, ghc version: ghc 8.8.4, cabal 3.0.1.0 and also 2.0.1.1
Additional context
I think this is the same issue as #3122 where the solution was to use response files.
Operating system: OSX cabal 3.4.0.0, ghc version 9.0.1
though admittedly the issues triggers at a much longer line length on OSX
$ getconf ARG_MAX
262144
If I spin up the library I run into ghc line length limits. This seems to be a joint cabal/ghc issue. in that ghc can't take its arguments in request files, and cabal can't pass it those arguments in such a file yet.
If I start the repl and need -fobject-code I run into clang line length limits. This seems like a direct ghc issue.
jneira
changed the title
Windows max command line length being hit calling ghc
Windows/macOS max command line length being hit calling ghc
Mar 15, 2022
Describe the bug
on Windows with a large project
cabal build
fails with:E:\sb\x86_64-windows\ghc-8.8.4\bin\ghc.exe: createProcess: does not exist (No such file or directory)
To Reproduce
Steps to reproduce the behavior:
Have a large project. i made a repro here https://github.com/dten/cabal-max-path-repro
on windows in that repo
Build will fail, but first it outputs the command it's trying to run which is approxy 38k characters long, longer than limit that can be given to
createProcess
. the command is that long because it includes all module names and there's a lot of themRemoving the last 20 or so modules from the Cabal package takes it under the limit and it then builds. (technically depends on ghc path)
Please use version-prefixed commands (e.g.
v2-build
orv1-build
) to avoid ambiguity.^^ dunno what this means :)
Expected behavior
A clear and concise description of what you expected to happen.
It should build
System information
cabal
,ghc
version: ghc 8.8.4, cabal 3.0.1.0 and also 2.0.1.1Additional context
I think this is the same issue as #3122 where the solution was to use response files.
I think from this issue that GHC does not support them though https://gitlab.haskell.org/ghc/ghc/-/issues/16476
The text was updated successfully, but these errors were encountered: