2025-06-12 14:13.52: New job: test ocaml-dune/ppx_deriving_dyn https://github.com/ocaml-dune/ppx_deriving_dyn.git#refs/heads/main (bacf84896c3924f4858e40b11acc1a6c16d2ac75) (macos-arm64:macos-homebrew-4.14_arm64_opam-2.3)
Base: macos-homebrew-ocaml-4.14
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/ocaml-dune/ppx_deriving_dyn.git" -b "main" && cd "ppx_deriving_dyn" && git reset --hard bacf8489
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-4.14
# macos-homebrew-4.14_arm64_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f ~/local/bin/opam-2.3 ~/local/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN cd ~/opam-repository && (git cat-file -e a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 ppx_deriving_dyn.opam ./src/./
RUN opam pin add -yn ppx_deriving_dyn.dev './src/./'
RUN echo '(lang dune 3.0)' > './src/./dune-project'
ENV DEPS="base-bigarray.base base-threads.base base-unix.base dune.3.19.1 dyn.3.19.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ordering.3.19.1 pp.2.0.0 ppx_derivers.1.2.1 ppxlib.0.36.0 sexplib0.v0.17.0 stdlib-shims.0.3.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y ppx_deriving_dyn.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . ./src
RUN cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2025-06-12 14:13.52: Using cache hint "ocaml-dune/ppx_deriving_dyn-macos-homebrew-ocaml-4.14-macos-homebrew-4.14_arm64_opam-2.3-e344ada961de7251d1a4def2147a1ec6"
2025-06-12 14:13.52: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
(comment macos-homebrew-4.14_arm64_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src ppx_deriving_dyn.opam) (dst ./src/./))
(run (network host)
(shell "opam pin add -yn ppx_deriving_dyn.dev './src/./'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
(env DEPS "base-bigarray.base base-threads.base base-unix.base dune.3.19.1 dyn.3.19.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ordering.3.19.1 pp.2.0.0 ppx_derivers.1.2.1 ppxlib.0.36.0 sexplib0.v0.17.0 stdlib-shims.0.3.0")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y ppx_deriving_dyn.dev $DEPS"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst ./src))
(run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2025-06-12 14:13.52: Waiting for resource in pool OCluster
2025-06-12 14:14.53: Waiting for worker…
2025-06-12 15:35.58: Got resource from pool OCluster
Building on m1-worker-02
All commits already cached
HEAD is now at bacf848 Merge pull request #6 from NathanReb/support-mutually-rec-types
(from macos-homebrew-ocaml-4.14)
2025-06-12 15:35.58 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache
/: (comment macos-homebrew-4.14_arm64_opam-2.3)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
2025-06-12 15:35.59 ---> using "d185bb362ab7a62e22c76fe28c4578fe7a4e17f7cc7bc09a3073972dfb5efd3b" from cache
/: (run (shell "opam init --reinit -ni"))
No configuration file found, using 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 /Users/mac1000/.opam from version 2.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.
Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=1 --global
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2025-06-12 15:35.59 ---> using "1a239dab0512a5f76e4948de67b26faca67b4de935df003aa7f81d4e2d68958d" from cache
/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 23.4.0
The OCaml toplevel, version 4.14.2
2.3.0
2025-06-12 15:35.59 ---> using "f52eecff7be584d99550d2f8c42b8f22f9135c2276c46c827a485f089226c5ac" from cache
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e a28eb8a148feb4fbc6466fa0791668993513dbde || git fetch origin master) && git reset -q --hard a28eb8a148feb4fbc6466fa0791668993513dbde && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
67e940587b..a28eb8a148 master -> origin/master
a28eb8a148 Merge pull request #28017 from maiste/release-dune-3.19.1
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///Users/mac1000/opam-repository
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
The following packages are not being upgraded because the new versions conflict with other installed packages:
- ocaml.5.5.0
- ocaml-config.3
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-06-12 15:35.59 ---> using "cbe0def484142b57e323ed60e71b5ea1be1c62ce432e64083775819603125847" from cache
/: (copy (src ppx_deriving_dyn.opam) (dst ./src/./))
2025-06-12 15:36.00 ---> saved as "5c6e7b85c27cecfdfe75ffb59628ff7d626064adf4624cffaf6c5d0a9514a3d6"
/: (run (network host)
(shell "opam pin add -yn ppx_deriving_dyn.dev './src/./'"))
Package ppx_deriving_dyn does not exist, create as a NEW package? [y/n] y
[ppx_deriving_dyn.dev] synchronised (file:///Users/mac1000/src)
ppx_deriving_dyn is now pinned to file:///Users/mac1000/src (version dev)
2025-06-12 15:36.07 ---> saved as "63d17176a85ac19ad7457cd5565217962de21c8791206b5d46662dc1687b7bd2"
/: (run (network host)
(shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
2025-06-12 15:36.08 ---> saved as "a8ae07bac0a38fc613ec29606578441a791c51fed5652aada8555089e3a3f3a1"
/: (env DEPS "base-bigarray.base base-threads.base base-unix.base dune.3.19.1 dyn.3.19.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ordering.3.19.1 pp.2.0.0 ppx_derivers.1.2.1 ppxlib.0.36.0 sexplib0.v0.17.0 stdlib-shims.0.3.0")
/: (env CI true)
/: (env OCAMLCI true)
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y ppx_deriving_dyn.dev $DEPS"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- Already up-to-date.
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ppx_deriving_dyn.dev] synchronised (file:///Users/mac1000/src)
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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).
2025-06-12 15:36.31 ---> saved as "94d588a640f6236a0146669e6f881e26afb26e33434cfc13a77fca84a56c577a"
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(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 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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 9 packages
- install dune 3.19.1
- install dyn 3.19.1
- install ocaml-compiler-libs v0.12.4
- install ordering 3.19.1
- install pp 2.0.0
- install ppx_derivers 1.2.1
- install ppxlib 0.36.0
- install sexplib0 v0.17.0
- install stdlib-shims 0.3.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocaml-compiler-libs.v0.12.4 (cached)
-> retrieved pp.2.0.0 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved sexplib0.v0.17.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved ppxlib.0.36.0 (cached)
-> retrieved dune.3.19.1, dyn.3.19.1, ordering.3.19.1 (cached)
-> installed dune.3.19.1
-> installed ocaml-compiler-libs.v0.12.4
-> installed stdlib-shims.0.3.0
-> installed ppx_derivers.1.2.1
-> installed pp.2.0.0
-> installed ordering.3.19.1
-> installed sexplib0.v0.17.0
-> installed dyn.3.19.1
-> installed ppxlib.0.36.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-12 15:37.22 ---> saved as "62be73867de42ecaa9539b6e82f82bd22dec030e0900f74c420a2a6868379455"
/: (copy (src .) (dst ./src))
2025-06-12 15:37.23 ---> saved as "9f5e1a1981be0f38bae3fe1af9d74fdabfcdbc0ad5ec01ec2c3fd6ce8bb1e54b"
/: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && /Users/mac1000/.opam/4.14.2/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 deriver/.ppx_deriving_dyn.objs/byte -I /Users/mac1000/.opam/4.14.2/lib/ocaml-compiler-libs/common -I /Users/mac1000/.opam/4.14.2/lib/ocaml-compiler-libs/shadow -I /Users/mac1000/.opam/4.14.2/lib/ocaml/compiler-libs -I /Users/mac1000/.opam/4.14.2/lib/ppx_derivers -I /Users/mac1000/.opam/4.14.2/lib/ppxlib -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/ast -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/astlib -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/print_diff -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/stdppx -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/traverse_builtins -I /Users/mac1000/.opam/4.14.2/lib/sexplib0 -I /Users/mac1000/.opam/4.14.2/lib/stdlib-shims -intf-suffix .ml -no-alias-deps -opaque -open Ppx_deriving_dyn__ -o deriver/.ppx_deriving_dyn.objs/byte/ppx_deriving_dyn__Attr.cmo -c -impl deriver/attr.pp.ml)
File "deriver/attr.ml", line 18, characters 25-33:
18 | let fun_expr = as__ (pexp_fun drop drop drop drop) in
^^^^^^^^
Error: Unbound value pexp_fun
Hint: Did you mean pexp_for?
(cd _build/default && /Users/mac1000/.opam/4.14.2/bin/ocamlopt.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 -I deriver/.ppx_deriving_dyn.objs/byte -I deriver/.ppx_deriving_dyn.objs/native -I /Users/mac1000/.opam/4.14.2/lib/ocaml-compiler-libs/common -I /Users/mac1000/.opam/4.14.2/lib/ocaml-compiler-libs/shadow -I /Users/mac1000/.opam/4.14.2/lib/ocaml/compiler-libs -I /Users/mac1000/.opam/4.14.2/lib/ppx_derivers -I /Users/mac1000/.opam/4.14.2/lib/ppxlib -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/ast -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/astlib -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/print_diff -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/stdppx -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/traverse_builtins -I /Users/mac1000/.opam/4.14.2/lib/sexplib0 -I /Users/mac1000/.opam/4.14.2/lib/stdlib-shims -intf-suffix .ml -no-alias-deps -opaque -open Ppx_deriving_dyn__ -o deriver/.ppx_deriving_dyn.objs/native/ppx_deriving_dyn__Attr.cmx -c -impl deriver/attr.pp.ml)
File "deriver/attr.ml", line 18, characters 25-33:
18 | let fun_expr = as__ (pexp_fun drop drop drop drop) in
^^^^^^^^
Error: Unbound value pexp_fun
Hint: Did you mean pexp_for?
(cd _build/default && /Users/mac1000/.opam/4.14.2/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 deriver/.ppx_deriving_dyn.objs/byte -I /Users/mac1000/.opam/4.14.2/lib/ocaml-compiler-libs/common -I /Users/mac1000/.opam/4.14.2/lib/ocaml-compiler-libs/shadow -I /Users/mac1000/.opam/4.14.2/lib/ocaml/compiler-libs -I /Users/mac1000/.opam/4.14.2/lib/ppx_derivers -I /Users/mac1000/.opam/4.14.2/lib/ppxlib -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/ast -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/astlib -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/print_diff -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/stdppx -I /Users/mac1000/.opam/4.14.2/lib/ppxlib/traverse_builtins -I /Users/mac1000/.opam/4.14.2/lib/sexplib0 -I /Users/mac1000/.opam/4.14.2/lib/stdlib-shims -no-alias-deps -opaque -open Ppx_deriving_dyn__ -o deriver/.ppx_deriving_dyn.objs/byte/ppx_deriving_dyn.cmo -c -impl deriver/ppx_deriving_dyn.pp.ml)
File "deriver/ppx_deriving_dyn.ml", line 79, characters 29-35:
79 | fun_or_applied ~loc ~f:to_dyn expr_opt
^^^^^^
Error: This expression has type
type_constraint option -> function_body -> expression
but an expression was expected of type expression
"/usr/bin/env" "bash" "-c" "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-06-12 15:37.29: Job failed: Failed: Build failed