Build:
- 1
- 0
2025-06-10 13:14.15: New job: Build using linux-arm64 in
[]
2025-06-10 13:14.15: Will push staging image to ocurrent/opam-staging:alpine-3.21-ocaml-5.2-flambda2-arm64
Dockerfile:
# syntax=docker/dockerfile:1
FROM ocurrent/opam-staging@sha256:a037e52aa906df513895e102c1cffc6cef729d6f5a6d70de9003d93ff0f8d07b
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:14.15: Using cache hint "5.2.0+flambda2-arm64-ocurrent/opam-staging@sha256:a037e52aa906df513895e102c1cffc6cef729d6f5a6d70de9003d93ff0f8d07b"
2025-06-10 13:14.15: Waiting for resource in pool OCluster
2025-06-10 13:14.15: Waiting for worker…
2025-06-10 13:14.15: Got resource from pool OCluster
Building on okypous.caelum.ci.dev
#1 [internal] load build definition from Dockerfile
#1 sha256:76288cae90dca997371d6ba8eae0bcfca8dda709b7b548c4e37f504d71cfae34
#1 transferring dockerfile: 690B done
#1 DONE 0.2s
#2 [internal] load .dockerignore
#2 sha256:d6e50f13f65f1fc31d228a24de957fd501cf4e201f48a9260676feb61961df1c
#2 transferring context: 2B done
#2 DONE 0.2s
#3 resolve image config for docker.io/docker/dockerfile:1
#3 sha256:5511bf222770ecb09bae16a5e9dc6ddaf6633b05719203c5e2b00644727cd62f
#3 DONE 0.3s
#4 docker-image://docker.io/docker/dockerfile:1@sha256:9857836c9ee4268391bb5b09f9f157f3c91bb15821bb77969642813b0d00518d
#4 sha256:e1b8ab9c4c488e39bfb8463f516b8fd036cc51116d72fd9d07edde22bf8d34c6
#4 CACHED
#5 [internal] load build definition from Dockerfile
#5 sha256:152a93a6a2f3f84ec32a2b1070ec22a8b98716d2923ba86ea14b29809e0332de
#5 DONE 0.0s
#6 [internal] load metadata for docker.io/ocurrent/opam-staging@sha256:a037e52aa906df513895e102c1cffc6cef729d6f5a6d70de9003d93ff0f8d07b
#6 sha256:064fe73d34c181f7dcf106dbde9b2e38d7d223021d097c4b9ac19d39979ca600
#6 DONE 0.6s
#7 [internal] load .dockerignore
#7 sha256:b00f97cc544e6d60de75628c0d8a512a89793939d1833524ef48a5f6e90073f6
#7 DONE 0.0s
#8 [1/8] FROM docker.io/ocurrent/opam-staging@sha256:a037e52aa906df513895e102c1cffc6cef729d6f5a6d70de9003d93ff0f8d07b
#8 sha256:a87e40c91d03cbb545b3c113d5363af2f7f0bb508fb8c4761bf1481e199881a5
#8 CACHED
#15 [internal] load build context
#15 sha256:445741262bb96058401a5b9deed7f06317b947b16a1ad846ae8877e022aeff94
#15 transferring context: 690B done
#15 DONE 0.2s
#9 [2/8] RUN opam repo add oxcaml git+https://github.com/janestreet/opam-repository#with-extensions --set-default
#9 sha256:2a47dc131eb286a901dc76ea2ab58283a061487e1039ba84303ddc54002dc933
#9 4.449 [oxcaml] Initialised
#9 DONE 6.0s
#10 [3/8] RUN apk update && apk upgrade
#10 sha256:4dddbc3c6683d3dbfba027b23268ef033e593b08c8b31d420edfa15bf0ec55a1
#10 0.359 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/aarch64/APKINDEX.tar.gz
#10 0.510 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/aarch64/APKINDEX.tar.gz
#10 0.725 fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
#10 0.797 fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
#10 1.005 fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/aarch64/APKINDEX.tar.gz
#10 1.371 v3.21.3-590-gf2fbf5554ea [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
#10 1.371 v3.21.3-593-ge772c330b50 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
#10 1.371 v3.22.0-686-g72d0f1c1db5 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
#10 1.371 v3.22.0-683-ga0f59bbfb7b [https://dl-cdn.alpinelinux.org/alpine/edge/community]
#10 1.371 v3.22.0-683-ga0f59bbfb7b [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
#10 1.371 OK: 59038 distinct packages available
#10 2.299 (1/3) Upgrading python3 (3.12.10-r1 -> 3.12.11-r0)
#10 4.773 (2/3) Upgrading python3-pycache-pyc0 (3.12.10-r1 -> 3.12.11-r0)
#10 6.001 (3/3) Upgrading python3-pyc (3.12.10-r1 -> 3.12.11-r0)
#10 6.001 Executing busybox-1.37.0-r12.trigger
#10 6.013 OK: 301 MiB in 101 packages
#10 DONE 7.8s
#11 [4/8] RUN apk add zstd autoconf
#11 sha256:597c67f6c4ffd72f965d5624ec03a9d2554748bedfb7e562dbb8638da836c8f3
#11 1.223 (1/7) Installing m4 (1.4.19-r3)
#11 1.291 (2/7) Installing perl (5.40.1-r1)
#11 1.844 (3/7) Installing autoconf (2.72-r0)
#11 2.028 (4/7) Installing perl-error (0.17029-r2)
#11 2.038 (5/7) Installing perl-git (2.47.2-r0)
#11 2.066 (6/7) Installing git-perl (2.47.2-r0)
#11 2.078 (7/7) Installing zstd (1.5.6-r2)
#11 2.126 Executing busybox-1.37.0-r12.trigger
#11 2.139 OK: 341 MiB in 108 packages
#11 DONE 2.6s
#12 [5/8] RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2
#12 sha256:273f4a1beea7defa6e9b7cec337626d90c4a5370b916053e1be800e1325b4b81
#12 4.959
#12 4.959 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#12 5.094 [ocaml-config.3/gen_ocaml_config.ml.in] downloaded from https://opam.ocaml.org/cache
#12 5.170 [ocaml-config.3/ocaml-config.install] downloaded from https://opam.ocaml.org/cache
#12 8.009 [ocaml-variants.5.2.0+flambda2] downloaded from https://github.com/oxcaml/oxcaml/archive/refs/tags/5.2.0minus-10.tar.gz
#12 9.815 [ocaml-variants.5.2.0+flambda2/init-compiler.tar.gz] downloaded from https://opam.ocaml.org/cache
#12 10.15 [ocaml-variants.5.2.0+flambda2/init-dune.tbz] downloaded from https://opam.ocaml.org/cache
#12 10.54 [ocaml-variants.5.2.0+flambda2/init-menhir.tar.gz] downloaded from https://opam.ocaml.org/cache
#12 10.54
#12 10.54 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#12 11.10 -> installed base-bigarray.base
#12 11.10 -> installed base-threads.base
#12 11.10 -> installed base-unix.base
#12 11.11 -> installed ocaml-options-vanilla.1
#12 155.9 [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 -j79".
#12 155.9
#12 155.9 #=== ERROR while compiling ocaml-variants.5.2.0+flambda2 ======================#
#12 155.9 # context 2.0.10 | linux/arm64 | | git+https://github.com/janestreet/opam-repository#with-extensions
#12 155.9 # path ~/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2
#12 155.9 # command /bin/sh -exc PATH=/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/init_deps/bin/:$PATH make -j79
#12 155.9 # exit-code 2
#12 155.9 # env-file ~/.opam/log/ocaml-variants-1-a5b00a.env
#12 155.9 # output-file ~/.opam/log/ocaml-variants-1-a5b00a.out
#12 155.9 ### output ###
#12 155.9 # + 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 -j79
#12 155.9 # echo "$contents" > duneconf/boot.ws
#12 155.9 # echo "$contents" > duneconf/runtime_stdlib.ws
#12 155.9 # echo "$contents" > duneconf/main.ws
#12 155.9 # echo "(data_only_dirs yacc )" > duneconf/dirs-to-ignore.inc
#12 155.9 # echo > duneconf/jst-extra.inc
#12 155.9 # if [ "runtime" = "runtime4" ]; then \
#12 155.9 # echo "(dirs (:standard \ runtime debugger init_deps dune-3.9.3 menhir-20231231-d3d815e4f554da68b8c247241c8f8678926eecaa ocaml-4.14.2))" > dune.runtime_selection; \
#12 155.9 # else \
#12 155.9 # echo "(dirs (:standard \ runtime4 debugger4 init_deps dune-3.9.3 menhir-20231231-d3d815e4f554da68b8c247241c8f8678926eecaa ocaml-4.14.2))" > dune.runtime_selection; \
#12 155.9 # fi
#12 155.9 # if [ "runtime" = "runtime4" ]; then \
#12 155.9 # echo "(dirs (:standard \ systhreads runtime_events))" > otherlibs/dune; \
#12 155.9 # else \
#12 155.9 # echo "(dirs (:standard \ systhreads4))" > otherlibs/dune; \
#12 155.9 # fi
#12 155.9 # echo -n '-Wl,-E' > ./otherlibs/dynlink/natdynlinkops
#12 155.9 # echo '(:standard -function-sections)' > ocamlopt_flags.sexp
#12 155.9 # echo '( )' > oc_cflags.sexp
#12 155.9 # echo '( )' > oc_cppflags.sexp
#12 155.9 # echo '( -fPIC )' > sharedlib_cflags.sexp
#12 155.9 # rm -rf _build/_bootinstall
#12 155.9 # mkdir -p _build/_bootinstall/{bin,lib/ocaml}
#12 155.9 # 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
#12 155.9 # ln -sf ../../default/boot_ocamlopt.exe _build/_bootinstall/bin/ocamlopt.opt
#12 155.9 # ln -sf ../../default/main_native.exe _build/_bootinstall/bin/ocamlc.opt
#12 155.9 # ln -sf ../../default/tools/ocamlmklib.exe _build/_bootinstall/bin/ocamlmklib.opt
#12 155.9 # ln -sf ../../default/tools/ocamldep.exe _build/_bootinstall/bin/ocamldep.opt
#12 155.9 # ln -sf ../../default/tools/objinfo.exe _build/_bootinstall/bin/ocamlobjinfo.opt
#12 155.9 # ln -sf "`which ocamllex`" _build/_bootinstall/bin/ocamllex.opt
#12 155.9 # for prog in ocamlopt ocamlc ocamllex ocamldep ocamlmklib; do \
#12 155.9 # ln -sf "$prog.opt" "_build/_bootinstall/bin/$prog"; \
#12 155.9 # done
#12 155.9 # 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
#12 155.9 # GEN runtime/caml/opnames.h
#12 155.9 # make[1]: Entering directory '/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/_build/default'
#12 155.9 # 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 -ffunction-sections -pthread -I./runtime -D_FILE_OFFSET_BITS=64 -DCAMLDLLIMPORT= -DIN_CAML_RUNTIME -o runtime/sak.o runtime/sak.c
#12 155.9 # cc -o runtime/sak runtime/sak.o
#12 155.9 # make[1]: Leaving directory '/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/_build/default'
#12 155.9 # make[1]: Entering directory '/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/_build/default'
#12 155.9 # echo '/* This file is generated from ./Makefile.config */' > runtime/build_config.h && \
#12 155.9 # echo '#define OCAML_STDLIB_DIR "/home/opam/.opam/5.2/lib/ocaml"' >> runtime/build_config.h && \
#12 155.9 # echo '#define HOST "aarch64-unknown-linux-musl"' >> runtime/build_config.h
#12 155.9 # make[1]: Leaving directory '/home/opam/.opam/5.2/.opam-switch/build/ocaml-variants.5.2.0+flambda2/_build/default'
#12 155.9 # File "runtime/dune", line 43, characters 0-725:
#12 155.9 # 43 | (rule
#12 155.9 # 44 | (targets primitives prims.c)
#12 155.9 # 45 | (mode fallback)
#12 155.9 # ....
#12 155.9 # 60 | (progn
#12 155.9 # 61 | (run %{dep:gen_primitives.sh} primitives %{deps})
#12 155.9 # 62 | (with-stdout-to prims.c (run bash %{dep:gen_primsc.sh} primitives %{deps})))))
#12 155.9 # signals.c:42:10: fatal error: linux/auxvec.h: No such file or directory
#12 155.9 # 42 | #include <linux/auxvec.h>
#12 155.9 # | ^~~~~~~~~~~~~~~~
#12 155.9 # compilation terminated.
#12 155.9 # make: *** [Makefile.common-jst:75: boot-compiler] Error 1
#12 155.9
#12 155.9
#12 155.9
#12 155.9 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#12 155.9 +- The following actions failed
#12 155.9 | - build ocaml-variants 5.2.0+flambda2
#12 155.9 +-
#12 155.9 +- The following changes have been performed (the rest was aborted)
#12 155.9 | - install base-bigarray base
#12 155.9 | - install base-threads base
#12 155.9 | - install base-unix base
#12 155.9 | - install ocaml-options-vanilla 1
#12 155.9 +-
#12 156.0 # Run eval $(opam env) to update the current shell environment
#12 156.0 Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
#12 ERROR: executor failed running [/bin/sh -c opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2]: exit code: 31
------
> [5/8] RUN opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2:
------
executor failed running [/bin/sh -c opam switch create 5.2 --packages=ocaml-variants.5.2.0+flambda2]: exit code: 31
docker-build failed with exit-code 1
2025-06-10 13:17.14: Job failed: Failed: Build failed