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

Fix EMLINK on Windows (again) #7472

Merged
merged 2 commits into from
Apr 3, 2023
Merged

Fix EMLINK on Windows (again) #7472

merged 2 commits into from
Apr 3, 2023

Conversation

nojb
Copy link
Collaborator

@nojb nojb commented Apr 3, 2023

This is a follow-up to #6993. Unfortunately, a typo (1142 -> 1442) meant that the fix there was useless. Also add a similar fix in the other place where EMLINK is handled.

For background (this is also explained in #6993), the Windows error code corresponding to EMLINK is ERROR_TOO_MANY_LINKS (= 1142). The mapping was fixed upstream ocaml/ocaml#11991, but is only available for OCaml >= 5.1, so we need a mitigation in Dune for previous versions.

image

@emillon this should be backported to 3.7.1.

nojb added 2 commits April 3, 2023 11:05
Signed-off-by: Nicolás Ojeda Bär <[email protected]>
Signed-off-by: Nicolás Ojeda Bär <[email protected]>
@nojb nojb merged commit 3a2ac22 into ocaml:main Apr 3, 2023
@nojb nojb deleted the fix_EMLINK branch April 3, 2023 10:50
emillon pushed a commit to emillon/dune that referenced this pull request Apr 3, 2023
@emillon
Copy link
Collaborator

emillon commented Apr 3, 2023

backported in #7475, thanks

emillon pushed a commit to emillon/dune that referenced this pull request Apr 4, 2023
emillon pushed a commit to emillon/dune that referenced this pull request Apr 4, 2023
emillon added a commit that referenced this pull request Apr 4, 2023
Signed-off-by: Nicolás Ojeda Bär <[email protected]>
Co-authored-by: Nicolás Ojeda Bär <[email protected]>
emillon added a commit to emillon/opam-repository that referenced this pull request Apr 4, 2023
…, dune-rpc, dune-rpc-lwt, dune-private-libs, dune-glob, dune-configurator, dune-build-info, dune-action-plugin and chrome-trace (3.7.1)

CHANGES:

- Fix segfault on MacOS when dune was being shutdown while in watch mode.
  (ocaml/dune#7312, fixes ocaml/dune#6151, @gridbugs, @emillon)

- Fix preludes not being recorded as dependencies in the `(mdx)` stanza (ocaml/dune#7109,
  fixes ocaml/dune#7077, @emillon).

- Pass correct flags when compiling `stdlib.ml`. (ocaml/dune#7241, @emillon)

- Handle "Too many links" errors when using Dune cache on Windows.  The fix in
  3.7.0 for this same issue was not effective due to a typo. (ocaml/dune#7472, @nojb)
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 this pull request may close these issues.

2 participants