Skip to content

ocaml: depend on gcc and zstd-dev - #78764

Open
vejeta wants to merge 2 commits into
wolfi-dev:mainfrom
vejeta:ocaml-runtime-dependencies
Open

vejeta wants to merge 2 commits into
wolfi-dev:mainfrom
vejeta:ocaml-runtime-dependencies

Conversation

@vejeta

@vejeta vejeta commented Oct 20, 2026 •

Copy link
Copy Markdown

ocaml needs two packages at runtime that it does not depend on:

  • ocamlopt assembles and links with gcc. Today the test environment lists gcc explicitly so that the native-compilation test passes.
  • The runtime (libcamlrun.a) uses zstd, so linking it into a program (ocamlc -custom, -output-obj) needs -lzstd. Without zstd-dev that link fails.

Changes:

  • runtime dependencies on gcc and zstd-dev
  • drop gcc from the test environment, so the test checks the new dependency
  • new test: build and run a bytecode program with the runtime linked in (ocamlc -custom)
  • epoch bump

Tested with melange (bubblewrap runner): the bytecode, native and -custom programs all build and print sum=15. The test environment contains no compiler beyond what the package now depends on.

@vejeta vejeta changed the title ocaml: depend on gcc and zstd-dev, which ocamlopt and programs linked… ocaml: depend on gcc and zstd-dev Oct 20, 2026
@vejeta
vejeta marked this pull request as ready for review October 20, 2026 15:01
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.

1 participant