Repository navigation
Add OCaml 4.14.5, 5.5.1 and 5.5.2; build OCaml with C17 on ubuntu-latest - #77
Open
thierry-martinez wants to merge 3 commits into
Open
thierry-martinez wants to merge 3 commits into
thierry-martinez wants to merge 3 commits into
Conversation
stdcompatpp fails with Not_found on a compiler whose version is not in `known_versions` (tools/compiler_version.ml): stdcompat could not be built with OCaml 5.5.1 and 5.5.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ubuntu-latest is now Ubuntu 26, whose GCC 15 defaults to C23: there, a declaration without prototype such as `value (*)()` takes no argument, and OCaml 4.11 to 4.13 and 5.0 fail to build (caml/prims.h: "too many arguments to function"; opam exits with code 31 in the step Setup OCaml). The step is run with CC="gcc -std=gnu17", which OCaml also records for the C stubs. OCaml 4.13.1 built this way with GCC 15.2 locally, and the tests of stdcompat pass with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OCaml 4.14.5 has been released, and the CI jobs 4.14.x now install it: stdcompatpp failed with Not_found since 4.14.5 was not in `known_versions`. stdcompat builds with OCaml 4.14.5 and its tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
stdcompatpp fails with
Not_foundon a compiler whose version is not inknown_versions(tools/compiler_version.ml): stdcompat cannot be built with OCaml 4.14.5, 5.5.1 and 5.5.2. This adds them (and a CHANGES.md entry).Build OCaml with C17 on ubuntu-latest: fixes the CI failures.
Every failing job is an Ubuntu job for OCaml 4.11, 4.12, 4.13 or 5.0, and each fails in the step "Setup OCaml": opam fails to build the compiler (exit code 31).
ubuntu-latestis Ubuntu 26, whose GCC 15 compiles C23 by default.value (*)()incaml/prims.htakes no argument, so these versions no longer compile:error: too many arguments to function … expected 0, have 2.main's CI last passed in August, before the switch of the runner, so it would fail the same way now.🤖 Generated with Claude Code