Skip to content

Fix EMLINK on Windows (again) - #7472

Merged
nojb merged 2 commits into
ocaml:mainfrom
nojb:fix_EMLINK
Apr 3, 2023
Merged

nojb merged 2 commits into
ocaml:mainfrom
nojb:fix_EMLINK

Conversation

@nojb

@nojb nojb commented Apr 3, 2023 •

Copy link
Copy Markdown
Collaborator

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

emillon commented Apr 3, 2023

Copy link
Copy Markdown
Collaborator

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)
@Alizter Alizter added this to the 3.7.1 milestone Jun 10, 2026
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.

3 participants