2024-04-14 13:02.39: New job: test sanette/tsdl-ttf https://github.com/sanette/tsdl-ttf.git#refs/heads/master (edb9b925c0ddf4dd00fb90ef67c7132b7ee351f6) (linux-x86_64:(lower-bound))
Base: ocaml/opam@sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/sanette/tsdl-ttf.git" -b "master" && cd "tsdl-ttf" && git reset --hard edb9b925
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea
# debian-12-4.03_opam-2.1
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.1 /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 cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 tsdl-ttf.opam ./
RUN opam pin add -yn tsdl-ttf.dev './'
ENV DEPS="base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libffi.2.0.0 conf-m4.1 conf-pkg-config.1.0 conf-sdl2.1 conf-sdl2-ttf.1 ctypes.0.9.0 ctypes-foreign.0.4.0 dune.2.7.0 dune-configurator.2.7.0 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.08.1 ocamlbuild.0.9.0 ocamlfind.1.8.1 ocamlfind-secondary.1.8.1 result.1.0 topkg.0.7.5 tsdl.0.9.1"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y tsdl-ttf.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
2024-04-14 13:02.39: Using cache hint "sanette/tsdl-ttf-ocaml/opam@sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea-debian-12-4.03_opam-2.1-0ae0e235b537183d37f89f8307b4d48d"
2024-04-14 13:02.39: Using OBuilder spec:
((from ocaml/opam@sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea)
(comment debian-12-4.03_opam-2.1)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.1 /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 cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src tsdl-ttf.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn tsdl-ttf.dev './'"))
(env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libffi.2.0.0 conf-m4.1 conf-pkg-config.1.0 conf-sdl2.1 conf-sdl2-ttf.1 ctypes.0.9.0 ctypes-foreign.0.4.0 dune.2.7.0 dune-configurator.2.7.0 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.08.1 ocamlbuild.0.9.0 ocamlfind.1.8.1 ocamlfind-secondary.1.8.1 result.1.0 topkg.0.7.5 tsdl.0.9.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.1 --depext-only -y tsdl-ttf.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"))
)
2024-04-14 13:02.39: Waiting for resource in pool OCluster
2024-04-14 13:02.42: Waiting for worker…
2024-04-14 13:02.42: Got resource from pool OCluster
Building on x86-bm-c17.sw.ocaml.org
All commits already cached
HEAD is now at edb9b92 version 0.6
(from ocaml/opam@sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea)
Unable to find image 'ocaml/opam@sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea' locally
docker.io/ocaml/opam@sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea: Pulling from ocaml/opam
Digest: sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea
Status: Downloaded newer image for ocaml/opam@sha256:efeda74a7308e07f1116c60f20e99e3316014c1a121f86b7a0cf4676fafe83ea
2024-04-14 13:03.11 ---> saved as "5e746ce75e4437cb8305c3242b0b72bc201345168ee5141ebd6738538e1ece83"
/: (comment debian-12-4.03_opam-2.1)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2024-04-14 13:03.11 ---> saved as "17730712d481f6de6d87f039733a29f54bc236fb415a7ed1b4487ab1828fae07"
/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.1, which can't be reverted.
You may want to back it up before going further.
Continue? [Y/n] y
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-04-14 13:04.35 ---> saved as "0daf33aedad7fb282aaac6c7833940bdb15b54d88d76fff8c6981e24105988f0"
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-101-generic
The OCaml toplevel, version 4.03.0
2.1.5
2024-04-14 13:04.35 ---> saved as "8ba57746c1588e360057937b5f9571685bd8a781186d299d6c3ac306404d108c"
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-04-14 13:04.35 ---> saved as "8a972db9ab987a0f7ac5a95a1c0017fef21f56ba02eb320ff0446f680f19bec7"
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && git log --no-decorate -n1 --oneline && opam update -u"))
cbb8cd94c3 conf-pkg-config: rename nixos pkgconfig -> pkg-config
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from 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, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2024-04-14 13:05.52 ---> saved as "634b48758bb06af6a80eb16daad88b8352796d524295f6057c6405e469bad83f"
/src: (copy (src tsdl-ttf.opam) (dst ./))
2024-04-14 13:05.52 ---> saved as "ff6a694800725b86fe360af25d8757d0ca99ce66c3c529a9bedf28e3ef94d9af"
/src: (run (network host)
(shell "opam pin add -yn tsdl-ttf.dev './'"))
[tsdl-ttf.dev] synchronised (file:///src)
tsdl-ttf is now pinned to file:///src (version dev)
2024-04-14 13:05.55 ---> saved as "f99b44e080147270fe4cf71b9cfa8a5cbb1c0030b2581cf06a5f014f206f030f"
/src: (env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libffi.2.0.0 conf-m4.1 conf-pkg-config.1.0 conf-sdl2.1 conf-sdl2-ttf.1 ctypes.0.9.0 ctypes-foreign.0.4.0 dune.2.7.0 dune-configurator.2.7.0 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.08.1 ocamlbuild.0.9.0 ocamlfind.1.8.1 ocamlfind-secondary.1.8.1 result.1.0 topkg.0.7.5 tsdl.0.9.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.1 --depext-only -y tsdl-ttf.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [151 kB]
- Fetched 255 kB in 0s (987 kB/s)
- Reading package lists...
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[tsdl-ttf.dev] synchronised (no changes)
[NOTE] Package ocaml-config is already installed (current version is 1).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.03.0).
[NOTE] Package ocaml is already installed (current version is 4.03.0).
[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:
libffi-dev libsdl2-dev libsdl2-ttf-dev m4 pkg-config
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libffi-dev" "libsdl2-dev" "libsdl2-ttf-dev" "m4" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Regenerating fonts cache...
2024-04-14 13:06.32 ---> saved as "55b1f8d97a84526dc42ff200f0207b8cc3283e9df1439ea7e70f84efadea4eac"
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-config is already installed (current version is 1).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.03.0).
[NOTE] Package ocaml is already installed (current version is 4.03.0).
[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 conf-pkg-config 1.0
- install conf-m4 1
- install ocamlbuild 0.9.0
- install result 1.0
- downgrade ocaml-secondary-compiler 4.08.1-1 to 4.08.1
- install conf-sdl2-ttf 1
- install conf-sdl2 1
- install conf-libffi 2.0.0
- install ocamlfind 1.8.1
- install ctypes-foreign 0.4.0
- install topkg 0.7.5
- install ocamlfind-secondary 1.8.1
- install base-bytes base
- install dune 2.7.0
- install ctypes 0.9.0
- install dune-configurator 2.7.0
- install tsdl 0.9.1
===== 16 to install | 1 to downgrade =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ctypes.0.9.0 (cached)
-> retrieved dune.2.7.0 (cached)
-> retrieved dune-configurator.2.7.0 (cached)
-> installed conf-m4.1
-> installed conf-pkg-config.1.0
-> retrieved ocaml-secondary-compiler.4.08.1 (cached)
-> retrieved ocamlfind.1.8.1 (cached)
-> installed conf-libffi.2.0.0
-> installed ctypes-foreign.0.4.0
-> installed conf-sdl2.1
-> installed conf-sdl2-ttf.1
-> retrieved ocamlfind-secondary.1.8.1 (cached)
-> retrieved ocamlbuild.0.9.0 (https://github.com/ocaml/ocamlbuild/archive/0.9.0.tar.gz)
-> retrieved result.1.0 (cached)
-> retrieved topkg.0.7.5 (cached)
-> retrieved tsdl.0.9.1 (http://erratique.ch/software/tsdl/releases/tsdl-0.9.1.tbz)
-> installed result.1.0
-> installed ocamlbuild.0.9.0
-> installed ocamlfind.1.8.1
-> installed base-bytes.base
-> installed topkg.0.7.5
-> installed ctypes.0.9.0
[ERROR] The compilation of tsdl.0.9.1 failed at "ocaml pkg/pkg.ml build --pinned false".
-> removed ocaml-secondary-compiler.4.08.1-1
-> installed ocaml-secondary-compiler.4.08.1
-> installed ocamlfind-secondary.1.8.1
-> installed dune.2.7.0
-> installed dune-configurator.2.7.0
#=== ERROR while compiling tsdl.0.9.1 =========================================#
# context 2.1.5 | linux/x86_64 | ocaml-base-compiler.4.03.0 | file:///home/opam/opam-repository
# path ~/.opam/4.03/.opam-switch/build/tsdl.0.9.1
# command ~/.opam/4.03/bin/ocaml pkg/pkg.ml build --pinned false
# exit-code 1
# env-file ~/.opam/log/tsdl-1-86b11a.env
# output-file ~/.opam/log/tsdl-1-86b11a.out
### output ###
# ocamlfind ocamlopt unix.cmxa -I /home/opam/.opam/4.03/lib/ocamlbuild /home/opam/.opam/4.03/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/opam/.opam/4.03/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# ocamlfind ocamldep -modules support/consts.ml > support/consts.ml.depends
# ocamlfind ocamlc -c -bin-annot -thread -I support -I src -I test -o support/consts.cmo support/consts.ml
# ocamlfind ocamlc -thread -ccopt -DHAS_SDL2 -ccopt -I/usr/include/SDL2 -ccopt -D_REENTRANT -c -o support/consts_stub.o support/consts_stub.c
# ocamlfind ocamlc -linkpkg -custom -thread support/consts.cmo -o support/consts.byte
# + ocamlfind ocamlc -linkpkg -custom -thread support/consts.cmo -o support/consts.byte
# /usr/bin/ld: /tmp/ccTQHr0h.o:(.data.rel+0x9d8): undefined reference to `output_consts'
# collect2: error: ld returned 1 exit status
# File "_none_", line 1:
# Error: Error while building custom runtime system
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ["ocamlbuild"; "-use-ocamlfind"; "-classic-display"; "-build-dir";
# "_build"; "opam"; "pkg/META"; "CHANGES.md"; "LICENSE.md"; "README.md";
# "src/tsdl.a"; "src/tsdl.cmxs"; "src/tsdl.cmxa"; "src/tsdl.cma";
# "src/tsdl.cmx"; "src/tsdl.cmi"; "src/tsdl.mli"; "src/tsdl_consts.cmx";
# "src/tsdl_top.a"; "src/tsdl_top.cmxs"; "src/tsdl_top.cmxa";
# "src/tsdl_top.cma"; "src/tsdl_top.cmx"; "src/tsdl_top_init.ml";
# "src/dlltsdl.so"; "src/libtsdl.a"; "README.md"; "CHANGES.md";
# "test/min.ml"; "test/minc.c"]: exited with 10
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build tsdl 0.9.1
+-
+- The following changes have been performed
| - downgrade ocaml-secondary-compiler 4.08.1-1 to 4.08.1
| - install base-bytes base
| - install conf-libffi 2.0.0
| - install conf-m4 1
| - install conf-pkg-config 1.0
| - install conf-sdl2 1
| - install conf-sdl2-ttf 1
| - install ctypes 0.9.0
| - install ctypes-foreign 0.4.0
| - install dune 2.7.0
| - install dune-configurator 2.7.0
| - install ocamlbuild 0.9.0
| - install ocamlfind 1.8.1
| - install ocamlfind-secondary 1.8.1
| - install result 1.0
| - install topkg 0.7.5
+-
# Run eval $(opam env) to update the current shell environment
The former state can be restored with:
/usr/bin/opam switch import "/home/opam/.opam/4.03/.opam-switch/backup/state-20240414130632.export"
"/usr/bin/env" "bash" "-c" "opam install $DEPS" failed with exit status 31
2024-04-14 13:11.46: Job failed: Failed: Build failed