Skip to content

[OCaml] add newer OCaml compilers - #2365

Merged
mattgodbolt-molty merged 3 commits into
compiler-explorer:mainfrom
mattsblack:ocaml-update
Sep 30, 2026
Merged

mattgodbolt-molty merged 3 commits into
compiler-explorer:mainfrom
mattsblack:ocaml-update

Conversation

@mattsblack

Copy link
Copy Markdown
Contributor

added more OCaml compilers and their flambda versions because many were released since 5.2.0.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019UuPJbXuMH8A4DCDNoiBiv
@mattgodbolt-molty

Copy link
Copy Markdown
Contributor

Thanks @mattsblack! We fixed the ocaml-builder (compiler-explorer/ocaml-builder#3) and built the 40 versions that weren't in S3 yet, so all 74 targets now have tarballs. I also pushed a small maintainer edit (91c1697): check_exe now uses -version, because --version exits with an error before OCaml 4.03, which would have failed the install check for 3.12.1 through 4.02.3. Merging once CI is green, then I'll install them.

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Build Required

The following additions require CE to build artifacts before deployment:

  • ocaml.yaml: compilers/ocaml 4.05.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.11.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.05.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.00.1 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.4.1 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 3.12.1 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.5.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.13.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.06.1-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.14.4 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.3.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.03.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.14.3-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.07.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.08.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.1.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.02.3 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.14.4-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.4.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.3.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.2.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.06.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.07.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.08.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.12.1-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.14.1 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.4.1-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.12.1 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.2.1 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.11.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.2.1-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.5.1-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.01.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.13.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.14.3 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.4.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.5.1 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.06.0 (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.5.0-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 4.14.1-flambda (type: s3tarballs)
  • ocaml.yaml: compilers/ocaml 5.1.1-flambda (type: s3tarballs)

Please ensure these have been built and uploaded to S3 before merging, or coordinate with the CE team.

Build Commands

gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.05.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.11.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.05.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.00.1 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.4.1 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=3.12.1 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.5.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.13.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.06.1-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.14.4 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.3.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.03.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.14.3-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.07.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.08.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.1.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.02.3 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.14.4-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.4.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.3.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.2.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.06.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.07.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.08.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.12.1-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.14.1 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.4.1-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.12.1 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.2.1 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.11.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.2.1-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.5.1-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.01.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.13.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.14.3 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.4.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.5.1 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.06.0 -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.5.0-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=4.14.1-flambda -f command=build.sh
gh workflow run bespoke-build.yaml -f image=ocaml -f version=5.1.1-flambda -f command=build.sh

@mattgodbolt-molty
mattgodbolt-molty merged commit aabc2d5 into compiler-explorer:main Sep 30, 2026
2 checks passed
mattgodbolt-molty pushed a commit to compiler-explorer/compiler-explorer that referenced this pull request Sep 30, 2026
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
Added more OCaml compilers since there were many new releases since
5.2.0. I also added flambda versions of each compiler from version 4.5.0
to the latest release.

Depends on compiler-explorer/infra#2365

---------

Co-authored-by: x <x@x>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.

2 participants