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

Dockerfile:

# syntax=docker/dockerfile:1

FROM ocurrent/opam-staging@sha256:4a1ce6cfb168ada5846ec8cbf6db3027c4aa31e2b1b52c784d0169b8e18bc6e2
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 apk update && apk upgrade
RUN apk add zstd autoconf
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:09.23: Using cache hint "5.2.0+flambda2-amd64-ocurrent/opam-staging@sha256:4a1ce6cfb168ada5846ec8cbf6db3027c4aa31e2b1b52c784d0169b8e18bc6e2"
2025-06-10 13:09.23: Waiting for confirm-threshold > above-average
2025-06-10 13:11.22: Confirm-threshold now > above-average
2025-06-10 13:11.22: Connecting to build cluster…
2025-06-10 13:11.22: Waiting for resource in pool OCluster
2025-06-10 13:11.23: Waiting for worker…
2025-06-10 13:11.23: Got resource from pool OCluster
Building on odawa.caelum.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: 690B done
#1 DONE 0.0s

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

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

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

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

#6 [1/8] FROM docker.io/ocurrent/opam-staging@sha256:4a1ce6cfb168ada5846ec8cbf6db3027c4aa31e2b1b52c784d0169b8e18bc6e2
#6 CACHED

#7 [internal] load build context
#7 transferring context: 690B done
#7 DONE 0.0s

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

#9 [3/8] RUN apk update && apk upgrade
#9 0.335 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
#9 0.679 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
#9 2.072 fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
#9 2.541 fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
#9 4.065 fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
#9 5.597 v3.21.3-590-gf2fbf5554ea [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
#9 5.597 v3.21.3-593-ge772c330b50 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
#9 5.597 v3.22.0-686-g72d0f1c1db5 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
#9 5.597 v3.22.0-683-ga0f59bbfb7b [https://dl-cdn.alpinelinux.org/alpine/edge/community]
#9 5.597 v3.22.0-683-ga0f59bbfb7b [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
#9 5.597 OK: 58665 distinct packages available
#9 6.380 (1/3) Upgrading python3 (3.12.10-r1 -> 3.12.11-r0)
#9 9.774 (2/3) Upgrading python3-pycache-pyc0 (3.12.10-r1 -> 3.12.11-r0)
#9 14.38 (3/3) Upgrading python3-pyc (3.12.10-r1 -> 3.12.11-r0)
#9 14.38 Executing busybox-1.37.0-r12.trigger
#9 14.40 OK: 306 MiB in 101 packages
#9 DONE 14.7s

#10 [4/8] RUN apk add zstd autoconf
#10 0.948 (1/7) Installing m4 (1.4.19-r3)
#10 1.004 (2/7) Installing perl (5.40.1-r1)
#10 3.185 (3/7) Installing autoconf (2.72-r0)
#10 3.400 (4/7) Installing perl-error (0.17029-r2)
#10 3.412 (5/7) Installing perl-git (2.47.2-r0)
#10 3.434 (6/7) Installing git-perl (2.47.2-r0)
#10 3.455 (7/7) Installing zstd (1.5.6-r2)
#10 3.509 Executing busybox-1.37.0-r12.trigger
#10 3.529 OK: 344 MiB in 108 packages
#10 DONE 4.0s

