Build:
  1. 0
2025-05-07 09:01.57: New job: test ppx_repr.0.2.1 https://github.com/ocaml/ocaml.git https://github.com/ocaml-bench/sandmark.git@main https://github.com/ocaml-bench/sandmark.git#main (5605805954a00497ed197c930641cddd580e1507) https://github.com/ocaml/ocaml.git#trunk (7f6999848c19890ecf9c9722cd9318ffcb0138da) (linux-x86_64:debian-11-5.0_opam-2.1)
Base: ocaml/opam@sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c
Opam project build using an arbitrary script

To reproduce locally:

git clone --recursive "https://github.com/ocaml/ocaml.git" -b "trunk" && cd "ocaml" && git reset --hard 7f699984
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c
# Variant: debian-11-5.0_opam-2.1
USER 1000:1000
# Update opam-repository
WORKDIR /home/opam/opam-repository
RUN (git cat-file -e 5cfbed0a5094c19375b0d6e7b243c13f677ec0d1 || git fetch origin master) && git reset -q --hard 5cfbed0a5094c19375b0d6e7b243c13f677ec0d1 && git log --no-decorate -n1 --oneline
RUN opam repo priority default 1 --set-default
RUN opam repo add rep-f6e3cab https://github.com/kit-ty-kate/opam-alpha-repository.git --set-default
RUN opam update -u
# Clone source repo https://github.com/ocaml-bench/sandmark.git@main to /testsrc/src
USER 0:0
RUN mkdir /testsrc
RUN chown 1000:1000 /testsrc
USER 1000:1000
RUN git clone https://github.com/ocaml-bench/sandmark.git /testsrc/src && git -C /testsrc/src -c advice.detachedHead=false checkout main
# Initialize project source
COPY --chown=1000:1000 . /src/
WORKDIR /src
# Create switch for compiler (compiler-7f699984)
RUN opam switch create compiler-7f699984 --empty && opam repository && opam pin add -y -k path --inplace-build ocaml-variants.$(opam show --file ocaml-variants.opam -f version) . && eval $(opam env) && ocamlrun -version
WORKDIR /testsrc/src
# Run build
RUN opam exec -- opam repo add dependencies dependencies
RUN opam exec -- rm -fr dependencies/packages/base-domains
RUN opam exec -- rm -fr dependencies/packages/dune
RUN opam exec -- opam repo
RUN opam exec -- opam update -u
RUN opam exec -- ocamlrun -version
RUN opam exec -- opam depext --update -y ppx_repr.0.2.1
RUN opam exec -- opam install --deps-only -yv ppx_repr.0.2.1
RUN opam exec -- opam remove -y ppx_repr.0.2.1
RUN opam exec -- opam install -vy ppx_repr.0.2.1

END-OF-DOCKERFILE
docker build .

2025-05-07 09:01.57: Using cache hint "https://github.com/ocaml/ocaml.git-ocaml/opam@sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c-debian-11-5.0_opam-2.1-6f753d11f13d10c06ed19258d747d5a1"
2025-05-07 09:01.57: Using OBuilder spec:
((from ocaml/opam@sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c)
 (comment "Variant: debian-11-5.0_opam-2.1")
 (user (uid 1000) (gid 1000))
 (comment "Update opam-repository")
 (workdir /home/opam/opam-repository)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "(git cat-file -e 5cfbed0a5094c19375b0d6e7b243c13f677ec0d1 || git fetch origin master) && git reset -q --hard 5cfbed0a5094c19375b0d6e7b243c13f677ec0d1 && git log --no-decorate -n1 --oneline "))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam repo priority default 1 --set-default"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam repo add rep-f6e3cab https://github.com/kit-ty-kate/opam-alpha-repository.git --set-default"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam update -u"))
 (comment "Clone source repo https://github.com/ocaml-bench/sandmark.git@main to /testsrc/src")
 (user (uid 0) (gid 0))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "mkdir /testsrc"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "chown 1000:1000 /testsrc"))
 (user (uid 1000) (gid 1000))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "git clone https://github.com/ocaml-bench/sandmark.git /testsrc/src && git -C /testsrc/src -c advice.detachedHead=false checkout main"))
 (comment "Initialize project source")
 (copy (src .) (dst /src/))
 (workdir /src)
 (comment "Create switch for compiler (compiler-7f699984)")
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam switch create compiler-7f699984 --empty && opam repository && opam pin add -y -k path --inplace-build ocaml-variants.$(opam show --file ocaml-variants.opam -f version) . && eval $(opam env) && ocamlrun -version"))
 (workdir /testsrc/src)
 (comment "Run build")
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- opam repo add dependencies dependencies"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- rm -fr dependencies/packages/base-domains"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- rm -fr dependencies/packages/dune"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- opam repo"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- opam update -u"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- ocamlrun -version"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- opam depext --update -y ppx_repr.0.2.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- opam install --deps-only -yv ppx_repr.0.2.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- opam remove -y ppx_repr.0.2.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam exec -- opam install -vy ppx_repr.0.2.1"))
)

