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:(lint-doc))
Base: ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
Opam project lint documentation
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:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
# debian-12-4.02_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-ocamlbuild.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 ctypes.0.18.0 dune.3.14.2 extlib.1.7.9 integers.0.4.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.08.1-1 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6"
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
RUN opam depext -i conf-m4 && opam depext -i dune 'odoc>=1.5.0'
COPY --chown=1000:1000 . /src/
RUN ODOC_WARN_ERROR=false opam exec -- dune build @doc || (echo "dune build @doc failed"; exit 2)
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2024-03-27 15:25.26: Using cache hint "ygrek/ocaml-zstd-ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809-debian-12-4.02_opam-2.1-d8f36d0f9f28c7b016f7c5d6f0293397"
2024-03-27 15:25.26: Using OBuilder spec:
((from ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809)
(comment debian-12-4.02_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-ocamlbuild.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 ctypes.0.18.0 dune.3.14.2 extlib.1.7.9 integers.0.4.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.08.1-1 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6")
(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"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i conf-m4 && opam depext -i dune 'odoc>=1.5.0'"))
(copy (src .) (dst /src/))
(run (shell "ODOC_WARN_ERROR=false opam exec -- dune build @doc || (echo \"dune build @doc failed\"; exit 2)"))
)
2024-03-27 15:25.26: Waiting for resource in pool OCluster
2024-03-27 16:49.28: Waiting for worker…
2024-03-27 17:00.41: Got resource from pool OCluster
Building on x86-bm-c14.sw.ocaml.org
All commits already cached
HEAD is now at c50809d Bump version
(from ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809)
Unable to find image 'ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809' locally
docker.io/ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809: Pulling from ocaml/opam
Digest: sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
Status: Downloaded newer image for ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
2024-03-27 17:01.21 ---> saved as "e4ba768d890dc0a9ff55e849fae0ca07f09b7f1c09b18efc19ffb4619f867357"
/: (comment debian-12-4.02_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:01.21 ---> saved as "2fd78cc77d73ae1fe3d7f7fe066def479aea7c419e4d47bc988740028d734856"
/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:02.41 ---> saved as "f40b005e6e5783ae6048980ce179df5e5c472f689b630509ae80cce09f4f81af"
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-100-generic
The OCaml toplevel, version 4.02.3
2.1.5
2024-03-27 17:02.41 ---> saved as "3b061f6683b59b43140f1af9b7008d0f19c695253f5919d604d7a2c7300bb5f8"
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-03-27 17:02.41 ---> saved as "eb9b0c5dbf4fd18c2108839b962375454dbc47d5d6a07896b322809780c3a0de"
/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:04.09 ---> saved as "47ac3bb10d10a348f10ad4b6d776181657938675e070b6dd459236b00d5a01ff"
/src: (copy (src zstd.opam) (dst ./))
2024-03-27 17:04.10 ---> saved as "591ba60a906afbb5693669c6e3d09e5778ba454ade132062055b3a3c0b9fefce"
/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:04.11 ---> saved as "be84805b583ef1de7a2294348e020d6c2c34f7a78d7fd0fad28779da2fb088f4"
/src: (env DEPS "base-bigarray.base base-ocamlbuild.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 ctypes.0.18.0 dune.3.14.2 extlib.1.7.9 integers.0.4.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.08.1-1 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6")
/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 (967 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.02.3).
[NOTE] Package ocaml is already installed (current version is 4.02.3).
[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-ocamlbuild 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:04.32 ---> saved as "1bb6dad5a4e206c5ede876e60aaa2ca9d447504cbf7b3ae5550ff837762c8f9e"
/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.02.3).
[NOTE] Package ocaml is already installed (current version is 4.02.3).
[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-ocamlbuild 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 integers 0.4.0
- install cppo 1.6.9
- install bigarray-compat 1.1.0
- install extlib 1.7.9
- install ctypes 0.18.0
===== 10 to install =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0 (cached)
-> retrieved cppo.1.6.9 (cached)
-> retrieved ctypes.0.18.0 (cached)
-> installed conf-pkg-config.3
-> retrieved extlib.1.7.9 (cached)
-> retrieved integers.0.4.0 (cached)
-> installed conf-zstd.1.3.8
-> retrieved ocamlfind.1.9.6 (cached)
-> retrieved ocamlfind-secondary.1.9.6 (cached)
-> retrieved dune.3.14.2 (cached)
-> installed ocamlfind.1.9.6
-> installed ocamlfind-secondary.1.9.6
-> installed dune.3.14.2
-> installed bigarray-compat.1.1.0
-> installed integers.0.4.0
-> installed cppo.1.6.9
-> installed extlib.1.7.9
-> installed ctypes.0.18.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-03-27 17:05.58 ---> saved as "ebeb027310a42d7e7936a10751a326a5732f038b2f4089c9783f7101f574c7e1"
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i conf-m4 && opam depext -i dune 'odoc>=1.5.0'"))
Opam plugin "depext" may require upgrading/reinstalling. Reinstall the plugin on the current switch? [Y/n] y
The following actions will be performed:
- recompile opam-depext 1.2.1-1
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.1-1 (cached)
-> removed opam-depext.1.2.1-1
-> installed opam-depext.1.2.1-1
Done.
<><> opam-depext.1.2.1-1 installed successfully <><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment
<><> Carrying on to "opam depext -i conf-m4" ><><><><><><><><><><><><><><><><><>
You are using opam 2.1+, where external dependency handling has been integrated: consider calling opam directly, the 'depext' plugin interface is provided for backwards compatibility only
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# The following system packages are needed:
m4
The following actions will be performed:
- install conf-m4 1
The following system packages will first need to be installed:
m4
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "m4"
- debconf: delaying package configuration, since apt-utils is not installed
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-m4.1
Done.
# Run eval $(opam env) to update the current shell environment
You are using opam 2.1+, where external dependency handling has been integrated: consider calling opam directly, the 'depext' plugin interface is provided for backwards compatibility only
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
[NOTE] Package dune is already installed (current version is 3.14.2).
The following actions will be performed:
- install seq 0.3.1 [required by tyxml]
- install ocamlbuild 0 [required by fmt, cmdliner, astring, etc.]
- install result 1.4 [required by odoc]
- install base-bytes base [required by astring]
- install camlp-streams 5.0.1 [required by odoc-parser]
- install re 1.10.3 [required by tyxml]
- install uchar 0.0.2 [required by fmt]
- install topkg 1.0.0 [required by fmt, astring, cmdliner, fpath]
- install cmdliner 1.0.2 [required by odoc]
- install astring 0.8.3 [required by odoc]
- install uutf 1.0.2 [required by tyxml]
- install fmt 0.8.5 [required by odoc]
- install crunch 1.4.1 [required by odoc]
- install odoc-parser 2.4.1 [required by odoc]
- install fpath 0.7.2 [required by odoc]
- install tyxml 4.5.0 [required by odoc]
- install odoc 2.4.1
===== 17 to install =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed base-bytes.base
-> retrieved astring.0.8.3 (cached)
-> retrieved camlp-streams.5.0.1 (cached)
-> retrieved cmdliner.1.0.2 (cached)
-> retrieved crunch.1.4.1 (cached)
-> installed ocamlbuild.0
-> retrieved fmt.0.8.5 (cached)
-> retrieved fpath.0.7.2 (cached)
-> retrieved re.1.10.3 (cached)
-> retrieved result.1.4 (cached)
-> retrieved seq.0.3.1 (cached)
-> retrieved topkg.1.0.0 (cached)
-> installed camlp-streams.5.0.1
-> retrieved tyxml.4.5.0 (cached)
-> retrieved uchar.0.0.2 (cached)
-> retrieved uutf.1.0.2 (cached)
-> installed seq.0.3.1
-> installed result.1.4
-> retrieved odoc.2.4.1 (cached)
-> retrieved odoc-parser.2.4.1 (cached)
-> installed re.1.10.3
-> installed uchar.0.0.2
-> installed topkg.1.0.0
-> installed astring.0.8.3
-> installed cmdliner.1.0.2
-> installed fpath.0.7.2
-> installed uutf.1.0.2
-> installed fmt.0.8.5
-> installed odoc-parser.2.4.1
-> installed tyxml.4.5.0
-> installed crunch.1.4.1
-> installed odoc.2.4.1
Done.
# Run eval $(opam env) to update the current shell environment
2024-03-27 17:10.01 ---> saved as "ec986cf9e79bdb3266a248ef348533944521541643fcc4ad07b1456508610958"
/src: (copy (src .) (dst /src/))
2024-03-27 17:10.01 ---> saved as "c455d867c1d0c1e8b8ad30dec8cc303d6f4c36630bb3e3a238d8bf22071aa169"
/src: (run (shell "ODOC_WARN_ERROR=false opam exec -- dune build @doc || (echo \"dune build @doc failed\"; exit 2)"))
(cd _build/default && /home/opam/.opam/4.02/bin/ocamlc.opt -w @1..3@5..28@30..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -bin-annot -I stubs/.zstd_stubs.objs/byte -I /home/opam/.opam/4.02/lib/ctypes -I /home/opam/.opam/4.02/lib/integers -no-alias-deps -open Zstd_stubs -o stubs/.zstd_stubs.objs/byte/zstd_stubs__Libzstd__c_generated_types.cmo -c -impl stubs/libzstd__c_generated_types.ml)
File "stubs/libzstd__c_generated_types.ml", line 7, characters 9-15:
Warning 9: the following labels are not bound in this record pattern:
read, write, format_typ, format
Either bind these labels explicitly or add '; _' to the pattern.
File "stubs/libzstd__c_generated_types.ml", line 17, characters 9-15:
Warning 9: the following labels are not bound in this record pattern:
read, write, format_typ, format
Either bind these labels explicitly or add '; _' to the pattern.
File "stubs/libzstd__c_generated_types.ml", line 29, characters 24-31:
Warning 27: unused variable typedef.
File "stubs/libzstd__c_generated_types.ml", line 29, characters 33-43:
Warning 27: unused variable unexpected.
File "stubs/libzstd__c_generated_types.ml", line 29, characters 45-50:
Warning 27: unused variable alist.
File "stubs/libzstd__c_generated_types.ml", line 1:
Error: Some fatal warnings were triggered (5 occurrences)
dune build @doc failed
"/usr/bin/env" "bash" "-c" "ODOC_WARN_ERROR=false opam exec -- dune build @doc || (echo "dune build @doc failed"; exit 2)" failed with exit status 2
2024-03-27 17:10.02: Job failed: Failed: Build failed