Skip to content
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

Fatal Error: Cannot run cygpath -m - command - The command line is too long #67

Closed
bryphe opened this issue Sep 14, 2018 · 1 comment · Fixed by #68
Closed

Fatal Error: Cannot run cygpath -m - command - The command line is too long #67

bryphe opened this issue Sep 14, 2018 · 1 comment · Fixed by #68

Comments

@bryphe
Copy link
Contributor

bryphe commented Sep 14, 2018

Our esy build fails on Windows when running ocamlopt.exe w/ lots of includes.

The relevant portion is:

** Fatal error: Cannot run cygpath -m "libadvapi32" "libadvapi32.lib" "libadvapi32.dll.a" "libadvapi32.a" "C:/Users/bryph/.esy/3_/i/opam__slash__ocamlfind-1.8.0-12c842a0/lib/ocaml\libadvapi32" "C:/Users/bryph/.esy/3_/i/opam__slash__ocamlfind-1.8.0-12c842a0/lib/ocaml\libadvapi32.lib" 
...

Full log

This is running ocaml 4.6.0, with v0.37 of flexdll.

@bryphe
Copy link
Contributor Author

bryphe commented Sep 14, 2018

Looking through the code, it appears there is faculty to handle this case:
https://github.com/alainfrisch/flexdll/blob/5f0011a3db1f3a499eeaaae2254e806cbe6b8035/reloc.ml#L71

But for some reason, it's not working correctly in our environment.

It appears that there is a padding of 10 characters (The check is for String.length cmd' < 8182, vs 8192...). I suspect that we must be hitting a case where that 'padding' isn't sufficient.

@dra27 dra27 closed this as completed in #68 Apr 21, 2020
dra27 added a commit that referenced this issue Apr 21, 2020
Fix #67 - Reduce command limit to 8161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant