Skip to content

test(menhir): reproduce missing dep for inferred mli - #14447

Merged
Alizter merged 2 commits into
ocaml:mainfrom
art-w:repro-wrong-menhir-deps
May 7, 2026
Merged

Alizter merged 2 commits into
ocaml:mainfrom
art-w:repro-wrong-menhir-deps

Conversation

@art-w

@art-w art-w commented May 7, 2026

Copy link
Copy Markdown
Contributor

@trefis reported a racy issue with the compilation of menhir parsers, which sometimes fails to link with an "inconsistent assumptions over interface" (related to #2450).
cc @robinbb as you've been working on ocamldep-related issues recently: I believe we have to allow the hidden module names to be usable in inferred/generated code (at least for dependency tracking purposes), but perhaps there's an easier fix?

Co-authored-by: Ali Caglayan <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
@Alizter Alizter self-assigned this May 7, 2026
@Alizter
Alizter merged commit 3308d38 into ocaml:main May 7, 2026
29 checks passed
@Alizter

Alizter commented May 7, 2026

Copy link
Copy Markdown
Collaborator

@art-w Are you planning a fix? If not, could you open an issue so that we can track it?

@Alizter Alizter added this to the 3.24.0 milestone Jul 8, 2026
anmonteiro added a commit that referenced this pull request Sep 20, 2026
Preserve dependencies used by Menhir type inference so generated parsers
and their dependents rebuild correctly, without changing hidden-module
lookup.

Fixes #14450. Uses regression coverage from #14447, #16445, and #16446.

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
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