Organisationsavsmocaml-ctypes8e58a5 (master)(lint-doc)

(lint-doc)

Link Copied
Code Copied

Logs

2024-09-05 12:29.43: New job: test avsm/ocaml-ctypes https://github.com/avsm/ocaml-ctypes.git#refs/heads/master (8e58a54e3d8b4657e856570ffecf4941d8d676ab) (linux-x86_64:(lint-doc))
Base: ocaml/opam:debian-12-ocaml-4.02@sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407
Opam project lint documentation


To reproduce locally:


git clone --recursive "https://github.com/avsm/ocaml-ctypes.git" -b "master" && cd "ocaml-ctypes" && git reset --hard 8e58a54e
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.02@sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407
# debian-12-4.02_opam-2.2
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.2 /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 e90d00913cec22ea90c21ecb282c1f0b955a7959 || git fetch origin master) && git reset -q --hard e90d00913cec22ea90c21ecb282c1f0b955a7959 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 ctypes.opam ctypes-foreign.opam ./
RUN opam pin add -yn ctypes.dev './' && \
    opam pin add -yn ctypes-foreign.dev './'
ENV DEPS="base-bigarray.base base-bytes.base base-ocamlbuild.base base-threads.base base-unix.base bigarray-compat.1.1.0 conf-ncurses.1 conf-pkg-config.3 cppo.1.7.0 dune.3.16.0 host-arch-x86_64.1 host-system-other.1 integers.0.4.0 lwt.4.2.1-1 mmap.1.2.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 ounit.2.2.2 ounit2.2.2.2 result.1.5 seq.0.3.1 stdlib-shims.0.3.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.2 --depext-only -y ctypes.dev ctypes-foreign.dev $DEPS
RUN opam install $DEPS
RUN opam install --yes 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-09-05 12:29.43: Using cache hint "avsm/ocaml-ctypes-ocaml/opam:debian-12-ocaml-4.02@sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407-debian-12-4.02_opam-2.2-87b94a967bf65fa546e1084c1daea1f8"
2024-09-05 12:29.43: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.02@sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407)
 (comment debian-12-4.02_opam-2.2)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.2 /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 e90d00913cec22ea90c21ecb282c1f0b955a7959 || git fetch origin master) && git reset -q --hard e90d00913cec22ea90c21ecb282c1f0b955a7959 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src ctypes.opam ctypes-foreign.opam) (dst ./))
 (run (network host)
      (shell  "opam pin add -yn ctypes.dev './' && \
             \nopam pin add -yn ctypes-foreign.dev './'"))
 (env DEPS "base-bigarray.base base-bytes.base base-ocamlbuild.base base-threads.base base-unix.base bigarray-compat.1.1.0 conf-ncurses.1 conf-pkg-config.3 cppo.1.7.0 dune.3.16.0 host-arch-x86_64.1 host-system-other.1 integers.0.4.0 lwt.4.2.1-1 mmap.1.2.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 ounit.2.2.2 ounit2.2.2.2 result.1.5 seq.0.3.1 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.2 --depext-only -y ctypes.dev ctypes-foreign.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 install --yes 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-09-05 12:29.43: Waiting for resource in pool OCluster
2024-09-05 22:01.47: Waiting for worker…
2024-09-05 22:07.07: Got resource from pool OCluster
Building on x86-bm-c1.sw.ocaml.org
All commits already cached
HEAD is now at 8e58a54 ctypes-foreign: add win32 depext


(from ocaml/opam:debian-12-ocaml-4.02@sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.02@sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407' locally
docker.io/ocaml/opam@sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407: Pulling from ocaml/opam
85d86b252258: Pulling fs layer
85d86b252258: Verifying Checksum
85d86b252258: Download complete
85d86b252258: Pull complete
Digest: sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407
Status: Downloaded newer image for ocaml/opam@sha256:ff3c74f76e05c9946bc36351e4ed8b681a4cbb23a62fbd2a0bd79da63ce99407
2024-09-05 22:07.07 ---> using "246366219ef4f081cfd01b9dc33020df77cdf06d7298b441f117b8b192ee5b7b" from cache


/: (comment debian-12-4.02_opam-2.2)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
2024-09-05 22:07.07 ---> using "fadb62dd753b9ce472ae51c7fc52deb86f534c3523328ec3da1cba362677336c" 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 development 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
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-09-05 22:07.07 ---> using "a493cef0ca65c463c51269f5da3976d8e498d7a1ea3b1ebdfb28918637589615" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-119-generic
The OCaml toplevel, version 4.02.3
2.2.1
2024-09-05 22:07.07 ---> using "faa8f2ff2d8189a7ae95e6dd9404af24381960f2d7e2a702abc96b69bc3e0e0c" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-09-05 22:07.07 ---> using "f17bf612a8aaa3e06e39c5ae10f2d2947121a187627cf587b3059fe46d43f3ee" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e e90d00913cec22ea90c21ecb282c1f0b955a7959 || git fetch origin master) && git reset -q --hard e90d00913cec22ea90c21ecb282c1f0b955a7959 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   e89899ac28..2c9b57d0d2  master     -> origin/master
e90d00913c Merge pull request #26471 from dkalinichenko-js/js-comp


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


The following actions will be performed:
=== upgrade 1 package
  - upgrade ocaml-secondary-compiler 4.08.1-1 to 4.14.2
=== install 2 packages
  - install host-arch-x86_64         1
  - install host-system-other        1


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed host-arch-x86_64.1
-> installed host-system-other.1
-> retrieved ocaml-secondary-compiler.4.14.2  (cached)
-> removed   ocaml-secondary-compiler.4.08.1-1
-> installed ocaml-secondary-compiler.4.14.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-09-05 22:07.07 ---> using "eac64d16fa84d2f9f5cb96442bdeecd1ca111272c43e3a5a5448ff581c7957bf" from cache


/src: (copy (src ctypes.opam ctypes-foreign.opam) (dst ./))
2024-09-05 22:07.07 ---> using "a71a36d2de251e1cce892f6c097f4f286f65231fca35421b795b4f183b945410" from cache


/src: (run (network host)
           (shell  "opam pin add -yn ctypes.dev './' && \
                  \nopam pin add -yn ctypes-foreign.dev './'"))
[ctypes.dev] synchronised (file:///src)
[WARNING] Failed checks on ctypes package definition from source at file:///src:
  warning 48: The fields 'build-test:' and 'build-doc:' are deprecated, and should be replaced by uses of the 'with-test' and 'with-doc' filter variables in the 'build:' and 'install:' fields, and by the newer 'run-test:' field
    error 52: Package is needlessly flagged "light-uninstall", since it has no remove instructions
ctypes is now pinned to file:///src (version dev)
[ctypes-foreign.dev] synchronised (file:///src)
[WARNING] Failed checks on ctypes-foreign package definition from source at file:///src:
    error  3: File format error in 'depends' at line 47, column 0: Duplicate field depends
  warning 47: Synopsis should start with a capital and not end with a dot
  warning 68: Missing field 'license'
ctypes-foreign is now pinned to file:///src (version dev)
2024-09-05 22:07.11 ---> saved as "617c3b1a903623c0b52a31b59f8305cbb176ff9b762ffc323fa7f1463b5b22ac"


/src: (env DEPS "base-bigarray.base base-bytes.base base-ocamlbuild.base base-threads.base base-unix.base bigarray-compat.1.1.0 conf-ncurses.1 conf-pkg-config.3 cppo.1.7.0 dune.3.16.0 host-arch-x86_64.1 host-system-other.1 integers.0.4.0 lwt.4.2.1-1 mmap.1.2.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-secondary-compiler.4.14.2 ocamlfind.1.9.6 ocamlfind-secondary.1.9.6 ounit.2.2.2 ounit2.2.2.2 result.1.5 seq.0.3.1 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.2 --depext-only -y ctypes.dev ctypes-foreign.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
- 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 bookworm/main amd64 Packages [8787 kB]
- Get:5 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [179 kB]
- Fetched 9221 kB in 1s (6821 kB/s)
- Reading package lists...


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ctypes.dev] synchronised (no changes)
[ctypes-foreign.dev] synchronised (no changes)


[NOTE] Package ocaml-secondary-compiler is already installed (current version is 4.14.2).
[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 host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[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:
    libffi-dev ncurses-dev pkg-config


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


+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libffi-dev" "ncurses-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed


2024-09-05 22:07.36 ---> saved as "4c2de4e038689a868c6fc5d446e49de2599c2d7eca3ed4a2df12db6a4a3b7e50"


/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.14.2).
[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 host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[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 16 packages
  - install base-bytes          base
  - install bigarray-compat     1.1.0
  - install conf-ncurses        1
  - install conf-pkg-config     3
  - install cppo                1.7.0
  - install dune                3.16.0
  - install integers            0.4.0
  - install lwt                 4.2.1-1
  - install mmap                1.2.0
  - install ocamlfind           1.9.6
  - install ocamlfind-secondary 1.9.6
  - install ounit               2.2.2
  - install ounit2              2.2.2
  - install result              1.5
  - install seq                 0.3.1
  - install stdlib-shims        0.3.0


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved cppo.1.7.0  (cached)
-> installed conf-pkg-config.3
-> retrieved integers.0.4.0  (cached)
-> retrieved lwt.4.2.1-1  (cached)
-> installed conf-ncurses.1
-> retrieved mmap.1.2.0  (cached)
-> retrieved ocamlfind.1.9.6, ocamlfind-secondary.1.9.6  (cached)
-> retrieved result.1.5  (cached)
-> retrieved seq.0.3.1  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved dune.3.16.0  (cached)
-> retrieved ounit.2.2.2, ounit2.2.2.2  (https://github.com/gildor478/ounit/releases/download/v2.2.2/ounit-v2.2.2.tbz)
-> installed ocamlfind.1.9.6
-> installed base-bytes.base
-> installed ocamlfind-secondary.1.9.6
-> installed dune.3.16.0
-> installed seq.0.3.1
-> installed result.1.5
-> installed stdlib-shims.0.3.0
-> installed bigarray-compat.1.1.0
-> installed mmap.1.2.0
-> installed integers.0.4.0
-> installed ounit2.2.2.2
-> installed ounit.2.2.2
-> installed cppo.1.7.0
-> installed lwt.4.2.1-1
Done.
# Run eval $(opam env) to update the current shell environment
2024-09-05 22:09.03 ---> saved as "9b8291918b458ddf284ee29eb64e9aa929e52bfe3b3cf9500eba527969aaf434"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam install --yes dune 'odoc>=1.5.0'"))
[NOTE] Package dune is already installed (current version is 3.16.0).
The following actions will be performed:
=== downgrade 1 package
  - downgrade result        1.5 to 1.4 [required by odoc]
=== recompile 1 package
  - recompile lwt           4.2.1-1    [uses result]
=== install 14 packages
  - install   astring       0.8.3      [required by odoc]
  - install   camlp-streams 5.0.1      [required by odoc-parser]
  - install   cmdliner      1.0.2      [required by odoc]
  - install   crunch        1.4.1      [required by odoc]
  - install   fmt           0.8.5      [required by odoc]
  - install   fpath         0.7.2      [required by odoc]
  - install   ocamlbuild    0          [required by fmt, cmdliner, astring, etc.]
  - install   odoc          2.4.1
  - install   odoc-parser   2.4.1      [required by odoc]
  - install   re            1.10.3     [required by tyxml]
  - install   topkg         1.0.0      [required by fmt, astring, cmdliner, fpath]
  - install   tyxml         4.5.0      [required by odoc]
  - install   uchar         0.0.2      [required by fmt]
  - install   uutf          1.0.2      [required by tyxml]


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved astring.0.8.3  (cached)
-> retrieved cmdliner.1.0.2  (cached)
-> retrieved crunch.1.4.1  (cached)
-> retrieved fmt.0.8.5  (cached)
-> installed ocamlbuild.0
-> retrieved fpath.0.7.2  (cached)
-> retrieved lwt.4.2.1-1  (cached)
-> installed camlp-streams.5.0.1
-> retrieved re.1.10.3  (cached)
-> retrieved result.1.4  (cached)
-> retrieved topkg.1.0.0  (cached)
-> retrieved tyxml.4.5.0  (cached)
-> retrieved uchar.0.0.2  (cached)
-> retrieved odoc.2.4.1, odoc-parser.2.4.1  (cached)
-> installed re.1.10.3
-> removed   lwt.4.2.1-1
-> removed   result.1.5
-> installed result.1.4
-> retrieved uutf.1.0.2  (cached)
-> installed uchar.0.0.2
-> installed topkg.1.0.0
-> installed lwt.4.2.1-1
-> 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-09-05 22:09.39 ---> saved as "8dc5cc3f7d7b16b3cd7485d7169c53ee7b3fdbc68d89199d4fcd8df4f8f3a5c4"


/src: (copy (src .) (dst /src/))
2024-09-05 22:09.39 ---> saved as "b29a5ee1071a1a0f2d0e7adac3a9d76aca4d941af37b04142b823c1111530780"


/src: (run (shell "ODOC_WARN_ERROR=false opam exec -- dune build @doc || (echo \"dune build @doc failed\"; exit 2)"))
Error: I cannot find the root of the current workspace/project.
If you would like to create a new dune project, you can type:


    dune init project NAME


Otherwise, please make sure to run dune inside an existing project or
workspace. For more information about how dune identifies the root of the
current workspace/project, please refer to
https://dune.readthedocs.io/en/stable/usage.html#finding-the-root
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-09-05 22:09.40: Job failed: Failed: Build failed