Organisationsavsmocaml-ctypes8e58a5 (master)alpine-3.22-4.14_opam-2.5

alpine-3.22-4.14_opam-2.5

Link Copied
Code Copied

Logs

2026-01-16 11:40.30: New job: test avsm/ocaml-ctypes https://github.com/avsm/ocaml-ctypes.git#refs/heads/master (8e58a54e3d8b4657e856570ffecf4941d8d676ab) (linux-x86_64:alpine-3.22-4.14_opam-2.5)
Base: ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/avsm/ocaml-ctypes.git" -b "master" && cd "ocaml-ctypes" && git reset --hard 8e58a54e
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216
# alpine-3.22-4.14_opam-2.5
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 ctypes.opam ctypes-foreign.opam ./
RUN opam pin add -yn ctypes.dev './' && \
opam pin add -yn ctypes-foreign.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-ncurses.1 conf-pkg-config.4 cppo.1.8.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 integers.0.7.0 lwt.6.0.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2 ounit.2.2.7 ounit2.2.2.7 seq.base stdlib-shims.0.3.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.5 --depext-only -y ctypes.dev ctypes-foreign.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2026-01-16 11:40.30: Using cache hint "avsm/ocaml-ctypes-ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216-alpine-3.22-4.14_opam-2.5-40651050b9b8964a487673598cc21eec"
2026-01-16 11:40.30: Using OBuilder spec:
((from ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216)
(comment alpine-3.22-4.14_opam-2.5)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(workdir /src)
(run (shell "sudo chown opam /src"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src ctypes.opam ctypes-foreign.opam) (dst ./))
(run (network host)
(shell  "opam pin add -yn ctypes.dev './' && \
\nopam pin add -yn ctypes-foreign.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-ncurses.1 conf-pkg-config.4 cppo.1.8.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 integers.0.7.0 lwt.6.0.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2 ounit.2.2.7 ounit2.2.2.7 seq.base stdlib-shims.0.3.0")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.5 --depext-only -y ctypes.dev ctypes-foreign.dev $DEPS"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst /src))
(run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2026-01-16 11:40.30: Waiting for resource in pool OCluster
2026-01-16 15:37.46: Waiting for worker…
2026-01-16 15:40.33: Got resource from pool OCluster
Building on eumache
All commits already cached
HEAD is now at 8e58a54 ctypes-foreign: add win32 depext


(from ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216)
2026-01-16 15:40.33 ---> using "d1cef22083ba59d6db4e2f107091c68dd70ebdcc64c3894ad7db7be62ad17f4a" from cache


/: (comment alpine-3.22-4.14_opam-2.5)


/: (user (uid 1000) (gid 1000))


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
2026-01-16 15:40.33 ---> using "7c7cce50f5e947565c3d5dbad3ac3b61d12cac1cb4c13b6c802d6a8bb10d1345" from cache


/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.


This version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.


Continue? [Y/n] y
[NOTE] The 'jobs' option was reset, its value was 255 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=255 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-01-16 15:40.33 ---> using "d95bbd73a24778f1321e62f69802692f647c727b93c3a5bbd318b81d4a471a07" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-131-generic
The OCaml toplevel, version 4.14.2
2.5.0
2026-01-16 15:40.33 ---> using "0946bc50f9a71a954b4e3169058449c50f765d27decff1e10b17d7843ccd9459" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2026-01-16 15:40.33 ---> using "f598dcec640aed1c1320fd535f3be224f496aae5fd076bc0ab3a32f9d65fd942" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
a6b2f19780..873cb18c37  master     -> origin/master
873cb18c37 Merge pull request #29216 from shonfeder/release-dune-3.21.0


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///home/opam/opam-repository


Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly at these versions (e.g. "opam upgrade ocaml.5.4.0"), which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2026-01-16 15:40.33 ---> using "d27dbf5e08e72fb1a17daaf34a00974b8055113683999092101fdecccdb87fe1" from cache


/src: (copy (src ctypes.opam ctypes-foreign.opam) (dst ./))
2026-01-16 15:40.34 ---> saved as "23b5b39d6c45205a838a91e5fe39f8ded9df2664bad6a6293d5d1d2cd421fe12"


/src: (run (network host)
(shell  "opam pin add -yn ctypes.dev './' && \
\nopam pin add -yn ctypes-foreign.dev './'"))
[ctypes.dev] synchronised (file:///src)
[WARNING] Failed checks on ctypes package definition from source at file:///src:
warning 48: The fields 'build-test:' and 'build-doc:' are deprecated, and should be replaced by uses of the 'with-test' and 'with-doc' filter variables in the 'build:' and 'install:' fields, and by the newer 'run-test:' field
error 52: Package is needlessly flagged "light-uninstall", since it has no remove instructions
ctypes is now pinned to file:///src (version dev)
[ctypes-foreign.dev] synchronised (file:///src)
[WARNING] Failed checks on ctypes-foreign package definition from source at file:///src:
error  3: File format error in 'depends' at line 47, column 0: Duplicate field depends
warning 47: Synopsis should start with a capital and not end with a dot
warning 68: Missing field 'license'
ctypes-foreign is now pinned to file:///src (version dev)
2026-01-16 15:40.43 ---> saved as "1350adde799d4787584adf7771b68ef07a3125d1c7505c8f59fdf6085c121c44"


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2026-01-16 15:40.44 ---> saved as "b2a3172ebbcb480f346f27d392560f341b9ba5ffe246e46bea3626ffaeab8b54"


/src: (env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-ncurses.1 conf-pkg-config.4 cppo.1.8.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 integers.0.7.0 lwt.6.0.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2 ounit.2.2.7 ounit2.2.2.7 seq.base stdlib-shims.0.3.0")


/src: (env CI true)


/src: (env OCAMLCI true)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.5 --depext-only -y ctypes.dev ctypes-foreign.dev $DEPS"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.22.2-345-g80278e42c54 [https://dl-cdn.alpinelinux.org/alpine/v3.22/main]
- v3.22.2-350-ga346423740a [https://dl-cdn.alpinelinux.org/alpine/v3.22/community]
- v20251224-1517-g76c24b64e20 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20251224-1496-g03a612442a1 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20251224-1495-g0eba70fbcb6 [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 60721 distinct packages available


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ctypes.dev] synchronised (file:///src)
[ctypes-foreign.dev] synchronised (file:///src)


[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).


The following system packages will first need to be installed:
libffi-dev


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>


+ /usr/bin/sudo "apk" "add" "libffi-dev"
- (1/2) Installing linux-headers (6.14.2-r0)
- (2/2) Installing libffi-dev (3.4.8-r0)
- OK: 313 MiB in 104 packages
# To update the current shell environment, run: eval $(opam env)
2026-01-16 15:41.08 ---> saved as "2c85ed92d46b53ac6ae197ec1cfa5718b50891629c38022f8e252378b315a57b"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 15 packages
- install base-bytes        base
- install conf-ncurses      1
- install conf-pkg-config   4
- install cppo              1.8.0
- install csexp             1.5.2
- install dune              3.21.0
- install dune-configurator 3.21.0
- install integers          0.7.0
- install lwt               6.0.0
- install ocamlfind         1.9.8
- install ocplib-endian     1.2
- install ounit             2.2.7
- install ounit2            2.2.7
- install seq               base
- install stdlib-shims      0.3.0


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-pkg-config.4
-> retrieved integers.0.7.0  (cached)
-> retrieved lwt.6.0.0  (cached)
-> installed conf-ncurses.1
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved ounit.2.2.7, ounit2.2.2.7  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed dune.3.21.0
-> installed csexp.1.5.2
-> installed cppo.1.8.0
-> installed stdlib-shims.0.3.0
-> installed ocplib-endian.1.2
-> installed integers.0.7.0
-> installed ounit2.2.2.7
-> installed ounit.2.2.7
-> installed dune-configurator.3.21.0
-> installed lwt.6.0.0
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-16 15:42.30 ---> saved as "49636fb9fc9d31f2d2ab0444db680118bb3f9725cd9d13e2318a1fd071bcd897"


/src: (copy (src .) (dst /src))
2026-01-16 15:42.31 ---> saved as "d5f5483a9154e90f036e4216601252c2f0663008c4b096d7ca0ef95730b52e33"


/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
2026-01-16 15:42.32 ---> saved as "c38acdb026746d009d40e5cadcda91779b820e57030e649e79c35d221b6b3784"
Job succeeded
2026-01-16 15:42.32: Job succeeded