Dune 3.24.0~alpha2 ships with a new pform and relocatable compiler default, while OCaml trunk merges a flambda inlining fix and DragonFly BSD backtrace support. Eio resolves a long-standing concurrent-stdout crash and introduces a breaking fixed-buffer API change.
Features
-
Dune enabled_if:
enabled_ifinexecutableandinstallstanzas now accepts any variable, matchinglibrarybehaviour. Requires dune language 3.25. #14860 -
Dune configurator:
C.Pkg_config.getgains a~staticparameter that passes--staticto pkg-config, enabling static-linking flag queries. #14947 -
Js_of_ocaml:
Intl.RelativeTimeFormatbinding merged, adding the ECMA-402 relative time formatting API to the standard library. #2070 -
Eio fixed buffers: New
Eio_linux.Low_level.Fixedmodule replaces theUring.RegionAPI for managing fixed-buffer regions. Breaking change for existing fixed-buffer users. #848
Compatibility and Releases
-
Dune 3.24.0~alpha2: Released 2026-06-05. Adds
%{pkg:<pkg>:<section>:<path>}pform, enables the relocatable compiler by default, promotes directory targets to GA, and validates profile names. Release -
OCaml DragonFly BSD: Merged support for frame-pointer backtraces, including recognition in
ocamltest. Resolves assembler errors with gcc 8.3 and binutils 2.34. #14840 -
Dune Melange 1.0: The built-in ReScript dialect is no longer registered for projects using
(using melange 1.0). #15022 -
opam-repository Coq/Rocq: Upper bound
dune < 3.24added to all packages using(lang coq)or(using coq <version>), which dune 3.24 removes. #29988
Fixes
-
OCaml flambda: Merged fix prevents an infinite inlining loop when a recursive function's default-argument stub calls itself. Resolves a compiler hang. #14839
-
Eio concurrent stdout: Closes a long-standing
Eio.Io Unix_error (Interrupted system call, "writev")crash when multiple domains write to stdout concurrently. #842 -
Dune Melange build: Dune skips Melange rule generation when
melcis not onPATH, preventing build failures in single-context projects. #15021 -
opam-repository conf-* packages: A commit adding
conf-pkg-config {>= "5"}to multipleconf-*packages invalidated existing lockfiles and broke Windows builds. The change was fully reverted. #29985