(for PR #29202)

2026-01-14 00:57.59: New job: build conf-dwarfutils.1, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29202/head (4f48a01f4520ed3840d1d67ec392d24869f36ff1)
                              on debian-13-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/29202/head" && git reset --hard 4f48a01f
git fetch origin master
git merge --no-edit df0b753b90c59d2c65314c8e4154cd110d69be87
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:fc4475154a81e45c7a4fe10ae1ce9017b16705b50ae99ec37ca5504484b8ff17
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.1 /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 conf-dwarfutils.1 1
RUN opam reinstall conf-dwarfutils.1; \
    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 "\"debian-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-dwarfutils.1' && 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 .

2026-01-14 00:57.59: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:fc4475154a81e45c7a4fe10ae1ce9017b16705b50ae99ec37ca5504484b8ff17-conf-dwarfutils.1-4f48a01f4520ed3840d1d67ec392d24869f36ff1"
2026-01-14 00:57.59: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:fc4475154a81e45c7a4fe10ae1ce9017b16705b50ae99ec37ca5504484b8ff17)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /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 conf-dwarfutils.1 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-dwarfutils.1;\
             \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 \"\\\"debian-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'conf-dwarfutils.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-01-14 00:57.59: Waiting for resource in pool OCluster
2026-01-14 00:57.59: Waiting for worker…
2026-01-14 00:59.48: Got resource from pool OCluster
Building on odawa.caelum.ci.dev
All commits already cached
HEAD is now at df0b753b90 Merge pull request #29180 from dx3mod/master
Merge made by the 'ort' strategy.
 packages/conf-dwarfutils/conf-dwarfutils.1/opam | 27 +++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 packages/conf-dwarfutils/conf-dwarfutils.1/opam

(from ocaml/opam:debian-13-ocaml-5.4@sha256:fc4475154a81e45c7a4fe10ae1ce9017b16705b50ae99ec37ca5504484b8ff17)
2026-01-14 00:59.49 ---> using "03f0951594c938350775771f8c8fede6d107f2d2eee244220b7b8b4b1567de6e" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2026-01-14 00:59.50 ---> saved as "e5daa7f2f8eece6c143738de5f55a81e70941f5b47a1d4fa93a64513c27d0e02"

/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 development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.1, 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
2026-01-14 01:00.46 ---> saved as "221c91c7479b930afdd7cea6a593c198ed75ec46c826ef7a6be8e04e1479c344"

/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.1.6 (263921263e1f745613e2882745114b7b08f3608b) 
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=13
# solver               builtin-0install
# install-criteria     
# upgrade-criteria     
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# 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
2026-01-14 01:00.48 ---> saved as "b80c8c35c0b4942107dcf982f2c5eeb8f4b0e4878207221b9ddd0909a2a0c471"

/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/"))
2026-01-14 01:01.02 ---> saved as "37b1f6894d96c20a36ee3dd325aaf90290590122688b5ab169ba89bbbc08d700"

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-14 01:01.11 ---> saved as "4852cf7cc92b8a9cde8f041664a263bf27022d2a123d9123958a4f0c1321280c"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-14 01:01.20 ---> saved as "777dc598cd8f3e85d04590299563285003a02ca6ee25f65cca22150a9692ec5c"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9670 kB]
- Get:5 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [95.5 kB]
- Fetched 9997 kB in 1s (8049 kB/s)
- Reading package lists...
2026-01-14 01:01.23 ---> saved as "178e7fe33b8e2d00083c3a2930ea6fea2c0145cd8fa23e1c60aea2f786e575e8"

/home/opam: (run (shell "opam pin add -k version -yn conf-dwarfutils.1 1"))
conf-dwarfutils is now pinned to version 1
2026-01-14 01:01.23 ---> saved as "e23c43d6093b72d92735c3bcc74f7b67b079c476256f1c52c18842445a018a42"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-dwarfutils.1;\
                        \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 \"\\\"debian-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'conf-dwarfutils.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
conf-dwarfutils.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install conf-pkg-config 4  [required by conf-dwarfutils]
  - install conf-dwarfutils 1*
===== 2 to install =====

The following system packages will first need to be installed:
    dwarfdump libdwarf-dev libdwarf1 pkg-config

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "dwarfdump" "libdwarf-dev" "libdwarf1" "pkg-config"
- Selecting previously unselected package libdwarf1:amd64.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 20653 files and directories currently installed.)
- Preparing to unpack .../0-libdwarf1_1%3a0.11.1-1_amd64.deb ...
- Unpacking libdwarf1:amd64 (1:0.11.1-1) ...
- Selecting previously unselected package dwarfdump.
- Preparing to unpack .../1-dwarfdump_1%3a0.11.1-1_amd64.deb ...
- Unpacking dwarfdump (1:0.11.1-1) ...
- Selecting previously unselected package libdwarf-dev:amd64.
- Preparing to unpack .../2-libdwarf-dev_1%3a0.11.1-1_amd64.deb ...
- Unpacking libdwarf-dev:amd64 (1:0.11.1-1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../3-libpkgconf3_1.8.1-4_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-4) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../4-pkgconf-bin_1.8.1-4_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-4) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../5-pkgconf_1.8.1-4_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-4) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../6-pkg-config_1.8.1-4_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-4) ...
- Setting up libdwarf1:amd64 (1:0.11.1-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-4) ...
- Setting up pkgconf-bin (1.8.1-4) ...
- Setting up libdwarf-dev:amd64 (1:0.11.1-1) ...
- Setting up dwarfdump (1:0.11.1-1) ...
- Setting up pkgconf:amd64 (1.8.1-4) ...
- Setting up pkg-config:amd64 (1.8.1-4) ...
- Processing triggers for libc-bin (2.41-12) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-pkg-config.4
[ERROR] The compilation of conf-dwarfutils.1 failed at "pkg-config --print-errors --exists libdwarf".

#=== ERROR while compiling conf-dwarfutils.1 ==================================#
# context              2.1.6 | linux/x86_64 | ocaml-base-compiler.5.4.0 | pinned
# path                 ~/.opam/5.4/.opam-switch/build/conf-dwarfutils.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build pkg-config --print-errors --exists libdwarf
# exit-code            1
# env-file             ~/.opam/log/conf-dwarfutils-7-479332.env
# output-file          ~/.opam/log/conf-dwarfutils-7-479332.out
### output ###
# Package zlib was not found in the pkg-config search path.
# Perhaps you should add the directory containing `zlib.pc'
# to the PKG_CONFIG_PATH environment variable
# Package 'zlib', required by 'libdwarf', not found



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build conf-dwarfutils 1
+- 
+- The following changes have been performed
| - install conf-pkg-config 4
+- 
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/5.4/.opam-switch/backup/state-20260114010124.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 conf-dwarfutils.1;
        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 "\"debian-13\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-dwarfutils.1' && 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
2026-01-14 01:01.41: Job failed: Failed: Build failed
2026-01-14 01:01.41: Log analysis:
2026-01-14 01:01.41: >>> 
[ERROR] The compilation of conf-dwarfutils.1 failed at "pkg-config --print-errors --exists libdwarf".
 (score = 20)
2026-01-14 01:01.41: The compilation of conf-dwarfutils.1 failed at "pkg-config --print-errors --exists libdwarf".