Repository navigation
Fix #67 - Reduce command limit to 8161 - #68
Conversation
|
Sorry for lag. The limit is indeed 8191, but that's for the actual call to The 8160 maximum is therefore 8191
If you run your sample after running |
No worries @dra27 ! Thank you for all the details, and for solving the mystery of why the length had to be reduced to And I've incorporated your suggestion - it'll certainly be helpful in the future to have that code documenting how the |
|
Thanks for the quick patches @bryphe! @alainfrisch, I think this is good to merge. |
|
Actually, while looking at something else, there's a similar problem in String.length cmd_quiet > max_native_command_length |
|
Good catch @dra27 ! That does look suspicious - I replaced that hardcoded value with |
|
@bryphe - AppVeyor should be working again now, would you be able to rebase this one last time and then hopefully I can merge it! |
205288d to
08e414d
Compare
|
Sure thing @dra27 , thanks for the appveyor fix! Rebased, fingers-crossed it's green this time |
|
Huzzah - we have an AppVeyor pass! Many thanks, @bryphe! |
|
Hooray! Thank you for your help and time, @dra27 |
Attempt to work around a compilation error where the command-line is too long. We _may_ be hitting ocaml#68 Lower the limit(s) to 8000 characters to be on the safe side. Change-Id: I18cf2d2518a7747ee7f0ccbf67f5b675412da143
This fixes #67 - on
esy, we were hitting a case where we were supplied a command with a length of 8178 - this would give us a 'Command line too long error'.It's a bit strange, because the officially documented limit for the command line length is 8191.
However, I tested this with a quick sample program (attached: test.c.txt)
The results were surprising - I was getting the exception at 8161 characters long:
I considered that it might be a difference using the mingw toolchain vs a native compiler, but even compiling with the VS
clcompiler, I hit the same limit.Lowering this limit to
8161allows foresyto build successfully on Windows.