(for PR #29883)

2026-05-08 18:45.20: New job: build lstar.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29883/head (e5ab047b033e89fa4026a3a78b062664a0cf8a36)
                              on ubuntu-24.04-ocaml-4.14/riscv64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29883/head" && git reset --hard e5ab047b
git fetch origin master
git merge --no-edit fc08333d1ba03c1ffbc960479a92aa94085c5f78
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:7c14259dd00a0ddfaddbad94f743e76dac5843f7cc0154a40be7e76997c09f2e
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 lstar.1.0 1.0
RUN opam reinstall lstar.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 "\"ubuntu-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'lstar.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 .

2026-05-08 18:45.20: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:7c14259dd00a0ddfaddbad94f743e76dac5843f7cc0154a40be7e76997c09f2e-lstar.1.0-e5ab047b033e89fa4026a3a78b062664a0cf8a36"
2026-05-08 18:45.20: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:7c14259dd00a0ddfaddbad94f743e76dac5843f7cc0154a40be7e76997c09f2e)
 (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 lstar.1.0 1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall lstar.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 \"\\\"ubuntu-24.04\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'lstar.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"))
)

2026-05-08 18:45.20: Waiting for resource in pool OCluster
2026-05-08 18:45.20: Waiting for worker…
2026-05-09 00:58.59: Got resource from pool OCluster
Building on riscv-bm-04.sw.ci.dev
All commits already cached
Updating files:  14% (2641/17840)
Updating files:  15% (2676/17840)
Updating files:  16% (2855/17840)
Updating files:  17% (3033/17840)
Updating files:  18% (3212/17840)
Updating files:  19% (3390/17840)
Updating files:  20% (3568/17840)
Updating files:  21% (3747/17840)
Updating files:  22% (3925/17840)
Updating files:  23% (4104/17840)
Updating files:  24% (4282/17840)
Updating files:  25% (4460/17840)
Updating files:  26% (4639/17840)
Updating files:  27% (4817/17840)
Updating files:  28% (4996/17840)
Updating files:  28% (5143/17840)
Updating files:  29% (5174/17840)
Updating files:  30% (5352/17840)
Updating files:  31% (5531/17840)
Updating files:  32% (5709/17840)
Updating files:  33% (5888/17840)
Updating files:  34% (6066/17840)
Updating files:  35% (6244/17840)
Updating files:  36% (6423/17840)
Updating files:  37% (6601/17840)
Updating files:  38% (6780/17840)
Updating files:  39% (6958/17840)
Updating files:  40% (7136/17840)
Updating files:  41% (7315/17840)
Updating files:  42% (7493/17840)
Updating files:  43% (7672/17840)
Updating files:  43% (7745/17840)
Updating files:  44% (7850/17840)
Updating files:  45% (8028/17840)
Updating files:  46% (8207/17840)
Updating files:  47% (8385/17840)
Updating files:  48% (8564/17840)
Updating files:  49% (8742/17840)
Updating files:  50% (8920/17840)
Updating files:  51% (9099/17840)
Updating files:  52% (9277/17840)
Updating files:  53% (9456/17840)
Updating files:  54% (9634/17840)
Updating files:  55% (9812/17840)
Updating files:  56% (9991/17840)
Updating files:  56% (10047/17840)
Updating files:  57% (10169/17840)
Updating files:  58% (10348/17840)
Updating files:  59% (10526/17840)
Updating files:  60% (10704/17840)
Updating files:  61% (10883/17840)
Updating files:  62% (11061/17840)
Updating files:  63% (11240/17840)
Updating files:  64% (11418/17840)
Updating files:  65% (11596/17840)
Updating files:  66% (11775/17840)
Updating files:  67% (11953/17840)
Updating files:  68% (12132/17840)
Updating files:  68% (12298/17840)
Updating files:  69% (12310/17840)
Updating files:  70% (12488/17840)
Updating files:  71% (12667/17840)
Updating files:  72% (12845/17840)
Updating files:  73% (13024/17840)
Updating files:  74% (13202/17840)
Updating files:  75% (13380/17840)
Updating files:  76% (13559/17840)
Updating files:  77% (13737/17840)
Updating files:  78% (13916/17840)
Updating files:  79% (14094/17840)
Updating files:  80% (14272/17840)
Updating files:  81% (14451/17840)
Updating files:  81% (14525/17840)
Updating files:  82% (14629/17840)
Updating files:  83% (14808/17840)
Updating files:  84% (14986/17840)
Updating files:  85% (15164/17840)
Updating files:  86% (15343/17840)
Updating files:  87% (15521/17840)
Updating files:  88% (15700/17840)
Updating files:  89% (15878/17840)
Updating files:  90% (16056/17840)
Updating files:  91% (16235/17840)
Updating files:  92% (16413/17840)
Updating files:  93% (16592/17840)
Updating files:  94% (16770/17840)
Updating files:  94% (16858/17840)
Updating files:  95% (16948/17840)
Updating files:  96% (17127/17840)
Updating files:  97% (17305/17840)
Updating files:  98% (17484/17840)
Updating files:  99% (17662/17840)
Updating files: 100% (17840/17840)
Updating files: 100% (17840/17840), done.
HEAD is now at fc08333d1b Merge pull request #29875 from ocaml/mseri-patch-3
Updating fc08333d1b..e5ab047b03
Fast-forward
 packages/lstar-rocq/lstar-rocq.1.0/opam | 39 +++++++++++++++++++++++++++++++++
 packages/lstar/lstar.1.0/opam           | 38 ++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 packages/lstar-rocq/lstar-rocq.1.0/opam
 create mode 100644 packages/lstar/lstar.1.0/opam

