(for PR #28931)
2025-12-09 23:30.56: New job: build lmdb.1.0, using opam dev
from https://github.com/ocaml/opam-repository.git#refs/pull/28931/head (42abe0a86f7cded95c96cd2196636ef0bcc58ec7)
on centos-10-ocaml-5.4/amd64
To reproduce locally:
cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/28931/head" && git reset --hard 42abe0a8
git fetch origin master
git merge --no-edit d684c896eb6f7e6030d6ee65338d9db22a612f01
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:centos-10-ocaml-5.4@sha256:7243a4642175aeabd19bf5427e37df29cd2f81e7406966a632d4363191b32c99
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN opam option solver=builtin-0install && opam config report
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMPRECISETRACKING="1"
ENV CI="true"
ENV OPAM_REPO_CI="true"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn lmdb.1.0 1.0
RUN opam reinstall lmdb.1.0; \
res=$?; \
test "$res" != 31 && exit "$res"; \
export OPAMCLI=2.0; \
build_dir=$(opam var prefix)/.opam-switch/build; \
failed=$(ls "$build_dir"); \
partial_fails=""; \
for pkg in $failed; do \
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"centos-10\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'lmdb.1.0' && partial_fails="$partial_fails $pkg"; \
done; \
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
exit 1
END-OF-DOCKERFILE
docker build -f ../Dockerfile .
2025-12-09 23:30.56: Using cache hint "ocaml/opam:centos-10-ocaml-5.4@sha256:7243a4642175aeabd19bf5427e37df29cd2f81e7406966a632d4363191b32c99-lmdb.1.0-42abe0a86f7cded95c96cd2196636ef0bcc58ec7"
2025-12-09 23:30.56: Using OBuilder spec:
((from ocaml/opam:centos-10-ocaml-5.4@sha256:7243a4642175aeabd19bf5427e37df29cd2f81e7406966a632d4363191b32c99)
(user (uid 1000) (gid 1000))
(workdir /home/opam)
(run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
(run (network host)
(shell "opam init --reinit --config .opamrc-sandbox -ni"))
(run (shell "opam option solver=builtin-0install && opam config report"))
(env OPAMDOWNLOADJOBS 1)
(env OPAMERRLOGLEN 0)
(env OPAMPRECISETRACKING 1)
(env CI true)
(env OPAM_REPO_CI true)
(run (shell "rm -rf opam-repository/"))
(copy (src .) (dst opam-repository/))
(run (shell "opam repository set-url --strict default opam-repository/"))
(run (network host)
(shell "opam update --depexts || true"))
(run (shell "opam pin add -k version -yn lmdb.1.0 1.0"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall lmdb.1.0;\
\n res=$?;\
\n test \"$res\" != 31 && exit \"$res\";\
\n export OPAMCLI=2.0;\
\n build_dir=$(opam var prefix)/.opam-switch/build;\
\n failed=$(ls \"$build_dir\");\
\n partial_fails=\"\";\
\n for pkg in $failed; do\
\n if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"centos-10\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'lmdb.1.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
)
2025-12-09 23:30.56: Waiting for resource in pool OCluster
2025-12-09 23:34.55: Waiting for worker…
2025-12-09 23:38.40: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files: 99% (18896/18998)
Updating files: 100% (18998/18998)
Updating files: 100% (18998/18998), done.
HEAD is now at d684c896eb Merge pull request #29052 from balat/maintenance
Auto-merging packages/lmdb/lmdb.1.0/opam
Merge made by the 'ort' strategy.
packages/lmdb/lmdb.1.0/opam | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(from ocaml/opam:centos-10-ocaml-5.4@sha256:7243a4642175aeabd19bf5427e37df29cd2f81e7406966a632d4363191b32c99)
2025-12-09 23:38.46 ---> using "585d31324eba99552d5ca80f85a48e7e587f9391a47cecb2ad15336f5e2b2ea6" from cache
/: (user (uid 1000) (gid 1000))
/: (workdir /home/opam)
/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-12-09 23:38.46 ---> using "06f5e1785665d6a8b734eeb6687bc43b944254312939b57474eb61968aae8413" from cache
/home/opam: (run (network host)
(shell "opam init --reinit --config .opamrc-sandbox -ni"))
Configuring from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally 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
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-12-09 23:38.46 ---> using "2f55d7d41ecbcc95fa9baf4c23c15a9633f57a8975ea753556d57bff639600e0" from cache
/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version 2.5.0
# self-upgrade no
# system arch=x86_64 os=linux os-distribution=centos os-version=10
# solver builtin-0install
# install-criteria -changed,-count[avoid-version,solution]
# upgrade-criteria -count[avoid-version,solution]
# jobs 71
# repositories 1 (version-controlled)
# pinned 1 (version)
# current-switch 5.4
# invariant ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native true
# ocaml:native-tools true
# ocaml:native-dynlink true
# ocaml:stubsdir /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled false
# ocaml:compiler 5.4.0
2025-12-09 23:38.46 ---> using "c0218fb713d1f66c3b2b82409b9b27b710863f7b2ad2b099aa86e7ebd1a21243" from cache
/home/opam: (env OPAMDOWNLOADJOBS 1)
/home/opam: (env OPAMERRLOGLEN 0)
/home/opam: (env OPAMPRECISETRACKING 1)
/home/opam: (env CI true)
/home/opam: (env OPAM_REPO_CI true)
/home/opam: (run (shell "rm -rf opam-repository/"))
2025-12-09 23:38.46 ---> using "b10f3e05dedc83bf1263bbe8618765e626d7c07f169adbee092de8c8660663b3" from cache
/home/opam: (copy (src .) (dst opam-repository/))
2025-12-09 23:38.55 ---> saved as "4301ef03354f30e5198c78a927aa59e52c3c714a4fb5d1fb4ae799460658c333"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-12-09 23:39.16 ---> saved as "ed7759fc7e07dc44df4b4545f0f98e801a679696ec8e40f03443c1888a1dae1f"
/home/opam: (run (network host)
(shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- CentOS Stream 10 - BaseOS 117 kB/s | 15 kB 00:00
- CentOS Stream 10 - BaseOS 11 MB/s | 6.8 MB 00:00
- CentOS Stream 10 - AppStream 114 kB/s | 15 kB 00:00
- CentOS Stream 10 - AppStream 5.7 MB/s | 3.5 MB 00:00
- CentOS Stream 10 - CRB 118 kB/s | 14 kB 00:00
- CentOS Stream 10 - CRB 3.2 MB/s | 774 kB 00:00
- CentOS Stream 10 - Extras packages 117 kB/s | 14 kB 00:00
- CentOS Stream 10 - Extras packages 53 kB/s | 8.1 kB 00:00
- Metadata cache created.
2025-12-09 23:39.28 ---> saved as "7cd1759da1414ecc2535347aa5a279b3a8f8c3eb163c30423c9237bf838698f2"
/home/opam: (run (shell "opam pin add -k version -yn lmdb.1.0 1.0"))
lmdb is now pinned to version 1.0
2025-12-09 23:39.29 ---> saved as "77d7471dee1671d5aea5e3749a02467a22d6fd240afb283376c7b70252f53144"
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall lmdb.1.0;\
\n res=$?;\
\n test \"$res\" != 31 && exit \"$res\";\
\n export OPAMCLI=2.0;\
\n build_dir=$(opam var prefix)/.opam-switch/build;\
\n failed=$(ls \"$build_dir\");\
\n partial_fails=\"\";\
\n for pkg in $failed; do\
\n if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"centos-10\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'lmdb.1.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
lmdb.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 6 packages
- install bigstringaf 0.10.0 [required by lmdb]
- install conf-pkg-config 4 [required by lmdb]
- install csexp 1.5.2 [required by dune-configurator]
- install dune 3.20.2 [required by lmdb]
- install dune-configurator 3.20.2 [required by lmdb]
- install lmdb 1.0 (pinned)
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigstringaf.0.10.0 (cached)
-> retrieved csexp.1.5.2 (cached)
-> installed conf-pkg-config.4
-> retrieved dune.3.20.2, dune-configurator.3.20.2 (cached)
-> retrieved lmdb.1.0 (cached)
-> installed dune.3.20.2
-> installed csexp.1.5.2
-> installed dune-configurator.3.20.2
-> installed bigstringaf.0.10.0
[ERROR] The compilation of lmdb.1.0 failed at "dune build -p lmdb -j 71".
#=== ERROR while compiling lmdb.1.0 ===========================================#
# context 2.5.0 | linux/x86_64 | ocaml-base-compiler.5.4.0 | pinned(https://github.com/Drup/ocaml-lmdb/archive/1.0.tar.gz)
# path ~/.opam/5.4/.opam-switch/build/lmdb.1.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lmdb -j 71
# exit-code 1
# env-file ~/.opam/log/lmdb-7-50e7e8.env
# output-file ~/.opam/log/lmdb-7-50e7e8.out
### output ###
# (cd _build/default && /home/opam/.opam/5.4/bin/ocamlc.opt -w -40 -safe-string -thread -g -bin-annot -bin-annot-occurrences -I src/.lmdb.objs/byte -I /home/opam/.opam/5.4/lib/bigstringaf -no-alias-deps -open Lmdb__ -o src/.lmdb.objs/byte/lmdb__Lmdb_bindings.cmi -c -intf src/lmdb_bindings.mli)
# File "_none_", line 1:
# Alert ocaml_deprecated_auto_include:
# OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
# automatically added to the search path, but you should add -I +unix to the
# command-line to silence this alert (e.g. by adding unix to the list of
# libraries in your dune file, or adding use_unix to your _tags file for
# ocamlbuild, or using -package unix for ocamlfind).
# (cd _build/default && /home/opam/.opam/5.4/bin/ocamlc.opt -w -40 -safe-string -thread -g -bin-annot -bin-annot-occurrences -I src/.lmdb.objs/byte -I /home/opam/.opam/5.4/lib/bigstringaf -cmi-file src/.lmdb.objs/byte/lmdb__Lmdb_bindings.cmi -no-alias-deps -open Lmdb__ -o src/.lmdb.objs/byte/lmdb__Lmdb_bindings.cmo -c -impl src/lmdb_bindings.ml)
# File "_none_", line 1:
# Alert ocaml_deprecated_auto_include:
# OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
# automatically added to the search path, but you should add -I +unix to the
# command-line to silence this alert (e.g. by adding unix to the list of
# libraries in your dune file, or adding use_unix to your _tags file for
# ocamlbuild, or using -package unix for ocamlfind).
# (cd _build/default && /home/opam/.opam/5.4/bin/ocamlc.opt -w -40 -safe-string -thread -g -bin-annot -bin-annot-occurrences -I src/.lmdb.objs/byte -I /home/opam/.opam/5.4/lib/bigstringaf -no-alias-deps -open Lmdb__ -o src/.lmdb.objs/byte/lmdb.cmi -c -intf src/lmdb.mli)
# File "_none_", line 1:
# Alert ocaml_deprecated_auto_include:
# OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
# automatically added to the search path, but you should add -I +unix to the
# command-line to silence this alert (e.g. by adding unix to the list of
# libraries in your dune file, or adding use_unix to your _tags file for
# ocamlbuild, or using -package unix for ocamlfind).
# (cd _build/default && /home/opam/.opam/5.4/bin/ocamlopt.opt -w -40 -safe-string -thread -g -I src/.lmdb.objs/byte -I src/.lmdb.objs/native -I /home/opam/.opam/5.4/lib/bigstringaf -cmi-file src/.lmdb.objs/byte/lmdb__Lmdb_bindings.cmi -no-alias-deps -open Lmdb__ -o src/.lmdb.objs/native/lmdb__Lmdb_bindings.cmx -c -impl src/lmdb_bindings.ml)
# File "_none_", line 1:
# Alert ocaml_deprecated_auto_include:
# OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
# automatically added to the search path, but you should add -I +unix to the
# command-line to silence this alert (e.g. by adding unix to the list of
# libraries in your dune file, or adding use_unix to your _tags file for
# ocamlbuild, or using -package unix for ocamlfind).
# (cd _build/default && /home/opam/.opam/5.4/bin/ocamlc.opt -w -40 -safe-string -thread -g -bin-annot -bin-annot-occurrences -I src/.lmdb.objs/byte -I /home/opam/.opam/5.4/lib/bigstringaf -cmi-file src/.lmdb.objs/byte/lmdb.cmi -no-alias-deps -open Lmdb__ -o src/.lmdb.objs/byte/lmdb.cmo -c -impl src/lmdb.ml)
# File "_none_", line 1:
# Alert ocaml_deprecated_auto_include:
# OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
# automatically added to the search path, but you should add -I +unix to the
# command-line to silence this alert (e.g. by adding unix to the list of
# libraries in your dune file, or adding use_unix to your _tags file for
# ocamlbuild, or using -package unix for ocamlfind).
# File "dune", lines 6-8, characters 0-70:
# 6 | (rule
# 7 | (targets cflags.sexp clibs.sexp)
# 8 | (action (run ./discover.bc)))
# (cd _build/default && ./discover.bc)
# which: pkgconf
# -> found: /usr/bin/pkgconf
# run: /usr/bin/pkgconf --personality x86_64-pc-linux-gnu --print-errors lmdb
# -> process exited with code 1
# -> stdout:
# -> stderr:
# | Package lmdb was not found in the pkg-config search path.
# | Perhaps you should add the directory containing `lmdb.pc'
# | to the PKG_CONFIG_PATH environment variable
# | Package 'lmdb', required by 'virtual:world', not found
# Fatal error: exception Failure("lmdb.h not found")
# (cd _build/default && /home/opam/.opam/5.4/bin/ocamlopt.opt -w -40 -safe-string -thread -g -I src/.lmdb.objs/byte -I src/.lmdb.objs/native -I /home/opam/.opam/5.4/lib/bigstringaf -cmi-file src/.lmdb.objs/byte/lmdb.cmi -no-alias-deps -open Lmdb__ -o src/.lmdb.objs/native/lmdb.cmx -c -impl src/lmdb.ml)
# File "_none_", line 1:
# Alert ocaml_deprecated_auto_include:
# OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
# automatically added to the search path, but you should add -I +unix to the
# command-line to silence this alert (e.g. by adding unix to the list of
# libraries in your dune file, or adding use_unix to your _tags file for
# ocamlbuild, or using -package unix for ocamlfind).
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build lmdb 1.0
+-
+- The following changes have been performed
| - install bigstringaf 0.10.0
| - install conf-pkg-config 4
| - install csexp 1.5.2
| - install dune 3.20.2
| - install dune-configurator 3.20.2
+-
# 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/5.4/.opam-switch/backup/state-20251209233931.export"
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
"/usr/bin/env" "bash" "-c" "opam reinstall lmdb.1.0;
res=$?;
test "$res" != 31 && exit "$res";
export OPAMCLI=2.0;
build_dir=$(opam var prefix)/.opam-switch/build;
failed=$(ls "$build_dir");
partial_fails="";
for pkg in $failed; do
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"centos-10\""; then
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
fi;
test "$pkg" != 'lmdb.1.0' && partial_fails="$partial_fails $pkg";
done;
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
exit 1" failed with exit status 1
2025-12-09 23:40.39: Job failed: Failed: Build failed
2025-12-09 23:40.39: Log analysis:
2025-12-09 23:40.39: >>>
[ERROR] The compilation of lmdb.1.0 failed at "dune build -p lmdb -j 71".
(score = 20)
2025-12-09 23:40.39: >>>
# Fatal error: exception Failure("lmdb.h not found")
(score = 35)
2025-12-09 23:40.39: exception Failure("lmdb.h not found")