2025-05-07 09:01.57: Waiting for resource in pool OCluster
2025-05-07 09:01.57: Waiting for worker…
2025-05-07 09:01.57: Got resource from pool OCluster
Building on x86-bm-c6.sw.ocaml.org
All commits already cached
Submodule path 'flexdll': checked out 'a47f93667bd4dcc7c7e85aa02f34446d47d28915'
Submodule path 'winpthreads': checked out 'd635af4d9bcce7f268b3e3c44f414611bbc66381'
HEAD is now at 7f6999848c update Changes after cherry-picking
Synchronizing submodule url for 'flexdll'
Synchronizing submodule url for 'winpthreads'
Cleared directory 'flexdll'
Submodule 'flexdll' (https://github.com/ocaml/flexdll.git) unregistered for path 'flexdll'
Cleared directory 'winpthreads'
Submodule 'winpthreads' (https://github.com/ocaml/winpthreads.git) unregistered for path 'winpthreads'
Submodule 'flexdll' (https://github.com/ocaml/flexdll.git) registered for path 'flexdll'
Submodule 'winpthreads' (https://github.com/ocaml/winpthreads.git) registered for path 'winpthreads'
Submodule path 'flexdll': checked out 'a47f93667bd4dcc7c7e85aa02f34446d47d28915'
Submodule path 'winpthreads': checked out 'd635af4d9bcce7f268b3e3c44f414611bbc66381'

(from ocaml/opam@sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c)
Unable to find image 'ocaml/opam@sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c' locally
docker.io/ocaml/opam@sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c: Pulling from ocaml/opam
2558a288921c: Pulling fs layer
2558a288921c: Verifying Checksum
2558a288921c: Download complete
2558a288921c: Pull complete
Digest: sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c
Status: Downloaded newer image for ocaml/opam@sha256:a8b34cad80e39eba7df013873f58ba3b22dbe504bba73d0847b7fd46ef0a5f7c
2025-05-07 09:04.11 ---> saved as "1843bbcf86cc1a58b1900837a554735031a0e3fc14b0796849a4eca02499c8ef"

/: (comment "Variant: debian-11-5.0_opam-2.1")

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

/: (comment "Update opam-repository")

/: (workdir /home/opam/opam-repository)

/home/opam/opam-repository: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                                 (network host)
                                 (shell "(git cat-file -e 5cfbed0a5094c19375b0d6e7b243c13f677ec0d1 || git fetch origin master) && git reset -q --hard 5cfbed0a5094c19375b0d6e7b243c13f677ec0d1 && git log --no-decorate -n1 --oneline "))
5cfbed0a50 Merge pull request #27007 from filipeom/opam-publish-smtml.0.4.0
2025-05-07 09:04.15 ---> saved as "9997386794897a545f3bc8e9feffcaf9527eecdffaeb8a0eae7a605a749fe9ab"

/home/opam/opam-repository: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                                 (network host)
                                 (shell "opam repo priority default 1 --set-default"))
2025-05-07 09:04.16 ---> saved as "76762f6732280cc9e488328203c48ea11e6afc58a5bd5c4aa7c0d12f480a10ba"

/home/opam/opam-repository: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                                 (network host)
                                 (shell "opam repo add rep-f6e3cab https://github.com/kit-ty-kate/opam-alpha-repository.git --set-default"))
[rep-f6e3cab] Initialised
2025-05-07 09:04.17 ---> saved as "cc30680d17acdd9c5096b638e0140af886dc75555be690ffd255ccdb6124c6a2"

/home/opam/opam-repository: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                                 (network host)
                                 (shell "opam update -u"))

<><> Updating package 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)


