-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use response files with hsc2hs #3122
Comments
We're probably bumping into the same command-line length restriction we did with Haddock. If this is the case, the solution is to add support for response files to |
@bgamari we probably need to open a new ticket on the ghc trac to track this? |
Indeed. See #13896. |
Sorry to ask a stupid question, but I can't tell why it's failing and why a response file would help? I assume |
The command line limit on windows is shorter than elsewhere:
https://support.microsoft.com/en-us/help/830473/command-prompt-cmd.-exe-command-line-string-limitation
…On Sun, Jul 2, 2017 at 7:02 PM Tamar Christina ***@***.***> wrote:
Sorry to ask a stupid question, but I can't tell why it's failing and why
a response file would help? I assume cabal invokes hsc2hs via process's
runInteractive, which ultimately callsCreateProcess` which has a command
line limit of 32k characters. So I don't quite understand the "why" and
"what" here..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3122 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABEt2RE9v6CiCm521AA8JYr9RKkF6fuMks5sKCGAgaJpZM4HV0dz>
.
|
That is the limit of commands issued through
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx So again, I am confused as to why it is failing, what interaction does it have with the shell that would subject it to the |
I've run into the 32K command line limit. The largest i've seen so far was ~48K when attempting to build https://github.com/ermine-language/ermine on 64-bit Windows with stack (and a STACK_ROOT of C:\hs). Possibly using system GHC instead of a stack-installed one would get it under, but certainly not by much of a margin. I saw similar-looking problems with cabal new-build, but I didn't go as far as dumping and measuring the command line it was attempting to execute. |
As far as I know, cabal does separate compilations for hsc modules. I find it highly suspicious that you hit ~48k when preprocessing a single module. but in any case, I was just wanting to make sure we don't make things more complicated for nothing. I'll take you at your word for it :) |
On Windows, projects break with
.hsc
files and many dependencies. Here's the error as produced byCabal-1.22.4.0
(viastack-1.0.0
):I've made a Vagrant-ized repro in this Gist, including debug output from Stack/Cabal: https://gist.github.com/mkscrg/18c560b8eb303c6ebcf2
FWIW, this feels similar ghc#10777, which stack ran into w/ commercialhaskell/stack#466 and commercialhaskell/stack#795.
(I first reported this as a Stack issue: commercialhaskell/stack#1718)
The text was updated successfully, but these errors were encountered: