Thicket thicket
ocaml
REPOS 27

W21.2025 · 19–25 MayAll

OCaml's configure now accepts *-none and *-elf* target triplets, enabling cross-compilation for native freestanding targets such as MirageOS unikernels. A race in domain_terminate that orphaned the shared heap after leaving the STW set is fixed and cherry-picked for 5.4.

Features

OCaml cross-compilation: configure accepts *-none and *-elf* target triplets for native freestanding targets, enabling cross-compilation for MirageOS unikernels. Merged in #13810.

Dune 3.19.0: Adds an (extra_objects) field to the (foreign_library) stanza with (:include) support. Release notes

js_of_ocaml inlining pass: Merged rewrite of the inlining pass; internal Bonsai benchmarks show 50–80% faster execution with <1% binary size increase in separate compilation. #1935

Eio process groups (proposal): PR #802 adds setpgid plumbing to the Unix fork backend for child process-group management. Not yet merged.

Compatibility

Unix.kill (Windows): Processes killed via Unix.kill now report exit code 137 (128 + SIGKILL) instead of 0. Merged in #14046; technically breaking but treated as a bug fix.

odoc 3.0.0: Fails to build against OCaml 5.4 due to parsetree changes (Tpat_alias arity, pack_path removal). Still open; blocks testing packages on OCaml 4 via dune. #1339

Fixes

OCaml runtime: Fixes a race in domain_terminate where the shared heap was orphaned after leaving the STW set, causing GC compaction to operate on missing pools. Merged in #14025; cherry-picked for 5.4.

Dune 3.19.0: Fixes dune subst failing in subdirectories of a git repository. Release notes

opam --deps-only: opam install --deps-only pkg no longer creates a virtual conflict with pkg, preventing unintended removal of an already-installed version. Merged 2025-06-18. #6520

js_of_ocaml runtime: Fixes caml_utf8_of_utf16 emitting a replacement character instead of the correct code point for high surrogate 0xdbff. #2008

ocaml-lsp: Fixes an uncaught exception in lsp/src/import.ml that crashed the LSP on typing spaces or newlines. #1525

Releases

Dune 3.19.0: Released 2025-05-21; 3.19.0~alpha0 cut 2025-05-20 with identical changelog. Release · Alpha