The following actions will be performed:
  - recompile ocaml-base-compiler 5.0.0* [upstream changes]
  - install   host-arch-x86_64    1
  - install   host-system-other   1
  - recompile ocaml-config        3      [uses ocaml-base-compiler]
  - recompile ocaml               5.0.0  [uses ocaml-base-compiler]
  - recompile opam-depext         1.2.3  [uses ocaml]
  - recompile base-domains        base   [uses ocaml]
  - recompile base-nnp            base   [uses base-domains]
===== 2 to install | 6 to recompile =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-base-compiler.5.0.0] found in cache
[opam-depext.1.2.3] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed host-arch-x86_64.1
-> installed host-system-other.1
-> removed   base-nnp.base
-> removed   base-domains.base
-> removed   opam-depext.1.2.3
-> removed   ocaml.5.0.0
-> removed   ocaml-config.3
-> removed   ocaml-base-compiler.5.0.0
-> installed ocaml-base-compiler.5.0.0
-> installed ocaml-config.3
-> installed ocaml.5.0.0
-> installed base-domains.base
-> installed base-nnp.base
-> installed opam-depext.1.2.3
Done.
# Run eval $(opam env) to update the current shell environment
2025-05-07 09:07.57 ---> saved as "af4f71aca3ba09f8ae3726dd48217c484aa42e18f7892fd25a3a96d1e501701b"

/home/opam/opam-repository: (comment "Clone source repo https://github.com/ocaml-bench/sandmark.git@main to /testsrc/src")

/home/opam/opam-repository: (user (uid 0) (gid 0))

/home/opam/opam-repository: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                                 (network host)
                                 (shell "mkdir /testsrc"))
2025-05-07 09:07.57 ---> saved as "387c5dbc5da96049b98946ca4987f9fcd308a31fc1a31be7125cfa2e8e429975"

/home/opam/opam-repository: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                                 (network host)
                                 (shell "chown 1000:1000 /testsrc"))
2025-05-07 09:07.57 ---> saved as "eae188079e1d38af7de938dbe454e68fe5970aaa6261a2242ce85e51bd220bad"

/home/opam/opam-repository: (user (uid 1000) (gid 1000))

/home/opam/opam-repository: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                                 (network host)
                                 (shell "git clone https://github.com/ocaml-bench/sandmark.git /testsrc/src && git -C /testsrc/src -c advice.detachedHead=false checkout main"))
Cloning into '/testsrc/src'...
Already on 'main'
Your branch is up to date with 'origin/main'.
2025-05-07 09:08.02 ---> saved as "d383888befe32912e77f716b63425952716498e5283260f7aa94f44a9c27c7db"

/home/opam/opam-repository: (comment "Initialize project source")

/home/opam/opam-repository: (copy (src .) (dst /src/))
2025-05-07 09:08.04 ---> saved as "2987949645b8e6c82c66e3d7c29bb5fa0c887c175aec2709d55bb572e2a1c7eb"

/home/opam/opam-repository: (workdir /src)

/src: (comment "Create switch for compiler (compiler-7f699984)")

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam switch create compiler-7f699984 --empty && opam repository && opam pin add -y -k path --inplace-build ocaml-variants.$(opam show --file ocaml-variants.opam -f version) . && eval $(opam env) && ocamlrun -version"))
[NOTE] These are the repositories in use by the current switch. Use '--all' to see all configured repositories.

<><> Repository configuration for switch compiler-7f699984 ><><><><><><><><><><>
 1 rep-f6e3cab git+https://github.com/kit-ty-kate/opam-alpha-repository.git
 2 default     git+file:///home/opam/opam-repository
[ocaml-variants.5.5.0+trunk: rsync]
[ocaml-variants.5.5.0+trunk] synchronised from file:///src
[WARNING] Failed checks on ocaml-variants package definition from source at file:///src:
           warning 41: Some packages are mentioned in package scripts or features, but there is no dependency or depopt toward them: "flexdll"
ocaml-variants is now pinned to file:///src (version 5.5.0+trunk)

[NOTE] Pinning command successful, but your installed packages may be out of sync.
The following dependencies couldn't be met:
  - ocaml-variants -> ocaml >= 5.5.0
      no matching version

"/usr/bin/env" "bash" "-c" "opam switch create compiler-7f699984 --empty && opam repository && opam pin add -y -k path --inplace-build ocaml-variants.$(opam show --file ocaml-variants.opam -f version) . && eval $(opam env) && ocamlrun -version" failed with exit status 20
2025-05-07 09:08.20: Job failed: Failed: Build failed