Skip to content

[3.25.0] release - #16520

Closed
shonfeder wants to merge 15 commits into
ocaml:mainfrom
shonfeder:3.25.0-rc
Closed

shonfeder wants to merge 15 commits into
ocaml:mainfrom
shonfeder:3.25.0-rc

Conversation

@shonfeder

Copy link
Copy Markdown
Member

Release branch for #15593

Signed-off-by: Shon Feder <[email protected]>
@pgiarrusso-sl

Copy link
Copy Markdown

For visibility: #16543 claims to fix a 5x performance regression in this release on a zero build for Rocq — even if you distrust me or agents (understandable), the initial report was from @rlepigre-skylabs-ai .

@shonfeder shonfeder mentioned this pull request Oct 6, 2026
62 tasks done
anmonteiro and others added 13 commits October 7, 2026 14:33
Add a cram reproducer for the regression from ocaml#16362, recording the
failure for a local package dependency under `(lang dune 2.0)` and a
successful 2.9 control.

Upstreams anmonteiro#216.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>

(cherry picked from commit 2bc82b9)

Signed-off-by: Ali Caglayan <[email protected]>
Preserve the Dune 2.9 gate for explicitly requested installed packages
while allowing installed packages discovered through a local package's
library closure on older language versions.

Alternative to ocaml#16528.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>

(cherry picked from commit 3563028)

Signed-off-by: Ali Caglayan <[email protected]>
It is an established convention for artifacts to end up in _build that
are not tracked by dune's build engine, so long as they stay out of
dune's workspace contexts or its private directories. Dune itself does
this with its trace files, but we also see this with oxcaml, which puts
artifacts in a _build/_bootinstall (e.g., in
https://github.com/oxcaml/oxcaml/blob/main/Makefile.common-ox#L216-L228).
It is reasonable, and convenient for users, for dune to to allow this.

However, oxcaml happens to be locating a built compiler in that
location, which caused the fix in
ocaml#16374 to produce a regression when
building the oxcaml trunk for the following reason: the fix in ocaml#16374
ensured that the stdblib provided by portable compilers via dune package
management was made accessible in sandboxed builds cross all supported
platforms (as far as we know). To achieve this, it localizes the path to
the stdlib *if* the stdlib is in the build directory. This is reasonable
to do under the assumption that anything within the _build directory is
managed by dune's build. However, this invariant does not hold, as shown
by the the convention of putting stuff that is not part of dune's build
in the root of the _build directory. This fix weakens the assumption, so
that now only stdlibs located within a registered *context* within the
_build directory get localized. The required invariant should indeed
hold in that case, and we avoid the build failure on oxcaml (or any
other project doing similar things).

Signed-off-by: Shon Feder <[email protected]>
The oxcaml trunk builds started failing with dune. I think this was
after
https://github.com/oxcaml/oxcaml/pull/6562/changes#diff-6cff31f46da42c5f179cda29f9fe7f8dbb6441dcb4d1bd5bfa0a2b9070d87325R107
which ends up leading to tests being build on run on C++, if it's
available (as per the target at
https://github.com/oxcaml/oxcaml/pull/6562/changes#diff-84be0d67b9397fd509a12b5fbc24ec217c1a8f3900388234f6a2a28d102211bbR1266)

`NIX_CFLAGS_COMPILE` apparently get passed to during both C++ and C
compilation, but `-std=gnu17` is not valid for C++, leading to the error

```
cc1plus: error: command-line option '-std=gnu17' is valid for C/ObjC but not for C++ [-Werror]
cc1plus: all warnings being treated as errors
```

As per NixOS/nixpkgs#79303, `CFLAGS` (resp.
`CXXFLAGS` should be preferred).

Applying that fix here allows us to get a clean build of the oxcaml
trunk with dune.

Signed-off-by: Shon Feder <[email protected]>
Backport ocaml#16582 to 3.25.0-rc: add a fresh Dune bootstrap with OxCaml
main to the existing RC/manual job.

CI-only; does not include the unmerged fix in ocaml#16589.
Revert ocaml#16562, refresh the Nix flake lock, and promote the ppxlib 0.39
describe snapshots.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Backport ocaml#16589 to `3.25.0-rc` to restore bootstrapping with OxCaml
trunk.
@shonfeder

Copy link
Copy Markdown
Member Author

Replacing this with #16604 -- this one ended up being branched off my fork, which is not ideal.

@shonfeder shonfeder closed this Oct 14, 2026
anmonteiro pushed a commit that referenced this pull request Nov 8, 2026
…6946)

#16464 changed how module opens are
handled during inference, triggered during menhir rules. This offers a
minimal repro of the related errors detected in the 3.25.0~alpha1
revdeps run at ocaml/opam-repository#31082.

The related failure in CI is
https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/6b2dc4292a7fe02b2ac183f092630bee19d98729/variant/compilers,4.14,dune.3.25.0~alpha1,revdeps,melange.3.0.0-414

@anmonteiro, since this is only affecting melange and apparently only on
4.14, and since (if my debugging is correct) it follows from a change
you introduced, I think you are best positioned to evaluate the impact.

Is this something we should fix and backport before releasing #16520 do
you think? Is the needed fix clear to you?

Signed-off-by: Shon Feder <[email protected]>
anmonteiro pushed a commit that referenced this pull request Nov 8, 2026
…6946)

#16464 changed how module opens are
handled during inference, triggered during menhir rules. This offers a
minimal repro of the related errors detected in the 3.25.0~alpha1
revdeps run at ocaml/opam-repository#31082.

The related failure in CI is
https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/6b2dc4292a7fe02b2ac183f092630bee19d98729/variant/compilers,4.14,dune.3.25.0~alpha1,revdeps,melange.3.0.0-414

@anmonteiro, since this is only affecting melange and apparently only on
4.14, and since (if my debugging is correct) it follows from a change
you introduced, I think you are best positioned to evaluate the impact.

Is this something we should fix and backport before releasing #16520 do
you think? Is the needed fix clear to you?

Signed-off-by: Shon Feder <[email protected]>
(cherry picked from commit fe9ecca)
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants