Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

66.6. ocaml-5.5.1

The OCaml native and bytecode compilers, runtime and standard library

5.5.1-1 · LGPL-2.1-only WITH OCaml-LGPL-linking-exception · 2.7 SBU · 242.7 MiB, 2672 files · 40_lang, 49 of 186 · ports/core/lang/ocaml

Homepage: https://ocaml.org/

Depends on: gcc, binutils, zstd.

Required by (2): kalzium, ocaml-facile.

Sources: ocaml-5.5.1.tar.xz (4.5 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install ocaml'

build.sh:

./configure \
	--prefix=/usr \
	--libdir=/usr/lib/ocaml \
	--mandir=/usr/share/man \
	--disable-ocamltest \
	--disable-debug-runtime \
	--disable-instrumented-runtime \
	CFLAGS="$CFLAGS -g0"
make
make DESTDIR=$PKG install
for f in "$PKG"/usr/bin/*; do
	if [ ! -L "$f" ] && [ "$(head -c4 "$f")" = $'\x7fELF' ]; then
		strip --strip-debug "$f"
	fi
done

Programs: ocaml, ocamlc, ocamlc.byte, ocamlc.opt, ocamlcmt, ocamlcp, ocamldebug, ocamldep, ocamldep.byte, ocamldep.opt, ocamldoc, ocamldoc.opt, ocamllex, ocamllex.byte, ocamllex.opt, ocamlmklib, ocamlmktop, ocamlobjinfo, ocamlobjinfo.byte, ocamlobjinfo.opt, ocamlopt, ocamlopt.byte, ocamlopt.opt, ocamloptp, ocamlprof, ocamlrun, ocamlrun-a100, ocamlyacc, x86_64-pc-linux-musl-ocamlrun-a100.

Directories: /usr/lib/ocaml/caml, /usr/lib/ocaml/compiler-libs, /usr/lib/ocaml/dynlink, /usr/lib/ocaml/ocamldoc, /usr/lib/ocaml/profiling, /usr/lib/ocaml/runtime_events, /usr/lib/ocaml/stdlib, /usr/lib/ocaml/str, /usr/lib/ocaml/stublibs, /usr/lib/ocaml/threads, /usr/lib/ocaml/unix, /usr/share/doc/ocaml, /usr/share/licenses/ocaml.