Organisationssanettetsdl-imagec63b30 ()(lower-bound)

(lower-bound)

Link Copied
Code Copied

Logs

2024-05-14 13:03.49: New job: test sanette/tsdl-image https://github.com/sanette/tsdl-image.git#refs/pull/11/head (c63b3074c42930d01c8f9883d3581e602759a74a) (linux-x86_64:(lower-bound))
Base: ocaml/opam@sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/sanette/tsdl-image.git" && cd "tsdl-image" && git fetch origin "refs/pull/11/head" && git reset --hard c63b3074
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290
# 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 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 tsdl-image.opam ./
RUN opam pin add -yn tsdl-image.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-image.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-image.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-05-14 13:03.49: Using cache hint "sanette/tsdl-image-ocaml/opam@sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290-debian-12-4.03_opam-2.1-851a73cc94cc6a64fd3bcee291b7cbaa"
2024-05-14 13:03.49: Using OBuilder spec:
((from ocaml/opam@sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290)
 (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 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src tsdl-image.opam) (dst ./))
 (run (network host)
      (shell "opam pin add -yn tsdl-image.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-image.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-image.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-05-14 13:03.49: Waiting for resource in pool OCluster
2024-05-14 13:03.54: Waiting for worker…
2024-05-14 13:03.54: Got resource from pool OCluster
Building on x86-bm-c18.sw.ocaml.org
All commits already cached
HEAD is now at c63b307 Make shared library search lazy


(from ocaml/opam@sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290)
Unable to find image 'ocaml/opam@sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290' locally
docker.io/ocaml/opam@sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290: Pulling from ocaml/opam
84082c1d7b36: Pulling fs layer
84082c1d7b36: Verifying Checksum
84082c1d7b36: Download complete
84082c1d7b36: Pull complete
Digest: sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290
Status: Downloaded newer image for ocaml/opam@sha256:6fd204445a42318dec1d522862f1a0c262f02010d04aaeaa4d301d1d77e01290
2024-05-14 13:05.44 ---> saved as "c13fd511d8f07c459ff1f91254c2010ec19e559cfccc25ffa7b9832650bfc458"


/: (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-05-14 13:05.44 ---> saved as "26aeff56ca68cd58f5a591ad8b6826464c1dbcd8f6294a87f3e1aaa980cb2ef8"


/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-05-14 13:07.04 ---> saved as "fea9f90b78a779a8fc74502fbae0d767f794b57922519577f21f911b40de9d6e"


/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-05-14 13:07.04 ---> saved as "be9e851b7c71b2f58900eba10fa3396a16a54ae49b42d40286dfb1b1e914ebc8"


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-05-14 13:07.04 ---> saved as "93f89608b33cc5ff6df5693f97a2920f0a86216d1a6c5a1ef0b7545f3d235b37"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u"))
2275b40053 @dra27 maintains ocaml-secondary-compiler


<><> 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-05-14 13:08.12 ---> saved as "34544c47d2c06bb79addc84d41dca128d3fb51078aab4750f0fb26daf7e191e9"


/src: (copy (src tsdl-image.opam) (dst ./))
2024-05-14 13:08.12 ---> saved as "521dfe52c3dfa3987b2b3aa608baf41330f32052a57843564e6021a71bdd3217"


/src: (run (network host)
           (shell "opam pin add -yn tsdl-image.dev './'"))
[tsdl-image.dev] synchronised (file:///src)
tsdl-image is now pinned to file:///src (version dev)
2024-05-14 13:08.14 ---> saved as "4c123bd82531b337a2510ec7da324737363cf70aa86eda7cebd368d7e7e6d7a4"


/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-image.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-image.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]
- Fetched 103 kB in 0s (458 kB/s)
- Reading package lists...


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[tsdl-image.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-image-dev m4 pkg-config


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libffi-dev" "libsdl2-dev" "libsdl2-image-dev" "m4" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed


- Regenerating fonts cache... 


2024-05-14 13:08.54 ---> saved as "07275a81cdbdc70bfdde5feea56ba9994f83996270b9492603a7456b15386b87"


/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-image          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 ocamlbuild.0.9.0  (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-image.1
-> retrieved ocamlfind-secondary.1.8.1  (cached)
-> retrieved result.1.0  (cached)
-> retrieved topkg.0.7.5  (cached)
-> retrieved tsdl.0.9.1  (cached)
-> 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-b8eae2.env
# output-file ~/.opam/log/tsdl-1-b8eae2.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/ccdE7aHU.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-image          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-20240514130855.export"
"/usr/bin/env" "bash" "-c" "opam install $DEPS" failed with exit status 31
2024-05-14 13:13.30: Job failed: Failed: Build failed