2024-03-27 15:25.26: New job: test ygrek/ocaml-zstd https://github.com/ygrek/ocaml-zstd.git#refs/heads/master (c50809df5c0474454740948ad0e7a1c77461cce0) (linux-x86_64:debian-12-4.03_opam-2.1)
Base: ocaml/opam@sha256:fe008f1ddfdb65ee9f4c7b03f80350ea247fd8fa6e75454bba3fe07f78f877a9
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/ygrek/ocaml-zstd.git" -b "master" && cd "ocaml-zstd" && git reset --hard c50809df
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:fe008f1ddfdb65ee9f4c7b03f80350ea247fd8fa6e75454bba3fe07f78f877a9
# 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 zstd.opam ./
RUN opam pin add -yn zstd.dev './'
ENV DEPS="base-bigarray.base base-threads.base base-unix.base bigarray-compat.1.1.0 conf-pkg-config.3 conf-zstd.1.3.8 cppo.1.6.9 csexp.1.5.2 ctypes.0.22.0 dune.3.14.2 dune-configurator.2.9.3 extlib.1.7.9 integers.0.7.0 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.08.1-1 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 result.1.5 stdlib-shims.0.3.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y zstd.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-03-27 15:25.26: Using cache hint "ygrek/ocaml-zstd-ocaml/opam@sha256:fe008f1ddfdb65ee9f4c7b03f80350ea247fd8fa6e75454bba3fe07f78f877a9-debian-12-4.03_opam-2.1-5e292e6c33e921bc555e8b5f4fb47d74"
2024-03-27 15:25.26: Using OBuilder spec:
((from ocaml/opam@sha256:fe008f1ddfdb65ee9f4c7b03f80350ea247fd8fa6e75454bba3fe07f78f877a9)
(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 zstd.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn zstd.dev './'"))
(env DEPS "base-bigarray.base base-threads.base base-unix.base bigarray-compat.1.1.0 conf-pkg-config.3 conf-zstd.1.3.8 cppo.1.6.9 csexp.1.5.2 ctypes.0.22.0 dune.3.14.2 dune-configurator.2.9.3 extlib.1.7.9 integers.0.7.0 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.08.1-1 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 result.1.5 stdlib-shims.0.3.0")
(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 zstd.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-03-27 15:25.26: Waiting for resource in pool OCluster
2024-03-27 16:48.47: Waiting for worker…
2024-03-27 16:49.27: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at c50809d Bump version
(from ocaml/opam@sha256:fe008f1ddfdb65ee9f4c7b03f80350ea247fd8fa6e75454bba3fe07f78f877a9)
2024-03-27 17:11.30 ---> saved as "29ed3c9146b1a70799dc5e84f2a1b72ca8dd14bd0ed14fc6abd0f9672151b3a4"
/: (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-03-27 17:11.31 ---> saved as "c5bb58d07731bfb9c1b102104960b56b81846076fd42b8bd7715f6ca9cb7d20c"
/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-03-27 17:12.20 ---> saved as "6c1f5e6c39eb2bf0feb43ff8c1cdeee2380a77cf4be600dbacf6364ff77f4630"
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-100-generic
The OCaml toplevel, version 4.03.0
2.1.5
2024-03-27 17:12.21 ---> saved as "b952af5aaa7e1340bea3782f8c2fa5b2825d1b159a965b96240108eb98580b7b"
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-03-27 17:12.21 ---> saved as "1bbd171167ffde64d66ff77bf5b2fbd449e6ed4529ce75d073354defc13cfba4"
/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"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
a6ba98231d..fe00df86c9 master -> origin/master
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-03-27 17:13.13 ---> saved as "6e7185fcd08fe5f21dcd64747caa3d6d5c9103a87b5398d3fd8b1ef868a2d4d7"
/src: (copy (src zstd.opam) (dst ./))
2024-03-27 17:13.13 ---> saved as "f35299055d43aa0532b790ad339c4a5f6cb33005e6e18cd612d6805cbaaf7f09"
/src: (run (network host)
(shell "opam pin add -yn zstd.dev './'"))
[zstd.dev] synchronised (file:///src)
zstd is now pinned to file:///src (version dev)
2024-03-27 17:13.15 ---> saved as "fb6f71650e7fc3ab09c100b7b6a1ce2b302360cc015835cc1542bb381d6ddd27"
/src: (env DEPS "base-bigarray.base base-threads.base base-unix.base bigarray-compat.1.1.0 conf-pkg-config.3 conf-zstd.1.3.8 cppo.1.6.9 csexp.1.5.2 ctypes.0.22.0 dune.3.14.2 dune-configurator.2.9.3 extlib.1.7.9 integers.0.7.0 ocaml.4.03.0 ocaml-base-compiler.4.03.0 ocaml-config.1 ocaml-secondary-compiler.4.08.1-1 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 result.1.5 stdlib-shims.0.3.0")
/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 zstd.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 [147 kB]
- Fetched 251 kB in 0s (664 kB/s)
- Reading package lists...
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[zstd.dev] synchronised (no changes)
[NOTE] Package ocaml-secondary-compiler is already installed (current version is 4.08.1-1).
[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:
libzstd-dev pkg-config
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libzstd-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
2024-03-27 17:13.28 ---> saved as "8f050203f901dab82c251b993fd68ba02fe1d6ae12bfd2832d8bebcc0d6955dc"
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-secondary-compiler is already installed (current version is 4.08.1-1).
[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 3
- install ocamlfind 1.9.6
- install conf-zstd 1.3.8
- install ocamlfind-secondary 1.9.6
- install dune 3.14.2
- install stdlib-shims 0.3.0
- install result 1.5
- install csexp 1.5.2
- install cppo 1.6.9
- install bigarray-compat 1.1.0
- install integers 0.7.0
- install dune-configurator 2.9.3
- install extlib 1.7.9
- install ctypes 0.22.0
===== 14 to install =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0 (cached)
-> retrieved cppo.1.6.9 (cached)
-> retrieved csexp.1.5.2 (cached)
-> installed conf-pkg-config.3
-> retrieved ctypes.0.22.0 (cached)
-> installed conf-zstd.1.3.8
-> retrieved extlib.1.7.9 (cached)
-> retrieved integers.0.7.0 (cached)
-> retrieved ocamlfind.1.9.6 (cached)
-> retrieved ocamlfind-secondary.1.9.6 (cached)
-> retrieved result.1.5 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved dune-configurator.2.9.3 (cached)
-> retrieved dune.3.14.2 (cached)
-> installed ocamlfind.1.9.6
-> installed ocamlfind-secondary.1.9.6
-> installed dune.3.14.2
-> installed csexp.1.5.2
-> installed bigarray-compat.1.1.0
-> installed result.1.5
-> installed stdlib-shims.0.3.0
-> installed integers.0.7.0
-> installed cppo.1.6.9
-> installed dune-configurator.2.9.3
-> installed extlib.1.7.9
-> installed ctypes.0.22.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-03-27 17:14.10 ---> saved as "e9a3bfa763b4dfc7fbaefe8cff425db1f3453b9b4e50e52d21b715c29c349a9f"
/src: (copy (src .) (dst /src))
2024-03-27 17:14.10 ---> saved as "8d594fec261310fb46900bcda307a496d2d24de789154e2398cc83e3ff3e65a3"
/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/stubs && /usr/bin/gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -fcommon -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -fdiagnostics-color=always -I /home/opam/.opam/4.03/lib/ocaml -I /home/opam/.opam/4.03/lib/ctypes -I /home/opam/.opam/4.03/lib/ctypes/stubs -I /home/opam/.opam/4.03/lib/integers -o libzstd__c_cout_generated_functions__Function_description__Functions.o -c libzstd__c_cout_generated_functions__Function_description__Functions.c)
libzstd__c_cout_generated_functions__Function_description__Functions.c: In function 'libzstd_stubs_3_ZSTD_getErrorName':
libzstd__c_cout_generated_functions__Function_description__Functions.c:28:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
28 | char* x18 = ZSTD_getErrorName(x15);
| ^~~~~~~~~~~~~~~~~
(cd _build/default/test && ./test.exe)
/bin/bash : best compression 2.3x at level 19 : 1265648 -> 549720
/src/_build/default/test/test.exe : best compression 3.9x at level 19 : 1871344 -> 485664
/etc/ld.so.cache : best compression 5.3x at level 16 : 16494 -> 3132
environment : best compression 2.2x at level 13 : 1422 -> 640
2024-03-27 17:14.16 ---> saved as "e239af27abbaacbfe831ab2596c23f6fd5f7823b80803bce9f9dfff3c87c046e"
Job succeeded
2024-03-27 17:14.16: Job succeeded