Build:
  1. 0
2025-06-10 13:51.02: New job: Build using linux-x86_64 in
                                []
2025-06-10 13:51.02: Will push staging image to ocurrent/opam-staging:oraclelinux-8-ocaml-5.2-flambda2-amd64

Dockerfile:

# syntax=docker/dockerfile:1

FROM ocurrent/opam-staging@sha256:bd06d36866c9bf61ebfc2b70eed8bb19c52572d53430c2dca26277292226793a
RUN opam repo add oxcaml git+https://github.com/janestreet/opam-repository#with-extensions --set-default
ENV OPAMYES="1" OPAMCONFIRMLEVEL="unsafe-yes" OPAMERRLOGLEN="0" OPAMPRECISETRACKING="1"
USER root
RUN yum install -y zstd autoconf && yum clean packages
USER opam
RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2
RUN opam pin add -k version ocaml-variants 5.2.0+flambda2
RUN opam install -y opam-depext
ENTRYPOINT [ "opam", "exec", "--" ]
CMD bash
COPY --link [ "Dockerfile", "/Dockerfile.ocaml" ]


2025-06-10 13:51.02: Using cache hint "5.2.0+flambda2-amd64-ocurrent/opam-staging@sha256:bd06d36866c9bf61ebfc2b70eed8bb19c52572d53430c2dca26277292226793a"
2025-06-10 13:51.02: Waiting for confirm-threshold > above-average
2025-06-10 13:53.02: Confirm-threshold now > above-average
2025-06-10 13:53.02: Connecting to build cluster…
2025-06-10 13:53.02: Waiting for resource in pool OCluster
2025-06-10 13:53.02: Waiting for worker…
2025-06-10 13:53.02: Got resource from pool OCluster
Building on bremusa.ocamllabs.io
WARNING: experimental flag squash is removed with BuildKit. You should squash inside build using a multi-stage Dockerfile for efficiency.
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 689B done
#1 DONE 0.0s

#2 resolve image config for docker-image://docker.io/docker/dockerfile:1
#2 DONE 0.7s

#3 docker-image://docker.io/docker/dockerfile:1@sha256:9857836c9ee4268391bb5b09f9f157f3c91bb15821bb77969642813b0d00518d
#3 CACHED

#4 [internal] load metadata for docker.io/ocurrent/opam-staging@sha256:bd06d36866c9bf61ebfc2b70eed8bb19c52572d53430c2dca26277292226793a
#4 DONE 0.0s

#5 [internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s

#6 [internal] load build context
#6 transferring context: 689B done
#6 DONE 0.0s

#7 [1/7] FROM docker.io/ocurrent/opam-staging@sha256:bd06d36866c9bf61ebfc2b70eed8bb19c52572d53430c2dca26277292226793a
#7 resolve docker.io/ocurrent/opam-staging@sha256:bd06d36866c9bf61ebfc2b70eed8bb19c52572d53430c2dca26277292226793a
#7 resolve docker.io/ocurrent/opam-staging@sha256:bd06d36866c9bf61ebfc2b70eed8bb19c52572d53430c2dca26277292226793a 0.9s done
#7 CACHED

#8 [2/7] RUN opam repo add oxcaml git+https://github.com/janestreet/opam-repository#with-extensions --set-default
#8 4.080 [oxcaml] Initialised
#8 DONE 4.5s

#9 [3/7] RUN yum install -y zstd autoconf && yum clean packages
#9 0.981 Oracle Linux 8 BaseOS Latest (x86_64)            19 kB/s | 4.3 kB     00:00    
#9 2.766 Oracle Linux 8 BaseOS Latest (x86_64)            56 MB/s | 100 MB     00:01    
#9 20.28 Oracle Linux 8 Application Stream (x86_64)      110 kB/s | 4.5 kB     00:00    
#9 21.51 Oracle Linux 8 Application Stream (x86_64)       58 MB/s |  71 MB     00:01    
#9 37.54 Last metadata expiration check: 0:00:17 ago on Tue Jun 10 13:53:29 2025.
#9 42.06 Package zstd-1.4.4-1.0.1.el8.x86_64 is already installed.
#9 42.06 Package autoconf-2.69-29.el8_10.1.noarch is already installed.
#9 42.29 Dependencies resolved.
#9 42.30 Nothing to do.
#9 42.30 Complete!
#9 42.76 0 files removed
#9 DONE 42.9s

