OrganisationsmirageZarith9de5ec ()debian-11-4.14_opam-2.4

debian-11-4.14_opam-2.4

Link Copied
Code Copied

Logs

2025-09-29 07:25.11: New job: test mirage/Zarith https://github.com/mirage/Zarith.git#refs/heads/zarith-1.13 (9de5ec36fc0851f19985b235aa07d56661688155) (linux-x86_64:debian-11-4.14_opam-2.4)
Base: ocaml/opam:debian-11-ocaml-4.14@sha256:51c591e6c3e34059cd87f5cf8e13185e736ca33b6c3d5fcc4f64f906a298aac9
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/mirage/Zarith.git" -b "zarith-1.13" && cd "Zarith" && git reset --hard 9de5ec36
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-11-ocaml-4.14@sha256:51c591e6c3e34059cd87f5cf8e13185e736ca33b6c3d5fcc4f64f906a298aac9
# debian-11-4.14_opam-2.4
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.4 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 zarith.opam ./
RUN opam pin add -yn zarith.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="base-bigarray.base base-threads.base base-unix.base conf-m4.1 dune.3.20.2 gmp.6.3.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.4 --depext-only -y zarith.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2025-09-29 07:25.11: Using cache hint "mirage/Zarith-ocaml/opam:debian-11-ocaml-4.14@sha256:51c591e6c3e34059cd87f5cf8e13185e736ca33b6c3d5fcc4f64f906a298aac9-debian-11-4.14_opam-2.4-7cdd644a1983e0d7b921e8bf67fd2ecb"
2025-09-29 07:25.11: Using OBuilder spec:
((from ocaml/opam:debian-11-ocaml-4.14@sha256:51c591e6c3e34059cd87f5cf8e13185e736ca33b6c3d5fcc4f64f906a298aac9)
(comment debian-11-4.14_opam-2.4)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.4 /usr/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(workdir /src)
(run (shell "sudo chown opam /src"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src zarith.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn zarith.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "base-bigarray.base base-threads.base base-unix.base conf-m4.1 dune.3.20.2 gmp.6.3.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.4 --depext-only -y zarith.dev $DEPS"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst /src))
(run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2025-09-29 07:25.11: Waiting for resource in pool OCluster
2025-09-29 08:56.17: Waiting for worker…
2025-09-29 08:58.13: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at 9de5ec3 revert a6ad837b (use ocamlc to test C compiler in configure)


(from ocaml/opam:debian-11-ocaml-4.14@sha256:51c591e6c3e34059cd87f5cf8e13185e736ca33b6c3d5fcc4f64f906a298aac9)
2025-09-29 08:58.14 ---> using "6c6f3c69a862a2c1cd8e4ca7a84bb25ac2cfd024c0aeb2f11c5b7cdb120e08bb" from cache


/: (comment debian-11-4.14_opam-2.4)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.4 /usr/bin/opam"))
2025-09-29 08:58.14 ---> using "26c12001c9ab99c4ad884998f2aa2bdbd51b689f9616b5547002669e2d4ed7eb" from cache


/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.


This version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.


Continue? [Y/n] y
[NOTE] The 'jobs' option was reset, its value was 255 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=255 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-09-29 08:58.14 ---> using "3ee537c800b77be7c41da3aac6729c05ada91e8c48ec248c73d34e84e86ab553" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 4.14.2
2.4.1
2025-09-29 08:58.14 ---> using "ede8cbda26ca548c915ee0580668cef88f417b8424eb89ddbd461dad1a801062" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2025-09-29 08:58.14 ---> using "349b7789ab630a9c8fbe3e2c315605dabdc1c2cf062055be744e74205668072b" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
bcac5d1731..11b6180fcd  master     -> origin/master
6ef6813522 Merge pull request #28449 from dra27/ocaml-compiler-msvc


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///home/opam/opam-repository


Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly at these versions (e.g. "opam upgrade ocaml.5.3.0"), which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-09-29 08:58.14 ---> using "30199c05afddf6c2eb110802e8c2220b544b8b0119c3e5c1441c68c7b1205a64" from cache


/src: (copy (src zarith.opam) (dst ./))
2025-09-29 08:58.14 ---> saved as "03e19a22332ef7d52ce17264f285de9704e319bce387549f77a419d688a18768"


/src: (run (network host)
(shell "opam pin add -yn zarith.dev './'"))
[zarith.dev] synchronised (file:///src)
zarith is now pinned to file:///src (version dev)
2025-09-29 08:58.17 ---> saved as "861ff0e500c3ad69125fef35160f34e74417106ca91a1a2da55675dbc9cbc133"


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-09-29 08:58.18 ---> saved as "69c6026c16eb7cd5f0a0492947005a56775d3e99023dcd7b9b1619670a34d40c"


/src: (env DEPS "base-bigarray.base base-threads.base base-unix.base conf-m4.1 dune.3.20.2 gmp.6.3.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1")


/src: (env CI true)


/src: (env OCAMLCI true)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.4 --depext-only -y zarith.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bullseye InRelease
- Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [27.2 kB]
- Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
- Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [410 kB]
- Fetched 437 kB in 7s (65.4 kB/s)
- Reading package lists...
- 


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[zarith.dev] synchronised (file:///src)


[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).


The following system packages will first need to be installed:
m4


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>


+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "m4"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libsigsegv2:amd64.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18342 files and directories currently installed.)
- Preparing to unpack .../libsigsegv2_2.13-1_amd64.deb ...
- Unpacking libsigsegv2:amd64 (2.13-1) ...
- Selecting previously unselected package m4.
- Preparing to unpack .../archives/m4_1.4.18-5_amd64.deb ...
- Unpacking m4 (1.4.18-5) ...
- Setting up libsigsegv2:amd64 (2.13-1) ...
- Setting up m4 (1.4.18-5) ...
- Processing triggers for libc-bin (2.31-13+deb11u13) ...
2025-09-29 08:58.47 ---> saved as "712da7929666fa56a9b450573172c129f409408e5220e1cb4d8b8792afa807c2"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 3 packages
- install conf-m4 1
- install dune    3.20.2
- install gmp     6.3.0


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved gmp.6.3.0  (cached)
-> installed conf-m4.1
-> retrieved dune.3.20.2  (cached)
-> installed dune.3.20.2
[ERROR] The compilation of gmp.6.3.0 failed at "dune build -p gmp -j 71".


#=== ERROR while compiling gmp.6.3.0 ==========================================#
# context     2.4.1 | linux/x86_64 | ocaml-base-compiler.4.14.2 | git+file:///home/opam/opam-repository
# path        ~/.opam/4.14/.opam-switch/build/gmp.6.3.0
# command     ~/.opam/4.14/bin/dune build -p gmp -j 71
# exit-code   1
# env-file    ~/.opam/log/gmp-1-6aecfd.env
# output-file ~/.opam/log/gmp-1-6aecfd.out
### output ###
# File "src/dune", lines 14-23, characters 0-357:
# 14 | (rule
# 15 |  (targets gmp.h libgmp.a dllgmp.so)
# 16 |  (deps gmp-6.3.0.tar.xz build.sh gcc.15.patch)
# 17 |  (action
# 18 |   (with-stdout-to
# 19 |    build.log
# 20 |    (run sh ./build.sh "%{ocaml-config:c_compiler}" "%{ocaml-config:host}"
# 21 |      "%{ocaml-config:target}" "%{ocaml-config:ocamlc_cflags}"
# 22 |      %{ocaml-config:supports_shared_libraries}
# 23 |      "%{ocaml-config:native_c_libraries}"))))
# (cd _build/default/src && /bin/sh ./build.sh gcc x86_64-pc-linux-gnu x86_64-pc-linux-gnu '-O2 -fno-strict-aliasing -fwrapv -pthread -fPIC' true '-lm -ldl') > _build/default/src/build.log
# configure: error: could not find a working compiler, see config.log for details


<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build gmp 6.3.0
+- 
+- The following changes have been performed
| - install conf-m4 1
| - install dune    3.20.2
+- 
# To update the current shell environment, run: eval $(opam env)


The former state can be restored with:
/usr/bin/opam switch import "/home/opam/.opam/4.14/.opam-switch/backup/state-20250929085848.export"
"/usr/bin/env" "bash" "-c" "opam install $DEPS" failed with exit status 31
2025-09-29 09:00.02: Job failed: Failed: Build failed