(from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:7c14259dd00a0ddfaddbad94f743e76dac5843f7cc0154a40be7e76997c09f2e)
2026-05-09 00:59.10 ---> using "f5a738c213d32470a51152765a06f09318b21cae9bd46797cde2f1e8842f9ec7" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-05-09 00:59.10 ---> using "d4395deffb818ee35463f2b44d45722b1143283ce823f89e3489772f643aca6d" 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
2026-05-09 00:59.10 ---> using "3430e00ee832de3b8d35ba550fcad1f0f2a2ff72022fda26931b9a3d7fb92291" 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.1
# self-upgrade         no
# system               arch=riscv64 os=linux os-distribution=ubuntu os-version=24.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 3
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.3"}]
# compiler-packages    ocaml-base-compiler.4.14.3, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.3
2026-05-09 00:59.10 ---> using "facb7259d591c0d59be9da1b44443e47814e2461c066eb2c51539a1a7193dcef" 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/"))
2026-05-09 00:59.10 ---> using "227305c8d5a1567dae8444312696a7a50c34552f0b225591a95266060d406f37" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-05-09 00:59.36 ---> saved as "299887118448cbc82ac9288baa322283bc1573058c20d889b22404cb1effc191"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-05-09 01:01.07 ---> saved as "57b9dd94bfab28c2389bff41c8b2259a5007e90674f7db383c84fd601a664374"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
- Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
- Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
- Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
- Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe riscv64 Packages [1600 kB]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/main riscv64 Packages [965 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-backports/main riscv64 Packages [48.9 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-backports/universe riscv64 Packages [29.3 kB]
- Get:9 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [1123 kB]
- Get:10 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [648 kB]
- Fetched 4793 kB in 9s (513 kB/s)
- Reading package lists...
- 
2026-05-09 01:01.23 ---> saved as "eec4e8b5b72acaf8441038bc8ae55dc3dd2d9bb771392d16280ca435e03fbab8"

/home/opam: (run (shell "opam pin add -k version -yn lstar.1.0 1.0"))
lstar is now pinned to version 1.0
2026-05-09 01:01.26 ---> saved as "2e7c3bc2f40961bcd18ef7a57e25b89681a715ce05734b5e3320d89893d5cba0"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall lstar.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 \"\\\"ubuntu-24.04\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'lstar.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"))
lstar.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install dune  3.23.0       [required by lstar]
  - install lstar 1.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.23.0  (cached)
-> retrieved lstar.1.0  (cached)
-> installed dune.3.23.0
[ERROR] The compilation of lstar.1.0 failed at "dune build -p lstar -j 3 @install".

#=== ERROR while compiling lstar.1.0 ==========================================#
# context              2.5.1 | linux/riscv64 | ocaml-base-compiler.4.14.3 | pinned(https://github.com/CharlesAverill/lstar-rocq/releases/download/v1.0/lstar-rocq-1.0.tbz)
# path                 ~/.opam/4.14/.opam-switch/build/lstar.1.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lstar -j 3 @install
# exit-code            1
# env-file             ~/.opam/log/lstar-7-2c5a35.env
# output-file          ~/.opam/log/lstar-7-2c5a35.out
### output ###
# File "lib/dune", lines 1-5, characters 0-138:
# 1 | (rocq.extraction
# 2 |  (prelude Extraction)
# 3 |  (extracted_modules Lstar Datatypes 
# 4 |     Language Specif ListLemmas List)
# 5 |  (theories Stdlib lstar))
# Error: Program rocq not found in the tree or in PATH
#  (context: default)
# Hint: opam install rocq-runtime



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build lstar 1.0
+- 
+- The following changes have been performed
| - install dune 3.23.0
+- 
# 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/.opam-switch/backup/state-20260509010127.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 lstar.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 "\"ubuntu-24.04\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'lstar.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
2026-05-09 01:06.19: Job failed: Failed: Build failed
2026-05-09 01:06.19: Log analysis:
2026-05-09 01:06.19: >>> 
[ERROR] The compilation of lstar.1.0 failed at "dune build -p lstar -j 3 @install".
 (score = 20)
2026-05-09 01:06.19: >>> 
# Error: Program rocq not found in the tree or in PATH
 (score = 48)
2026-05-09 01:06.19: Program rocq not found in the tree or in PATH