#10 [4/7] RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2
#10 3.954 
#10 3.954 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#10 4.052 [ocaml-config.3/gen_ocaml_config.ml.in] downloaded from https://opam.ocaml.org/cache
#10 4.143 [ocaml-config.3/ocaml-config.install] downloaded from https://opam.ocaml.org/cache
#10 4.971 [ocaml-variants.5.2.0+flambda2] downloaded from https://github.com/oxcaml/oxcaml/archive/refs/tags/5.2.0minus-10.tar.gz
#10 6.811 [ocaml-variants.5.2.0+flambda2/init-compiler.tar.gz] downloaded from https://opam.ocaml.org/cache
#10 7.323 [ocaml-variants.5.2.0+flambda2/init-dune.tbz] downloaded from https://opam.ocaml.org/cache
#10 7.540 [ocaml-variants.5.2.0+flambda2/init-menhir.tar.gz] downloaded from https://opam.ocaml.org/cache
#10 7.540 
#10 7.540 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#10 8.418 -> installed base-bigarray.base
#10 8.438 -> installed base-threads.base
#10 8.440 -> installed base-unix.base
#10 8.442 -> installed ocaml-options-vanilla.1
#10 109.0 [ERROR] The compilation of ocaml-variants failed at "/usr/bin/sh -exc autoconf || autoconf27".
#10 109.0 
#10 109.0 #=== ERROR while compiling ocaml-variants.5.2.0+flambda2 ======================#
#10 109.0 # context              2.0.10 | linux/x86_64 |  | git+https://github.com/janestreet/opam-repository#with-extensions
#10 109.0 # path                 ~/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2
#10 109.0 # command              /usr/bin/sh -exc autoconf || autoconf27
#10 109.0 # exit-code            127
#10 109.0 # env-file             ~/.opam/log/ocaml-variants-1-910341.env
#10 109.0 # output-file          ~/.opam/log/ocaml-variants-1-910341.out
#10 109.0 ### output ###
#10 109.0 # + autoconf
#10 109.0 # configure.ac:19: error: Autoconf version 2.71 or higher is required
#10 109.0 # configure.ac:19: the top level
#10 109.0 # autom4te: /usr/bin/m4 failed with exit status: 63
#10 109.0 # + autoconf27
#10 109.0 # /usr/bin/sh: autoconf27: command not found
#10 109.0 
#10 109.0 
#10 109.0 
#10 109.0 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#10 109.0 +- The following actions failed
#10 109.0 | - build ocaml-variants 5.2.0+flambda2
#10 109.0 +- 
#10 109.0 +- The following changes have been performed (the rest was aborted)
#10 109.0 | - install base-bigarray         base
#10 109.0 | - install base-threads          base
#10 109.0 | - install base-unix             base
#10 109.0 | - install ocaml-options-vanilla 1
#10 109.0 +- 
#10 109.0 # Run eval $(opam env) to update the current shell environment
#10 109.0 Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
#10 ERROR: process "/bin/sh -c opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2" did not complete successfully: exit code: 31
------
 > [4/7] RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2:
109.0 | - build ocaml-variants 5.2.0+flambda2
109.0 +- 
109.0 +- The following changes have been performed (the rest was aborted)
109.0 | - install base-bigarray         base
109.0 | - install base-threads          base
109.0 | - install base-unix             base
109.0 | - install ocaml-options-vanilla 1
109.0 +- 
109.0 # Run eval $(opam env) to update the current shell environment
109.0 Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
------

 1 warning found (use --debug to expand):
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 13)
Dockerfile:9
--------------------
   7 |     RUN yum install -y zstd autoconf && yum clean packages
   8 |     USER opam
   9 | >>> RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2
  10 |     RUN opam pin add -k version ocaml-variants 5.2.0+flambda2
  11 |     RUN opam install -y opam-depext
--------------------
ERROR: failed to solve: process "/bin/sh -c opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2" did not complete successfully: exit code: 31
docker-build failed with exit-code 1
2025-06-10 13:55.42: Job failed: Failed: Build failed
2025-06-10 13:55.42: Log analysis:
2025-06-10 13:55.42: >>> : error: Autoconf version 2.71 or higher is required (score = 35)
2025-06-10 13:55.42: Autoconf version 2.71 or higher is required