Organisationsavsmocaml-ctypes8e58a5 (master)openbsd-77-amd64-4.14_opam-2.5

openbsd-77-amd64-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) (openbsd-amd64:openbsd-77-amd64-4.14_opam-2.5)
Base: openbsd-77-amd64-ocaml-4.14
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 openbsd-77-amd64-ocaml-4.14
# openbsd-77-amd64-4.14_opam-2.5
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN doas ln -f /usr/bin/opam-2.5 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
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 /home/opam/src/./
RUN opam pin add -yn ctypes.dev '/home/opam/src/./' && \
opam pin add -yn ctypes-foreign.dev '/home/opam/src/./'
RUN echo '(lang dune 3.0)' > '/home/opam/src/./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 . /home/opam/src
RUN cd /home/opam/src && 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-openbsd-77-amd64-ocaml-4.14-openbsd-77-amd64-4.14_opam-2.5-40651050b9b8964a487673598cc21eec"
2026-01-16 11:40.30: Using OBuilder spec:
((from openbsd-77-amd64-ocaml-4.14)
(comment openbsd-77-amd64-4.14_opam-2.5)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "doas 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"))
(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 /home/opam/src/./))
(run (network host)
(shell  "opam pin add -yn ctypes.dev '/home/opam/src/./' && \
\nopam pin add -yn ctypes-foreign.dev '/home/opam/src/./'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > '/home/opam/src/./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 /home/opam/src))
(run (shell "cd /home/opam/src && 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 17:07.29: Waiting for worker…
2026-01-16 18:53.00: Got resource from pool OCluster
Building on oregano
All commits already cached
HEAD is now at 8e58a54 ctypes-foreign: add win32 depext


(from openbsd-77-amd64-ocaml-4.14)
2026-01-16 18:53.01 ---> using "00579f8dea230f94ca5972e50ed0dc70167d1c0e96cfe76e645642677774f17f" from cache


/: (comment openbsd-77-amd64-4.14_opam-2.5)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (run (shell "doas ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
2026-01-16 18:53.01 ---> using "da141ce924dbdf0e0442253d076446a1e9daf01a696ee1da60c117d1744ba343" from cache


/: (run (shell "opam init --reinit -ni"))
No configuration file found, using 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.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from file:///home/opam/opam-repository
2026-01-16 18:53.01 ---> using "b47c7195b64a0fbbfb2ac6be89bc5d4169c21972d78277da851cf2b727db2a25" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
OpenBSD 7.7
The OCaml toplevel, version 4.14.2
2.5.0
2026-01-16 18:53.01 ---> using "e55220d038fe41141e2145e0c421187821ce842a2e5f51ea535be80bbba79f5e" from cache


/: (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
93a7bce43a..873cb18c37  master     -> origin/master
873cb18c37 Merge pull request #29216 from shonfeder/release-dune-3.21.0


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from 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 18:53.01 ---> using "7e80e4caffeefae7112785391fa8605a8866d0366a747c3a0254aaa7d199ef2d" from cache


/: (copy (src ctypes.opam ctypes-foreign.opam) (dst /home/opam/src/./))
2026-01-16 18:53.58 ---> saved as "77a5fc679ceae9b9aaebc6305d4e4a7d0cea6042e2785783c39c9eaba6c85b83"


/: (run (network host)
(shell  "opam pin add -yn ctypes.dev '/home/opam/src/./' && \
\nopam pin add -yn ctypes-foreign.dev '/home/opam/src/./'"))
[ctypes.dev] synchronised (file:///home/opam/src)
[WARNING] Failed checks on ctypes package definition from source at file:///home/opam/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:///home/opam/src (version dev)
[ctypes-foreign.dev] synchronised (file:///home/opam/src)
[WARNING] Failed checks on ctypes-foreign package definition from source at file:///home/opam/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:///home/opam/src (version dev)
2026-01-16 18:54.54 ---> saved as "cd7c700d23c72378171b3516be63a07dadd81a67367ffd8c07b7beb1bf257a95"


/: (run (network host)
(shell "echo '(lang dune 3.0)' > '/home/opam/src/./dune-project'"))
2026-01-16 18:55.50 ---> saved as "c59a106d69ec57191e9823525dbfc4bc747722746ebd224dd5bdf76640bc91db"


/: (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"))
[WARNING] Unknown update command for bsd, skipping system update


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ctypes-foreign.dev] synchronised (file:///home/opam/src)
[ctypes.dev] synchronised (file:///home/opam/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).
# To update the current shell environment, run: eval $(opam env)
2026-01-16 18:56.54 ---> saved as "f8cc410021ea59dc4748ff8a0dff61c61be164aa699ffa77a717684dcbdd3721"


/: (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 <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-ncurses.1
-> installed conf-pkg-config.4
-> retrieved csexp.1.5.2  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved integers.0.7.0  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved lwt.6.0.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved ounit.2.2.7, ounit2.2.2.7  (cached)
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
[ERROR] The compilation of dune.3.21.0 failed at "ocaml boot/bootstrap.ml -j 3".


#=== ERROR while compiling dune.3.21.0 ========================================#
# context     2.5.0 | openbsd/x86_64 | ocaml-base-compiler.4.14.2 | file:///home/opam/opam-repository
# path        ~/.opam/4.14.2/.opam-switch/build/dune.3.21.0
# command     ~/.opam/4.14.2/bin/ocaml boot/bootstrap.ml -j 3
# exit-code   2
# env-file    ~/.opam/log/dune-38669-5fd84a.env
# output-file ~/.opam/log/dune-38669-5fd84a.out
### output ###
# ocamlc -output-complete-exe -intf-suffix .dummy -g -o .duneboot.exe -I boot unix.cma boot/types.ml boot/libs.ml boot/duneboot.ml
# ./.duneboot.exe -j 3
# cd _boot && /home/opam/.opam/4.14.2/bin/ocamlopt.opt -c -g -I +threads lmdb_stubs.c -ccopt -I .
# vendor/ocaml-lmdb/lmdb_stubs.c:23:10: fatal error: 'alloca.h' file not found
# #include <alloca.h>
#          ^~~~~~~~~~
# 1 error generated.


<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build dune 3.21.0
+- 
+- The following changes have been performed (the rest was aborted)
| - install base-bytes      base
| - install conf-ncurses    1
| - install conf-pkg-config 4
| - install ocamlfind       1.9.8
| - install seq             base
+- 
# To update the current shell environment, run: eval $(opam env)


The former state can be restored with:
/usr/bin/opam switch import "/home/opam/.opam/4.14.2/.opam-switch/backup/state-20260116185723.export"
"opam install $DEPS" failed with exit status 31
2026-01-16 18:58.41: Job failed: Failed: Build failed