-
Notifications
You must be signed in to change notification settings - Fork 50
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
[windows] Newer SerAPI versions fail to build to path length limit #331
Comments
As discussed in Zulip I would long term recommend to disable the path length restriction in Windows by a registry switch as explained here: This works since the "anniversary update" of Windows 10 (2016) - so on all maintained Windows systems. BUT there are several places in OCaml and related insfrastructure which restrict path length on their own on Windows based on the MAX_PATH Windows C API define. This must be removed to work. I checked that cygwin (which we are using to build Coq Platform) can handle arbitrary length paths (some things get funny beyond 4k) if the above registry change is made. |
Hi folks, I've closed rocq-archive/coq-serapi#377 in favor of this issue, as it was a duplicate, however note the useful information there. Also it seems to me that we could close #358 if we find a solution for this. Manas Jayanth was very kind to provide us with some more info about OCaml path lenght and Windows:
Also Manas pointed out to these remarks by David to their post on discuss:
|
@ejgallego : thanks for the pointers. I have already seen that setting the registry entry is not enough, but that one needs the manifest in addition (possibly only this). The question is what is the best point to manifest all involved executables. One could do it in a somewhat hacky way, say go over the bin folder after coq is installed, but I would prefer a more tool supported solution. So it should either be build into the OCaml linker or into dune. |
Indeed it would be great to get native OCaml support; I guess the next step for us is to check if an upstream issue does exist, or else forward this issue upstream so we can involve the rest of the OCaml windows team in the discussion. |
Fixed by commit 315c006 |
Newer versions of SerAPI do produce files that are too long for windows:
This can be solved by patching SerAPI sources, however it can still become a problem eventually due the long nesting in opam switches.
Not sure how to best solve this.
The text was updated successfully, but these errors were encountered: