Thicket thicket
ocaml
REPOS 9

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W39.2026 · 21–27 Sepocaml/dune

Fixes

  • Menhir + relocatable compiler: Unbound module Stdlib on macOS. dune build with a (menhir ...) stanza and dune pkg (relocatable compiler) now succeeds. The fix adds an explicit Stdlib dependency to the inference rule and reclassifies the path for sandboxing. Merged in #16374; will ship in 3.25.

  • Menhir qualified module group interfaces (include_subdirs qualified). Menhir parsers can now serve as foo/foo.ml group interfaces. The fix opens a private alias interface for inference and uses digest-based helper names to avoid filename-length and collision issues. Merged in #16464 and #16489; closes #8989 (open since 2023). A follow-up extending the fix to OCaml 4.02–4.07 was opened in #16497.

  • Windows: file-descriptor hashing crash. Hashing Windows handles by integer value caused assertion failures and CI timeouts. Dune now uses Poly.hash on Windows. Merged in #16476; fixes #16459.

  • Concurrent dune build RPC rejection. Running dune build while another instance holds the build server now produces a descriptive error instead of server error (error kind: Code_error). Merged in #16486; fixes #16219.

  • Package dependency closure for installed-file tracking. Library-induced package dependencies are now followed to their full package closure, preventing stale install states. Merged in #16362.

Features

  • job_slots rule (proposal). A new rule lets a build compute and expose a slot count via an environment variable, enabling polyglot sub-builds (e.g. Cargo) to size their parallelism without a jobserver. Open in #16475; labelled needs-version-bump, so it will require a new dune language version.

  • Merlin PPX cache (proposal). Dune would emit USE_PPX_CACHE and PPX_DEPS Merlin directives so the editor caches PPX-processed files, reducing editor latency for PPX-heavy projects. Open in #16460; depends on a Merlin release.

  • -Werror=unguarded-availability-new for C/C++ on macOS (proposal). Dune would add this flag to standard C/C++ flags so that calls to APIs newer than the deployment target fail at compile time rather than crash at runtime. Open in #16456; fixes #16413.

Compatibility and Releases

  • The Menhir/relocatable-compiler fix (#16374) is targeted for the 3.25 release; a nightly binary is available via nightly.dune.build. The job_slots rule (#16475) will require a language-version bump and is expected in 3.26.