2024-06-17 12:58.14: New job: test avsm/ocaml-yaml https://github.com/avsm/ocaml-yaml.git#refs/heads/master (d126d9417d85096e421dd3c4cf3550e18ffc3c4e) (linux-s390x:debian-12-5.2_s390x_opam-2.1)
Base: ocaml/opam@sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/avsm/ocaml-yaml.git" -b "master" && cd "ocaml-yaml" && git reset --hard d126d941
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e
# debian-12-5.2_s390x_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 a6069b9eebba0e2b70cdbbd834bc800eb6d671fb || git fetch origin master) && git reset -q --hard a6069b9eebba0e2b70cdbbd834bc800eb6d671fb && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 yaml.opam yaml-sexp.opam ./
RUN opam pin add -yn yaml.dev './' && \
opam pin add -yn yaml-sexp.dev './'
ENV DEPS="afl-persistent.1.4 alcotest.1.7.0 astring.0.8.5 base.v0.17.0 base-bigarray.base base-bytes.base base-domains.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bos.0.2.1 camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.6.9 crowbar.0.2.1 csexp.1.5.2 cstruct.6.2.0 ctypes.0.22.0 dune.3.16.0 dune-configurator.3.16.0 ezjsonm.1.3.0 fmt.0.9.0 fpath.0.7.3 hex.1.5.0 host-arch-s390x.1 host-system-other.1 integers.0.7.0 jsonm.1.0.2 junit.2.0.2 junit_alcotest.2.0.2 logs.0.7.0 mdx.2.4.1 num.1.5 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.3.6.7 ocaml_intrinsics_kernel.v0.17.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 ocplib-endian.1.2 parsexp.v0.17.0 ppx_derivers.1.2.1 ppx_sexp_conv.v0.17.0 ppxlib.0.32.1 ppxlib_jane.v0.17.0 ptime.1.1.0 re.1.11.0 result.1.5 rresult.0.7.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 tyxml.4.6.0 uutf.1.0.3"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y yaml.dev yaml-sexp.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-06-17 12:58.14: Using cache hint "avsm/ocaml-yaml-ocaml/opam@sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e-debian-12-5.2_s390x_opam-2.1-fad97ab3ac205bd13c47b34aff723806"
2024-06-17 12:58.14: Using OBuilder spec:
((from ocaml/opam@sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e)
(comment debian-12-5.2_s390x_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 a6069b9eebba0e2b70cdbbd834bc800eb6d671fb || git fetch origin master) && git reset -q --hard a6069b9eebba0e2b70cdbbd834bc800eb6d671fb && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src yaml.opam yaml-sexp.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn yaml.dev './' && \
\nopam pin add -yn yaml-sexp.dev './'"))
(env DEPS "afl-persistent.1.4 alcotest.1.7.0 astring.0.8.5 base.v0.17.0 base-bigarray.base base-bytes.base base-domains.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bos.0.2.1 camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.6.9 crowbar.0.2.1 csexp.1.5.2 cstruct.6.2.0 ctypes.0.22.0 dune.3.16.0 dune-configurator.3.16.0 ezjsonm.1.3.0 fmt.0.9.0 fpath.0.7.3 hex.1.5.0 host-arch-s390x.1 host-system-other.1 integers.0.7.0 jsonm.1.0.2 junit.2.0.2 junit_alcotest.2.0.2 logs.0.7.0 mdx.2.4.1 num.1.5 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.3.6.7 ocaml_intrinsics_kernel.v0.17.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 ocplib-endian.1.2 parsexp.v0.17.0 ppx_derivers.1.2.1 ppx_sexp_conv.v0.17.0 ppxlib.0.32.1 ppxlib_jane.v0.17.0 ptime.1.1.0 re.1.11.0 result.1.5 rresult.0.7.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 tyxml.4.6.0 uutf.1.0.3")
(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 yaml.dev yaml-sexp.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-06-17 12:58.14: Waiting for resource in pool OCluster
2024-06-17 17:13.36: Waiting for worker…
2024-06-17 18:54.38: Got resource from pool OCluster
Building on s390x-worker-02.marist.ci.dev
All commits already cached
HEAD is now at d126d94 update CHANGES
(from ocaml/opam@sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e)
Unable to find image 'ocaml/opam@sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e' locally
docker.io/ocaml/opam@sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e: Pulling from ocaml/opam
a67999cdd63f: Pulling fs layer
a67999cdd63f: Download complete
a67999cdd63f: Pull complete
Digest: sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e
Status: Downloaded newer image for ocaml/opam@sha256:235eb731e29a67e24c9eedaf8e671404ee3be4f47a484b0ed5dadb5666a2ba0e
2024-06-17 18:54.38 ---> using "8b5c5b0c2bbbe95e82d214251274078fdbc9b88871776c4818ff6bcf5c970bf4" from cache
/: (comment debian-12-5.2_s390x_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-06-17 18:54.38 ---> using "7ee9e221b04cfdec939618b6cf25c32f20144ff16202f4add1f634b2a4be1d0b" 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 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-06-17 18:54.38 ---> using "0ff152ef8ca2c71f91ea179720b83b455c7403d00f76cdce29c83ffe79c43457" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-112-generic
The OCaml toplevel, version 5.2.0
2.1.6
2024-06-17 18:54.38 ---> using "fd7db85fe01e2582f2355861e6a577f30e20f2d228d8d7026c9c436dab01476c" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-06-17 18:54.38 ---> using "1d59ae71f20988933fe9313ef7387cd274f00d61e91420049e08c6cfdc59c21c" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e a6069b9eebba0e2b70cdbbd834bc800eb6d671fb || git fetch origin master) && git reset -q --hard a6069b9eebba0e2b70cdbbd834bc800eb6d671fb && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
c45f5bab71..e06bf2b8c3 master -> origin/master
a6069b9eeb [new release] dune (15 packages) (3.16.0)
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
The following actions will be performed:
- install host-arch-s390x 1
- recompile ocaml-base-compiler 5.2.0* [upstream or system changes]
- install host-system-other 1
- recompile ocaml-options-vanilla 1 [upstream or system changes]
- recompile ocaml-config 3 [uses ocaml-base-compiler]
- recompile ocaml 5.2.0 [uses ocaml-base-compiler]
- recompile opam-depext 1.2.1-1 [uses ocaml]
- recompile base-domains base [uses ocaml]
- recompile base-nnp base [uses base-domains]
===== 2 to install | 7 to recompile =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocaml-config.3 (cached)
-> removed ocaml-options-vanilla.1
-> installed host-arch-s390x.1
-> installed host-system-other.1
-> installed ocaml-options-vanilla.1
-> retrieved opam-depext.1.2.1-1 (cached)
-> retrieved ocaml-base-compiler.5.2.0 (cached)
-> removed base-nnp.base
-> removed base-domains.base
-> removed opam-depext.1.2.1-1
-> removed ocaml.5.2.0
-> removed ocaml-config.3
-> removed ocaml-base-compiler.5.2.0
-> installed ocaml-base-compiler.5.2.0
-> installed ocaml-config.3
-> installed ocaml.5.2.0
-> installed base-domains.base
-> installed base-nnp.base
-> 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
2024-06-17 18:54.38 ---> using "cf4e578b76825eb376f4bad62c97cfa6c9375e2899fbe212b8d6a41f20819675" from cache
/src: (copy (src yaml.opam yaml-sexp.opam) (dst ./))
2024-06-17 18:54.39 ---> saved as "8cb5197c691f0b94a79606643a9055c974f0b2f6ef8b5e66822c0f8602e32fdd"
/src: (run (network host)
(shell "opam pin add -yn yaml.dev './' && \
\nopam pin add -yn yaml-sexp.dev './'"))
[yaml.dev] synchronised (file:///src)
yaml is now pinned to file:///src (version dev)
[yaml-sexp.dev] synchronised (file:///src)
yaml-sexp is now pinned to file:///src (version dev)
2024-06-17 18:54.44 ---> saved as "65b7d5fdb34757044d4a6f0f93504688da3327790709f6d79161874730c0840f"
/src: (env DEPS "afl-persistent.1.4 alcotest.1.7.0 astring.0.8.5 base.v0.17.0 base-bigarray.base base-bytes.base base-domains.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bos.0.2.1 camlp-streams.5.0.1 cmdliner.1.3.0 cppo.1.6.9 crowbar.0.2.1 csexp.1.5.2 cstruct.6.2.0 ctypes.0.22.0 dune.3.16.0 dune-configurator.3.16.0 ezjsonm.1.3.0 fmt.0.9.0 fpath.0.7.3 hex.1.5.0 host-arch-s390x.1 host-system-other.1 integers.0.7.0 jsonm.1.0.2 junit.2.0.2 junit_alcotest.2.0.2 logs.0.7.0 mdx.2.4.1 num.1.5 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.3.6.7 ocaml_intrinsics_kernel.v0.17.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 ocplib-endian.1.2 parsexp.v0.17.0 ppx_derivers.1.2.1 ppx_sexp_conv.v0.17.0 ppxlib.0.32.1 ppxlib_jane.v0.17.0 ptime.1.1.0 re.1.11.0 result.1.5 rresult.0.7.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 tyxml.4.6.0 uutf.1.0.3")
/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 yaml.dev yaml-sexp.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 s390x Packages [151 kB]
- Fetched 255 kB in 0s (914 kB/s)
- Reading package lists...
-
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[yaml-sexp.dev] synchronised (no changes)
[yaml.dev] synchronised (no changes)
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.0).
[NOTE] Package ocaml is already installed (current version is 5.2.0).
[NOTE] Package host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-s390x 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-nnp is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2024-06-17 18:54.58 ---> saved as "fe24bc8189a34633ea4143fe546657c678bdd416998fe942c1a1d9e7414b5ee9"
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.0).
[NOTE] Package ocaml is already installed (current version is 5.2.0).
[NOTE] Package host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-s390x 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-nnp is already installed (current version is base).
[NOTE] Package base-domains 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 ocamlbuild 0.14.3
- install dune 3.16.0
- install num 1.5
- install ocamlfind 1.9.6
- install seq base
- install cmdliner 1.3.0
- install stdlib-shims 0.3.0
- install sexplib0 v0.17.0
- install result 1.5
- install ppx_derivers 1.2.1
- install ocaml-version 3.6.7
- install ocaml-syntax-shims 1.0.0
- install ocaml-compiler-libs v0.17.0
- install ocaml_intrinsics_kernel v0.17.0
- install csexp 1.5.2
- install cppo 1.6.9
- install camlp-streams 5.0.1
- install bigarray-compat 1.1.0
- install afl-persistent 1.4
- install topkg 1.0.7
- install base-bytes base
- install re 1.11.0
- install integers 0.7.0
- install parsexp v0.17.0
- install ppxlib 0.32.1
- install dune-configurator 3.16.0
- install uutf 1.0.3
- install rresult 0.7.0
- install ptime 1.1.0
- install fmt 0.9.0
- install astring 0.8.5
- install ocplib-endian 1.2
- install sexplib v0.17.0
- install ppxlib_jane v0.17.0
- install ctypes 0.22.0
- install base v0.17.0
- install tyxml 4.6.0
- install jsonm 1.0.2
- install logs 0.7.0
- install cstruct 6.2.0
- install fpath 0.7.3
- install alcotest 1.7.0
- install crowbar 0.2.1
- install ppx_sexp_conv v0.17.0
- install junit 2.0.2
- install mdx 2.4.1
- install hex 1.5.0
- install bos 0.2.1
- install junit_alcotest 2.0.2
- install ezjsonm 1.3.0
===== 50 to install =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved afl-persistent.1.4 (cached)
-> retrieved alcotest.1.7.0 (cached)
-> retrieved astring.0.8.5 (cached)
-> retrieved base.v0.17.0 (cached)
-> retrieved bigarray-compat.1.1.0 (cached)
-> retrieved bos.0.2.1 (cached)
-> retrieved camlp-streams.5.0.1 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved cppo.1.6.9 (cached)
-> retrieved crowbar.0.2.1 (cached)
-> retrieved csexp.1.5.2 (cached)
-> retrieved cstruct.6.2.0 (cached)
-> retrieved ctypes.0.22.0 (cached)
-> retrieved dune.3.16.0 (cached)
-> retrieved dune-configurator.3.16.0 (cached)
-> retrieved ezjsonm.1.3.0 (cached)
-> retrieved fmt.0.9.0 (cached)
-> retrieved fpath.0.7.3 (cached)
-> retrieved hex.1.5.0 (cached)
-> retrieved integers.0.7.0 (cached)
-> retrieved jsonm.1.0.2 (cached)
-> installed cmdliner.1.3.0
-> retrieved junit.2.0.2 (cached)
-> retrieved junit_alcotest.2.0.2 (cached)
-> retrieved logs.0.7.0 (cached)
-> retrieved mdx.2.4.1 (cached)
-> retrieved num.1.5 (cached)
-> retrieved ocaml-compiler-libs.v0.17.0 (cached)
-> retrieved ocaml-syntax-shims.1.0.0 (cached)
-> retrieved ocaml-version.3.6.7 (cached)
-> retrieved ocaml_intrinsics_kernel.v0.17.0 (cached)
-> retrieved ocamlbuild.0.14.3 (cached)
-> retrieved ocamlfind.1.9.6 (cached)
-> retrieved ocplib-endian.1.2 (cached)
-> retrieved parsexp.v0.17.0 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved ppx_sexp_conv.v0.17.0 (cached)
-> retrieved ppxlib.0.32.1 (cached)
-> retrieved ppxlib_jane.v0.17.0 (cached)
-> retrieved ptime.1.1.0 (cached)
-> retrieved re.1.11.0 (cached)
-> retrieved seq.base (cached)
-> retrieved result.1.5 (cached)
-> retrieved rresult.0.7.0 (cached)
-> retrieved sexplib.v0.17.0 (cached)
-> retrieved sexplib0.v0.17.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved topkg.1.0.7 (cached)
-> retrieved tyxml.4.6.0 (cached)
-> installed num.1.5
-> retrieved uutf.1.0.3 (cached)
-> installed ocamlfind.1.9.6
-> installed base-bytes.base
-> installed seq.base
-> installed ocamlbuild.0.14.3
-> installed topkg.1.0.7
-> installed fmt.0.9.0
-> installed astring.0.8.5
-> installed ptime.1.1.0
-> installed logs.0.7.0
-> installed fpath.0.7.3
-> installed rresult.0.7.0
-> installed uutf.1.0.3
-> installed jsonm.1.0.2
-> installed bos.0.2.1
-> installed dune.3.16.0
-> installed bigarray-compat.1.1.0
-> installed afl-persistent.1.4
-> installed camlp-streams.5.0.1
-> installed csexp.1.5.2
-> installed cstruct.6.2.0
-> installed cppo.1.6.9
-> installed ocaml-compiler-libs.v0.17.0
-> installed hex.1.5.0
-> installed ocaml-version.3.6.7
-> installed ocaml-syntax-shims.1.0.0
-> installed ocaml_intrinsics_kernel.v0.17.0
-> installed ocplib-endian.1.2
-> installed ppx_derivers.1.2.1
-> installed dune-configurator.3.16.0
-> installed result.1.5
-> installed crowbar.0.2.1
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.17.0
-> installed integers.0.7.0
-> installed ezjsonm.1.3.0
-> installed re.1.11.0
-> installed parsexp.v0.17.0
-> installed alcotest.1.7.0
-> installed ctypes.0.22.0
-> installed mdx.2.4.1
-> installed sexplib.v0.17.0
-> installed base.v0.17.0
-> installed tyxml.4.6.0
-> installed junit.2.0.2
-> installed junit_alcotest.2.0.2
-> installed ppxlib.0.32.1
-> installed ppxlib_jane.v0.17.0
-> installed ppx_sexp_conv.v0.17.0
Done.
<><> afl-persistent.1.4 installed successfully ><><><><><><><><><><><><><><><><>
=> afl-persistent is installed, but since the current OCaml compiler does
not enable AFL instrumentation by default, most packages will not be
instrumented and fuzzing with afl-fuzz may not be effective.
To globally enable AFL instrumentation, create an OCaml switch like:
opam switch create 5.2.0+afl ocaml-variants.5.2.0+options ocaml-option-afl
# Run eval $(opam env) to update the current shell environment
2024-06-17 18:57.19 ---> saved as "70b2bcf06119893db6eb8d932170a1f84e165db6c41d2bb6bc92daf03f9419d2"
/src: (copy (src .) (dst /src))
2024-06-17 18:57.19 ---> saved as "974f52a44275998cb2d97bcb1ea0de716eea9d2cd35ecd00e747ce5be3510aff"
/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/vendor && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread -Wall -DHAVE_CONFIG_H -I. -c emitter.c)
emitter.c: In function 'yaml_emitter_write_plain_scalar':
emitter.c:28:6: warning: value computed is not used [-Wunused-value]
28 | && ((emitter->line_break == YAML_CR_BREAK ? \
| ^~
emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
56 | (PUT_BREAK(emitter), \
| ^~~~~~~~~
emitter.c:1962:18: note: in expansion of macro 'WRITE_BREAK'
1962 | if (!WRITE_BREAK(emitter, string)) return 0;
| ^~~~~~~~~~~
emitter.c: In function 'yaml_emitter_write_single_quoted_scalar':
emitter.c:28:6: warning: value computed is not used [-Wunused-value]
28 | && ((emitter->line_break == YAML_CR_BREAK ? \
| ^~
emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
56 | (PUT_BREAK(emitter), \
| ^~~~~~~~~
emitter.c:2019:18: note: in expansion of macro 'WRITE_BREAK'
2019 | if (!WRITE_BREAK(emitter, string)) return 0;
| ^~~~~~~~~~~
emitter.c: In function 'yaml_emitter_write_literal_scalar':
emitter.c:28:6: warning: value computed is not used [-Wunused-value]
28 | && ((emitter->line_break == YAML_CR_BREAK ? \
| ^~
emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
56 | (PUT_BREAK(emitter), \
| ^~~~~~~~~
emitter.c:2285:18: note: in expansion of macro 'WRITE_BREAK'
2285 | if (!WRITE_BREAK(emitter, string)) return 0;
| ^~~~~~~~~~~
emitter.c: In function 'yaml_emitter_write_folded_scalar':
emitter.c:28:6: warning: value computed is not used [-Wunused-value]
28 | && ((emitter->line_break == YAML_CR_BREAK ? \
| ^~
emitter.c:56:11: note: in expansion of macro 'PUT_BREAK'
56 | (PUT_BREAK(emitter), \
| ^~~~~~~~~
emitter.c:2334:18: note: in expansion of macro 'WRITE_BREAK'
2334 | if (!WRITE_BREAK(emitter, string)) return 0;
| ^~~~~~~~~~~
(cd _build/default/ffi/lib && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -pthread -pthread -I../../vendor -g -I /home/opam/.opam/5.2/lib/ocaml -I /home/opam/.opam/5.2/lib/bigarray-compat -I /home/opam/.opam/5.2/lib/ctypes -I /home/opam/.opam/5.2/lib/ctypes/stubs -I /home/opam/.opam/5.2/lib/integers -I /home/opam/.opam/5.2/lib/ocaml/str -I /home/opam/.opam/5.2/lib/stdlib-shims -I ../bindings -I ../../types/bindings -I ../../types/lib -I ../../vendor -o yaml_stubs.o -c yaml_stubs.c)
yaml_stubs.c: In function 'yaml_stub_1_yaml_get_version_string':
yaml_stubs.c:11:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
11 | char* x2 = yaml_get_version_string();
| ^~~~~~~~~~~~~~~~~~~~~~~
(cd _build/default/tests && ./test.exe)
Testing `Yaml'.
This run has ID `NPIYH7V5'.
[OK] parse_event_test_set 0 yaml/bomb.yml.
[OK] parse_event_test_set 1 yaml/anchor.yml.
[OK] parse_event_test_set 2 yaml/cohttp.yml.
[OK] parse_event_test_set 3 yaml/linuxkit.yml.
[OK] parse_event_test_set 4 yaml/seq.yml.
[OK] parse_event_test_set 5 yaml/too_large.yml.
[OK] parse_event_test_set 6 yaml/yaml-1.2.yml.
[OK] parse_of_string 0 yaml/anchor.yml.
[OK] parse_of_string 1 yaml/cohttp.yml.
[OK] parse_of_string 2 yaml/linuxkit.yml.
[OK] parse_of_string 3 yaml/seq.yml.
[OK] parse_of_string 4 yaml/too_large.yml.
[OK] parse_of_string 5 yaml/yaml-1.2.yml.
[OK] reflect 0 yaml/bomb.yml.
[OK] reflect 1 yaml/anchor.yml.
[OK] reflect 2 yaml/cohttp.yml.
[OK] reflect 3 yaml/linuxkit.yml.
[OK] reflect 4 yaml/seq.yml.
[OK] reflect 5 yaml/too_large.yml.
[OK] reflect 6 yaml/yaml-1.2.yml.
[OK] emit 0 emit.
[OK] version 0 version.
[OK] quoted_scalars 0 quoted bool.
[OK] quoted_scalars 1 quoted null.
[OK] quoted_scalars 2 quoted float.
[OK] quoted_scalars 3 quoted string.
[OK] quoted_scalars 4 quoted int.
[OK] quoted_scalars 5 plain int.
[OK] quoted_scalars 6 plain bool.
[OK] quoted_scalars 7 plain string.
[OK] quoted_scalars 8 plain string with quote.
[OK] quoted_scalars 9 plain string with int and q...
[OK] quoted_scalars 10 double quoted string.
[OK] quoted_scalars 11 partially double quoted str...
[OK] yaml_equal 0 two null equal.
[OK] yaml_equal 1 two floats equal.
[OK] yaml_equal 2 two floats not equal.
[OK] yaml_equal 3 two bools equal.
[OK] yaml_equal 4 two strings equal.
[OK] yaml_equal 5 two strings not equal.
[OK] yaml_equal 6 two arrays equal.
[OK] yaml_equal 7 two arrays not equal.
[OK] yaml_equal 8 two objects equal.
[OK] yaml_equal 9 different types not equal.
[OK] yaml_util 0 same yaml values.
[OK] yaml_util 1 find values.
[OK] yaml_util 2 missing value.
[OK] yaml_util 3 same array with map.
[OK] yaml_util 4 same filtered array.
Full test results in `/src/_build/default/tests/_build/_tests/Yaml'.
Test Successful in 0.022s. 49 tests run.
(cd _build/default/tests && ./test_sexp.exe)
Testing `Yaml'.
This run has ID `LHK6NNGA'.
[OK] parse_of_string 0 yaml/anchor.yml.
[OK] parse_of_string 1 yaml/cohttp.yml.
[OK] parse_of_string 2 yaml/linuxkit.yml.
[OK] parse_of_string 3 yaml/seq.yml.
[OK] parse_of_string 4 yaml/too_large.yml.
[OK] parse_of_string 5 yaml/yaml-1.2.yml.
Full test results in `/src/_build/default/tests/_build/_tests/Yaml'.
Test Successful in 0.012s. 6 tests run.
2024-06-17 18:57.32 ---> saved as "7d214ae80dc60d57c5f0f3b69f73d41affe2ab8e4f70a4f3359559d481bf48b8"
Job succeeded
2024-06-17 18:57.33: Job succeeded