Build:
  1. 1
  2. 0
2026-10-03 10:02.46: New job: Build using linux-riscv64 in
                                []
2026-10-03 10:02.46: Will push staging image to ocurrent/opam-staging:debian-13-ocaml-5.6-no-flat-float-array-riscv64

Dockerfile:

# syntax=docker/dockerfile:1

FROM ocurrent/opam-staging@sha256:fe6e272f12d87f916435a23eed9b635afd947c7a71cffaa16f120e7f4163f9ce
RUN opam repo add beta git+https://github.com/ocaml/ocaml-beta-repository --set-default
ENV OPAMYES="1" OPAMCONFIRMLEVEL="unsafe-yes" OPAMERRLOGLEN="0" OPAMPRECISETRACKING="1"
USER root
RUN apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libzstd-dev
USER opam
RUN opam switch create 5.6 --packages=ocaml-variants.5.6.0+trunk,ocaml-options-only-no-flat-float-array
RUN opam pin add -k version ocaml-variants 5.6.0+trunk
RUN opam install -y opam-depext
ENTRYPOINT [ "opam", "exec", "--" ]
CMD bash
COPY --link [ "Dockerfile", "/Dockerfile.ocaml" ]


2026-10-03 10:02.46: Using cache hint "5.6.0+no-flat-float-array-riscv64-ocurrent/opam-staging@sha256:fe6e272f12d87f916435a23eed9b635afd947c7a71cffaa16f120e7f4163f9ce"
2026-10-03 10:02.46: Waiting for resource in pool OCluster
2026-10-03 14:07.03: Waiting for worker…
2026-10-03 14:22.00: Got resource from pool OCluster
Building on riscv-bm-02.sw.ci.dev
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: 792B 0.0s done
#1 DONE 0.1s

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

#3 docker-image://docker.io/docker/dockerfile:1@sha256:4edf897a3ffa55b89f906fc8cc78afdb3f1834cc9c7083565e611a8a7d5fe99e
#3 CACHED

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

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

#6 [1/9] FROM docker.io/ocurrent/opam-staging@sha256:fe6e272f12d87f916435a23eed9b635afd947c7a71cffaa16f120e7f4163f9ce
#6 DONE 0.0s

#7 [2/9] RUN opam repo add beta git+https://github.com/ocaml/ocaml-beta-repository --set-default
#7 CACHED

#8 [3/9] RUN apt-get -y update
#8 CACHED

#9 [4/9] RUN DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
#9 CACHED

#10 [5/9] RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libzstd-dev
#10 CACHED

#11 [internal] load build context
#11 transferring context: 792B 0.0s done
#11 DONE 0.2s

#12 [6/9] RUN opam switch create 5.6 --packages=ocaml-variants.5.6.0+trunk,ocaml-options-only-no-flat-float-array
#12 1.984 
#12 1.984 <><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
#12 1.984 Switch invariant: ["ocaml-variants" {= "5.6.0+trunk"} "ocaml-options-only-no-flat-float-array"]
#12 35.85 
#12 35.85 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#12 49.85 -> installed base-bigarray.base
#12 49.86 -> installed base-threads.base
#12 49.86 -> installed base-unix.base
#12 49.87 -> installed host-arch-riscv64.1
#12 49.90 -> installed host-system-other.1
#12 49.90 -> installed ocaml-option-bytecode-only.1
#12 49.91 -> installed ocaml-option-no-flat-float-array.1
#12 49.91 -> installed ocaml-options-only-no-flat-float-array.1+bytecode-only
#12 49.97 -> retrieved ocaml.5.6.0  (https://opam.ocaml.org/cache)
#12 49.97 [ERROR] Failed to get sources of ocaml-compiler.5.6: curl error code 503
#12 49.98 
#12 49.98 #=== ERROR while fetching sources for ocaml-compiler.5.6 ======================#
#12 49.98 OpamSolution.Fetch_fail("https://github.com/ocaml/ocaml/archive/trunk.tar.gz (curl: code 503 while downloading https://github.com/ocaml/ocaml/archive/trunk.tar.gz)")
#12 50.08 
#12 50.08 
#12 50.08 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#12 50.09 +- The following actions failed
#12 50.09 | - fetch ocaml-compiler 5.6
#12 50.09 +- 
#12 50.09 +- The following changes have been performed (the rest was aborted)
#12 50.09 | - install base-bigarray                          base
#12 50.09 | - install base-threads                           base
#12 50.09 | - install base-unix                              base
#12 50.09 | - install host-arch-riscv64                      1
#12 50.09 | - install host-system-other                      1
#12 50.09 | - install ocaml-option-bytecode-only             1
#12 50.09 | - install ocaml-option-no-flat-float-array       1
#12 50.09 | - install ocaml-options-only-no-flat-float-array 1+bytecode-only
#12 50.09 +- 
#12 50.09 # Run eval $(opam env --switch=5.6) to update the current shell environment
#12 50.09 Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
#12 ERROR: process "/bin/sh -c opam switch create 5.6 --packages=ocaml-variants.5.6.0+trunk,ocaml-options-only-no-flat-float-array" did not complete successfully: exit code: 40
------
 > [6/9] RUN opam switch create 5.6 --packages=ocaml-variants.5.6.0+trunk,ocaml-options-only-no-flat-float-array:
50.09 | - install base-threads                           base
50.09 | - install base-unix                              base
50.09 | - install host-arch-riscv64                      1
50.09 | - install host-system-other                      1
50.09 | - install ocaml-option-bytecode-only             1
50.09 | - install ocaml-option-no-flat-float-array       1
50.09 | - install ocaml-options-only-no-flat-float-array 1+bytecode-only
50.09 +- 
50.09 # Run eval $(opam env --switch=5.6) to update the current shell environment
50.09 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 15)
Dockerfile:11
--------------------
   9 |     RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libzstd-dev
  10 |     USER opam
  11 | >>> RUN opam switch create 5.6 --packages=ocaml-variants.5.6.0+trunk,ocaml-options-only-no-flat-float-array
  12 |     RUN opam pin add -k version ocaml-variants 5.6.0+trunk
  13 |     RUN opam install -y opam-depext
--------------------
ERROR: failed to solve: process "/bin/sh -c opam switch create 5.6 --packages=ocaml-variants.5.6.0+trunk,ocaml-options-only-no-flat-float-array" did not complete successfully: exit code: 40
docker-build failed with exit-code 1
2026-10-03 14:23.02: Job failed: Failed: Build failed