Skip to content

OxCaml 5.4.0-ox9 by avsm - #1526

Merged
jonludlam merged 6 commits into
ocaml:masterfrom
art-w:ox9
Nov 26, 2026
Merged

jonludlam merged 6 commits into
ocaml:masterfrom
art-w:ox9

Conversation

@art-w

@art-w art-w commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

This PR is an extract from #1520 by @avsm with only the commits required for the latest release of oxcaml ox9. Some minor changes: I've removed the backward compatibility check for the previous oxcaml 5.2.0 and switched the CI to ox9.

@art-w
art-w force-pushed the ox9 branch 2 times, most recently from cf3abb1 to 3434604 Compare November 23, 2026 13:54
@art-w

art-w commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

The OxCaml CI error is due to the mutually recursive type location fixed in PR #1527 (so this one should be merged after)

Odoc no longer builds with the 5.2.0 OxCaml compilers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

(** Unboxed types have a trailing hash '#' *)

type pt = { x : int ; y : float32# }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required due to oxcaml/oxcaml#6663


module Aliased = T
(** The input module itself. It should contain everything from the top
level module *)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is due to ocaml/ocaml#13185 (see also ocaml/ocaml#15047)

Comment thread src/model/dune
(backend landmarks --auto))
(instrumentation
(backend bisect_ppx))
(libraries compiler-libs.common odoc-parser odoc_utils))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this change is required because oxcaml split a bunch of modules out of compiler-libs.common in oxcaml/oxcaml#6470. It's the Shape module that got moved, but because it's in ocamlfrontend in OxCaml and ocamlcommon in OCaml we can't directly point to the library we want here. So instead we're doing a little bit of a hack and pointing at optcomp, which in both OCaml and OxCaml pulls in the Shape module.

Comment thread src/model/compat.cppo.ml
| Class_type ctd -> ctd.ci_id_name.loc
#if defined OXCAML
| Jkind _ -> Location.none (* oxcaml: odoc ignores jkind declarations *)
| Jkind jd -> jd.jkind_loc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit isn't required here, and it's not yet useful AFAIK, but we might as well take it :-)

@jonludlam

Copy link
Copy Markdown
Member

I think I've convinced myself that the non-loader changes are all required or good to have. The loader bits are just the usual oxcaml churn.

@jonludlam

Copy link
Copy Markdown
Member

Thanks @art-w and @avsm !

@jonludlam
jonludlam merged commit 851fc1c into ocaml:master Nov 26, 2026
14 checks passed
jonludlam added a commit to ocurrent/ocaml-docs-ci that referenced this pull request Nov 26, 2026
odoc master dropped OxCaml 5.2.0 support when it gained ox9 support
(ocaml/odoc#1526, 851fc1c). Solve and build with ocaml-variants.5.4.0+ox
and pin oxcaml-compiler.5.4.0-ox9. Checked on sage with
day11-solver-worker: base and core v0.18~preview.133.03+642, odoc and
odoc-driver master solve on ox9 with the guard overlay.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@jonludlam jonludlam mentioned this pull request Nov 26, 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