(for PR #29159)

2026-01-21 12:32.25: New job: build ortools_solvers.9.14.0, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29159/head (54e99e25df564b1568f413be7f61592dcad00735)
                              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/29159/head" && git reset --hard 54e99e25
git fetch origin master
git merge --no-edit 10a02a697b08f6d78a6c4c2cb9a76136afc7776d
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:9f4103f7d94b5db36adc57e1243e7aafbc77118b03f3c64c9d783f6875957bd3
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN 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 depext -u || true
RUN opam pin add -k version -yn ortools_solvers.9.14.0 9.14.0
RUN opam depext ortools_solvers.9.14.0 && opam reinstall ortools_solvers.9.14.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 "\"debian-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ortools_solvers.9.14.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 .

2026-01-21 12:32.25: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:9f4103f7d94b5db36adc57e1243e7aafbc77118b03f3c64c9d783f6875957bd3-ortools_solvers.9.14.0-54e99e25df564b1568f413be7f61592dcad00735"
2026-01-21 12:32.25: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:9f4103f7d94b5db36adc57e1243e7aafbc77118b03f3c64c9d783f6875957bd3)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "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 depext -u || true"))
 (run (shell "opam pin add -k version -yn ortools_solvers.9.14.0 9.14.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext ortools_solvers.9.14.0 && opam reinstall ortools_solvers.9.14.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 \"\\\"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\" != 'ortools_solvers.9.14.0' && 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-21 12:32.25: Waiting for resource in pool OCluster
2026-01-21 12:32.27: Waiting for worker…
2026-01-21 12:35.01: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at 10a02a697b Merge pull request #29249 from panglesd/release-slipshow-v0.8.0
Merge made by the 'ort' strategy.
 packages/ortools/ortools.9.14.0/opam               | 47 +++++++++++++++
 .../ortools_solvers/ortools_solvers.9.14.0/opam    | 68 ++++++++++++++++++++++
 2 files changed, 115 insertions(+)
 create mode 100644 packages/ortools/ortools.9.14.0/opam
 create mode 100644 packages/ortools_solvers/ortools_solvers.9.14.0/opam

(from ocaml/opam:debian-13-ocaml-5.4@sha256:9f4103f7d94b5db36adc57e1243e7aafbc77118b03f3c64c9d783f6875957bd3)
2026-01-21 12:35.03 ---> using "85f72cf1fe4e2d7307f2dbfaf295ab13f00915a95088b79c0422ecbd77383032" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2026-01-21 12:35.04 ---> saved as "ad8b14945cf2cfa97b9c2c5e09cfca8ccdf176409ddb00410330bdb6f8af304b"

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2026-01-21 12:36.20 ---> saved as "e6a736a5fabf8a17ede1caa5d201e5b7966dd47fabf18aace81eaa3a451a39ce"

/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version      2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=13
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              71
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    5.4
2026-01-21 12:36.20 ---> saved as "42831961fa03edc12f2f6d094a94410fb08fafdde56f78c00a8762ca83acb9c6"

/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-21 12:36.27 ---> saved as "e0303ecce13492a44beffc3ccd0fded01db148c68e27e0d8ab2365be439a1036"

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-21 12:36.58 ---> saved as "5f02f09e6d33eff2e53c0afb12eac066cffa72700b09b15e37db100f94a647b1"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2026-01-21 12:37.10 ---> saved as "3fb8be5605c63d1eaacc7786d3bc4e72d0f8d83ef6042a070b7648cad82789cb"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "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 [96.3 kB]
Fetched 9998 kB in 1s (7027 kB/s)
Reading package lists...
# OS package update successful
2026-01-21 12:37.14 ---> saved as "1656903b4638d946c8f69c5752475c50218f68773189606c94479528f6ac07c8"

/home/opam: (run (shell "opam pin add -k version -yn ortools_solvers.9.14.0 9.14.0"))
ortools_solvers is now pinned to version 9.14.0
2026-01-21 12:37.15 ---> saved as "6ac62213bd5c6b8fc88028b72034c349f91cca88bf6d57d4c7225e1180480f40"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext ortools_solvers.9.14.0 && opam reinstall ortools_solvers.9.14.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 \"\\\"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\" != 'ortools_solvers.9.14.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
ortools_solvers.9.14.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install dune              3.21.0  [required by ortools_solvers]
  - install stdlib-shims      0.3.0   [required by pbrt]
  - install csexp             1.5.2   [required by dune-configurator]
  - install pbrt              4.0     [required by ortools]
  - install dune-configurator 3.21.0  [required by ortools_solvers]
  - install ortools           9.14.0  [required by ortools_solvers]
  - install ortools_solvers   9.14.0*
===== 7 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[csexp.1.5.2] found in cache
[dune.3.21.0] found in cache
[dune-configurator.3.21.0] found in cache
[ortools.9.14.0] found in cache
[ortools_solvers.9.14.0] found in cache
[pbrt.4.0] found in cache
[stdlib-shims.0.3.0] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dune.3.21.0
-> installed csexp.1.5.2
-> installed stdlib-shims.0.3.0
-> installed pbrt.4.0
-> installed dune-configurator.3.21.0
-> installed ortools.9.14.0
[ERROR] The compilation of ortools_solvers failed at "/home/opam/.opam/opam-init/hooks/sandbox.sh build dune build -p ortools_solvers -j 71 @install".

#=== ERROR while compiling ortools_solvers.9.14.0 =============================#
# context              2.0.10 | linux/x86_64 | ocaml-base-compiler.5.4.0 | pinned(https://github.com/INRIA/ocaml-ortools/releases/download/9.14.0/ortools-9.14.0.tbz)
# path                 ~/.opam/5.4/.opam-switch/build/ortools_solvers.9.14.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p ortools_solvers -j 71 @install
# exit-code            1
# env-file             ~/.opam/log/ortools_solvers-44-dc82fa.env
# output-file          ~/.opam/log/ortools_solvers-44-dc82fa.out
### output ###
# File "ortools_solvers/dune", lines 1-11, characters 0-281:
#  1 | (library
#  2 |   (name ortools_solvers)
#  3 |   (public_name ortools_solvers)
#  4 |   (synopsis "Call Google OR-Tools solvers")
#  5 |   (modules ortools_solvers)
#  6 |   (foreign_stubs
#  7 |     (language c)
#  8 |     (names ocaml_ortools_solvers))
#  9 |   (c_library_flags (:include discover/flags.sexp))
# 10 |   (libraries ortools)
# 11 | )
# (cd _build/default && /home/opam/.opam/5.4/bin/ocamlmklib -g -o ortools_solvers/ortools_solvers_stubs ortools_solvers/ocaml_ortools_solvers.o -ldopt -l:libortools.so.9)
# /usr/bin/ld: cannot find -l:libortools.so.9: No such file or directory
# collect2: error: ld returned 1 exit status



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build ortools_solvers 9.14.0
+- 
+- The following changes have been performed
| - install csexp             1.5.2
| - install dune              3.21.0
| - install dune-configurator 3.21.0
| - install ortools           9.14.0
| - install pbrt              4.0
| - install stdlib-shims      0.3.0
+- 
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    opam switch import "/home/opam/.opam/5.4/.opam-switch/backup/state-20260121123721.export"
A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.
"/usr/bin/env" "bash" "-c" "opam depext ortools_solvers.9.14.0 && opam reinstall ortools_solvers.9.14.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 "\"debian-13\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'ortools_solvers.9.14.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
2026-01-21 12:38.12: Job failed: Failed: Build failed
2026-01-21 12:38.12: Log analysis:
2026-01-21 12:38.12: >>> 
[ERROR] The compilation of ortools_solvers failed at "/home/opam/.opam/opam-init/hooks/sandbox.sh build dune build -p ortools_solvers -j 71 @install".
 (score = 20)
2026-01-21 12:38.12: >>> 
# collect2: error: ld returned 1 exit status
 (score = 30)
2026-01-21 12:38.12: >>> 
A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.
 (score = 100)
2026-01-21 12:38.12: [SKIP] Failure ignored