#11 [5/8] RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2
#11 3.437 
#11 3.437 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#11 3.578 [ocaml-config.3/gen_ocaml_config.ml.in] downloaded from https://opam.ocaml.org/cache
#11 3.736 [ocaml-config.3/ocaml-config.install] downloaded from https://opam.ocaml.org/cache
#11 4.664 [ocaml-variants.5.2.0+flambda2] downloaded from https://github.com/oxcaml/oxcaml/archive/refs/tags/5.2.0minus-10.tar.gz
#11 6.851 [ocaml-variants.5.2.0+flambda2/init-compiler.tar.gz] downloaded from https://opam.ocaml.org/cache
#11 7.346 [ocaml-variants.5.2.0+flambda2/init-dune.tbz] downloaded from https://opam.ocaml.org/cache
#11 7.534 [ocaml-variants.5.2.0+flambda2/init-menhir.tar.gz] downloaded from https://opam.ocaml.org/cache
#11 7.534 
#11 7.534 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#11 8.387 -> installed base-bigarray.base
#11 8.389 -> installed base-threads.base
#11 8.391 -> installed base-unix.base
#11 8.393 -> installed ocaml-options-vanilla.1
#11 134.6 [ERROR] The compilation of ocaml-variants failed at "/bin/sh -exc PATH=/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/init_deps/bin/:$PATH make -j255".
#11 134.6 
#11 134.6 #=== ERROR while compiling ocaml-variants.5.2.0+flambda2 ======================#
#11 134.6 # context              2.0.10 | linux/x86_64 |  | git+https://github.com/janestreet/opam-repository#with-extensions
#11 134.6 # path                 ~/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2
#11 134.6 # command              /bin/sh -exc PATH=/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/init_deps/bin/:$PATH make -j255
#11 134.6 # exit-code            2
#11 134.6 # env-file             ~/.opam/log/ocaml-variants-1-a5b00a.env
#11 134.6 # output-file          ~/.opam/log/ocaml-variants-1-a5b00a.out
#11 134.6 ### output ###
#11 134.6 # + PATH=/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/init_deps/bin/:/home/opam/.opam/5.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make -j255
#11 134.6 # echo "$contents" > duneconf/boot.ws
#11 134.6 # echo "$contents" > duneconf/runtime_stdlib.ws
#11 134.6 # echo "$contents" > duneconf/main.ws
#11 134.6 # echo "(data_only_dirs yacc )" > duneconf/dirs-to-ignore.inc
#11 134.6 # echo > duneconf/jst-extra.inc
#11 134.6 # if [ "runtime" = "runtime4" ]; then \
#11 134.6 #           echo "(dirs (:standard \ runtime debugger init_deps dune-3.9.3 menhir-20231231-d3d815e4f554da68b8c247241c8f8678926eecaa ocaml-4.14.2))" > dune.runtime_selection; \
#11 134.6 # else \
#11 134.6 #           echo "(dirs (:standard \ runtime4 debugger4 init_deps dune-3.9.3 menhir-20231231-d3d815e4f554da68b8c247241c8f8678926eecaa ocaml-4.14.2))" > dune.runtime_selection; \
#11 134.6 # fi
#11 134.6 # if [ "runtime" = "runtime4" ]; then \
#11 134.6 #           echo "(dirs (:standard \ systhreads runtime_events))" > otherlibs/dune; \
#11 134.6 # else \
#11 134.6 #           echo "(dirs (:standard \ systhreads4))" > otherlibs/dune; \
#11 134.6 # fi
#11 134.6 # echo -n '-Wl,-E' > ./otherlibs/dynlink/natdynlinkops
#11 134.6 # echo '(:standard -function-sections)' > ocamlopt_flags.sexp
#11 134.6 # echo '(  )' > oc_cflags.sexp
#11 134.6 # echo '(  )' > oc_cppflags.sexp
#11 134.6 # echo '( -fPIC )' > sharedlib_cflags.sexp
#11 134.6 # rm -rf _build/_bootinstall
#11 134.6 # mkdir -p _build/_bootinstall/{bin,lib/ocaml}
#11 134.6 # cp Makefile.config duneconf/boot.ws duneconf/runtime_stdlib.ws duneconf/main.ws duneconf/dirs-to-ignore.inc duneconf/jst-extra.inc dune-project dune.runtime_selection otherlibs/dune _build/_bootinstall/lib/ocaml
#11 134.6 # ln -sf ../../default/boot_ocamlopt.exe _build/_bootinstall/bin/ocamlopt.opt
#11 134.6 # ln -sf ../../default/main_native.exe _build/_bootinstall/bin/ocamlc.opt
#11 134.6 # ln -sf ../../default/tools/ocamlmklib.exe _build/_bootinstall/bin/ocamlmklib.opt
#11 134.6 # ln -sf ../../default/tools/ocamldep.exe _build/_bootinstall/bin/ocamldep.opt
#11 134.6 # ln -sf ../../default/tools/objinfo.exe _build/_bootinstall/bin/ocamlobjinfo.opt
#11 134.6 # ln -sf "`which ocamllex`" _build/_bootinstall/bin/ocamllex.opt
#11 134.6 # for prog in ocamlopt ocamlc ocamllex ocamldep ocamlmklib; do \
#11 134.6 #   ln -sf "$prog.opt" "_build/_bootinstall/bin/$prog"; \
#11 134.6 # done
#11 134.6 # RUNTIME_DIR=runtime /home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/init_deps/bin/dune build --root=. --workspace=duneconf/boot.ws  main_native.exe boot_ocamlopt.exe tools/ocamlmklib.exe tools/ocamldep.exe tools/objinfo.exe ocamltest/ocamltest.native
#11 134.6 #   GEN runtime/caml/opnames.h
#11 134.6 # make[1]: Entering directory '/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/_build/default'
#11 134.6 # gcc -c -O2 -fno-strict-aliasing -fwrapv -pthread -g -Wall -Wno-pragmas -Wint-conversion -Wstrict-prototypes -Wold-style-definition -Wundef -Wold-style-declaration -Werror -fno-common -fexcess-precision=standard -Wvla -fno-tree-vrp -ffunction-sections -pthread -I./runtime  -D_FILE_OFFSET_BITS=64  -DCAMLDLLIMPORT= -DIN_CAML_RUNTIME  -o runtime/sak.o runtime/sak.c
#11 134.6 # cc -o runtime/sak runtime/sak.o 
#11 134.6 # make[1]: Leaving directory '/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/_build/default'
#11 134.6 # make[1]: Entering directory '/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/_build/default'
#11 134.6 # echo '/* This file is generated from ./Makefile.config */' > runtime/build_config.h && \
#11 134.6 # echo '#define OCAML_STDLIB_DIR "/home/opam/.opam/5.2/lib/ocaml"' >> runtime/build_config.h && \
#11 134.6 # echo '#define HOST "x86_64-pc-linux-musl"' >> runtime/build_config.h
#11 134.6 # make[1]: Leaving directory '/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/_build/default'
#11 134.6 # File "runtime/dune", line 43, characters 0-725:
#11 134.6 # 43 | (rule
#11 134.6 # 44 |  (targets primitives prims.c)
#11 134.6 # 45 |  (mode    fallback)
#11 134.6 # ....
#11 134.6 # 60 |    (progn
#11 134.6 # 61 |      (run %{dep:gen_primitives.sh} primitives %{deps})
#11 134.6 # 62 |      (with-stdout-to prims.c (run bash %{dep:gen_primsc.sh} primitives %{deps})))))
#11 134.6 # signals.c:42:10: fatal error: linux/auxvec.h: No such file or directory
#11 134.6 #    42 | #include <linux/auxvec.h>
#11 134.6 #       |          ^~~~~~~~~~~~~~~~
#11 134.6 # compilation terminated.
#11 134.6 # make: *** [Makefile.common-jst:75: boot-compiler] Error 1
#11 134.6 
#11 134.6 
#11 134.6 
#11 134.6 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#11 134.6 +- The following actions failed
#11 134.6 | - build ocaml-variants 5.2.0+flambda2
#11 134.6 +- 
#11 134.6 +- The following changes have been performed (the rest was aborted)
#11 134.6 | - install base-bigarray         base
#11 134.6 | - install base-threads          base
#11 134.6 | - install base-unix             base
#11 134.6 | - install ocaml-options-vanilla 1
#11 134.6 +- 
#11 134.6 # Run eval $(opam env) to update the current shell environment
#11 134.6 Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
#11 ERROR: process "/bin/sh -c opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2" did not complete successfully: exit code: 31
------
 > [5/8] RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2:
134.6 | - build ocaml-variants 5.2.0+flambda2
134.6 +- 
134.6 +- The following changes have been performed (the rest was aborted)
134.6 | - install base-bigarray         base
134.6 | - install base-threads          base
134.6 | - install base-unix             base
134.6 | - install ocaml-options-vanilla 1
134.6 +- 
134.6 # Run eval $(opam env) to update the current shell environment
134.6 Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
------

 1 warning found (use docker --debug to expand):
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 14)
Dockerfile:10
--------------------
   8 |     RUN apk add zstd autoconf
   9 |     USER opam
  10 | >>> RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2
  11 |     RUN opam pin add -k version ocaml-variants 5.2.0+flambda2
  12 |     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:14.22: Job failed: Failed: Build failed