Skip to content

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

Closed

Description

@bryphe

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.

Activity

  1. bryphe commented on Sep 14, 2018

    @bryphe
    ContributorAuthor

    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.

  2. added a commit that references this issue on Apr 21, 2020
    f083066
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions