Organisationsygrekocurl1bff22 (fix_warnings)macos-homebrew-4.14_arm64_opam-2.5

macos-homebrew-4.14_arm64_opam-2.5

Link Copied
Code Copied

Logs

2026-06-14 12:31.58: New job: test ygrek/ocurl https://github.com/ygrek/ocurl.git#refs/heads/fix_warnings (1bff2264290564e010b056158862180aaadcb42a) (macos-arm64:macos-homebrew-4.14_arm64_opam-2.5)
Base: macos-homebrew-ocaml-4.14
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ygrek/ocurl.git" -b "fix_warnings" && cd "ocurl" && git reset --hard 1bff2264
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-4.14
# macos-homebrew-4.14_arm64_opam-2.5
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f ~/local/bin/opam-2.5 ~/local/bin/opam
RUN cd ~/opam-repository && (git cat-file -e e8dee6070985e2146f9ef14e5432de435831e572 || git fetch origin master) && git reset -q --hard e8dee6070985e2146f9ef14e5432de435831e572 && git log --no-decorate -n1 --oneline
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN opam update -u
COPY --chown=1000:1000 curl_lwt.opam curl.opam ./src/./
RUN opam pin add -yn curl_lwt.dev './src/./' && \
opam pin add -yn curl.dev './src/./'
RUN echo '(lang dune 3.0)' > './src/./dune-project'
ENV DEPS="base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libcurl.2 cppo.1.8.0 csexp.1.5.2 dune.3.23.1 dune-configurator.3.23.1 lwt.6.1.2 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.5 --depext-only -y curl_lwt.dev curl.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


2026-06-14 12:31.58: Using cache hint "ygrek/ocurl-macos-homebrew-ocaml-4.14-macos-homebrew-4.14_arm64_opam-2.5-83fc89899062fbc578ed4f81c20ca4bc"
2026-06-14 12:31.58: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
(comment macos-homebrew-4.14_arm64_opam-2.5)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f ~/local/bin/opam-2.5 ~/local/bin/opam"))
(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 e8dee6070985e2146f9ef14e5432de435831e572 || git fetch origin master) && git reset -q --hard e8dee6070985e2146f9ef14e5432de435831e572 && git log --no-decorate -n1 --oneline"))
(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 "opam update -u"))
(copy (src curl_lwt.opam curl.opam) (dst ./src/./))
(run (network host)
(shell  "opam pin add -yn curl_lwt.dev './src/./' && \
\nopam pin add -yn curl.dev './src/./'"))
(run (shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
(env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libcurl.2 cppo.1.8.0 csexp.1.5.2 dune.3.23.1 dune-configurator.3.23.1 lwt.6.1.2 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2")
(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.5 --depext-only -y curl_lwt.dev curl.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"))
)


2026-06-14 12:31.58: Waiting for resource in pool OCluster
2026-06-14 14:10.50: Waiting for worker…
2026-06-14 21:14.45: Connecting to build cluster…
2026-06-14 21:14.56: Waiting for worker…
2026-06-15 07:19.03: Got resource from pool OCluster
Building on m1-worker-02
All commits already cached
HEAD is now at 1bff226 Fix warnings


(from macos-homebrew-ocaml-4.14)
2026-06-15 07:19.03 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache


/: (comment macos-homebrew-4.14_arm64_opam-2.5)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (run (shell "ln -f ~/local/bin/opam-2.5 ~/local/bin/opam"))
2026-06-15 07:19.03 ---> using "75b1629629d7f21c50a7e1e39b2ef83e2edb8ace81aab34254c0c8782b814749" 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 e8dee6070985e2146f9ef14e5432de435831e572 || git fetch origin master) && git reset -q --hard e8dee6070985e2146f9ef14e5432de435831e572 && git log --no-decorate -n1 --oneline"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
95f7875db7..bfde4320ee  master     -> origin/master
e8dee60709 Merge pull request #30040 from dra27/mingw-w64-shims
2026-06-15 07:19.04 ---> using "6a9846da18ea18c1d718088f22c25431a1d89b181bb71a1d0a29c6680cdfe53a" 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] synchronised from git+file:///Users/mac1000/opam-repository
default (at git+file:///Users/mac1000/opam-repository):
[WARNING] opam is out-of-date. Please consider updating it (https://opam.ocaml.org/doc/Install.html)


default (at git+file:///Users/mac1000/opam-repository):
[INFO] opam 2.5.1 includes security fixes; please consider upgrading (https://opam.ocaml.org/doc/Install.html)


2026-06-15 07:19.04 ---> using "3b2e33a61c49246ddce2507eaa480a944a132cb4865fd579dcc1a8fcfbf1fab1" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 24.5.0
The OCaml toplevel, version 4.14.2
2.5.0
2026-06-15 07:19.04 ---> using "489b608fd73c3adaef9d0dc4d20288bcd8fc9fd372aa82ae0e217879d1d1fe24" from cache


/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update -u"))


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository


Everything as up-to-date as possible


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 at these versions (e.g. "opam upgrade ocaml.5.5.0"), which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2026-06-15 07:19.04 ---> using "95f755af2de138f4107762df1b8831ff80da56ca95e336219e8a438d609e062c" from cache


/: (copy (src curl_lwt.opam curl.opam) (dst ./src/./))
2026-06-15 07:19.05 ---> saved as "111b62ab9ae76ccd5e44b7bfaf706642059f931965784d7e564a223255a4a5b8"


/: (run (network host)
(shell  "opam pin add -yn curl_lwt.dev './src/./' && \
\nopam pin add -yn curl.dev './src/./'"))
[curl_lwt.dev] synchronised (file:///Users/mac1000/src)
curl_lwt is now pinned to file:///Users/mac1000/src (version dev)
[curl.dev] synchronised (file:///Users/mac1000/src)
curl is now pinned to file:///Users/mac1000/src (version dev)
2026-06-15 07:19.16 ---> saved as "fdde82256e1eba2187b7d48cb8be209827f6d7e564e6182339f72c824faf4931"


/: (run (shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
2026-06-15 07:19.17 ---> saved as "c128dbd450957634e4879583348e0d5f125b7eb8ad090f40c2e92b7f52f58769"


/: (env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libcurl.2 cppo.1.8.0 csexp.1.5.2 dune.3.23.1 dune-configurator.3.23.1 lwt.6.1.2 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2")


/: (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.5 --depext-only -y curl_lwt.dev curl.dev $DEPS"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- Already up-to-date.


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[curl_lwt.dev] synchronised (file:///Users/mac1000/src)
[curl.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).


The following system packages will first need to be installed:
curl


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


+ /opt/homebrew/bin/brew "install" "curl"
- ==> Would install 1 formula:
- curl
- ==> Downloading https://ghcr.io/v2/homebrew/core/curl/manifests/8.20.0
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/4918ad0a587cf10c5470e13788c8b041b8f6ee5d4e58a8f3e5a6bdde50b3c090--curl-8.20.0.bottle_manifest.json
- ==> Would install 10 dependencies for curl:
- brotli
- libnghttp2
- libnghttp3
- ca-certificates
- openssl@3
- libngtcp2
- libssh2
- lz4
- xz
- zstd
- ==> Fetching downloads for: curl
- ✔︎ Bottle brotli (1.2.0)
- ✔︎ Bottle libnghttp2 (1.69.0)
- ✔︎ Bottle libnghttp3 (1.16.0)
- ✔︎ Bottle ca-certificates (2026-05-14)
- ✔︎ Bottle libngtcp2 (1.23.0)
- ✔︎ Bottle lz4 (1.10.0)
- ✔︎ Bottle libssh2 (1.11.1_1)
- ✔︎ Bottle xz (5.8.3)
- ✔︎ Bottle zstd (1.5.7_1)
- ✔︎ Bottle curl (8.20.0)
- ✔︎ Bottle openssl@3 (3.6.2)
- ==> Installing dependencies for curl: brotli, libnghttp2, libnghttp3, ca-certificates, openssl@3, libngtcp2, libssh2, lz4, xz and zstd
- ==> Installing curl dependency: brotli
- ==> Pouring brotli--1.2.0.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/brotli/1.2.0: 33 files, 1.9MB
- ==> Installing curl dependency: libnghttp2
- ==> Pouring libnghttp2--1.69.0.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/libnghttp2/1.69.0: 14 files, 848.1KB
- ==> Installing curl dependency: libnghttp3
- ==> Pouring libnghttp3--1.16.0.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/libnghttp3/1.16.0: 20 files, 623.8KB
- ==> Installing curl dependency: ca-certificates
- ==> Pouring ca-certificates--2026-05-14.all.bottle.tar.gz
- ==> Regenerating CA certificate bundle from keychain, this may take a while...
- 🍺  /opt/homebrew/Cellar/ca-certificates/2026-05-14: 4 files, 198.8KB
- ==> Installing curl dependency: openssl@3
- ==> Pouring openssl@3--3.6.2.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/openssl@3/3.6.2: 7,627 files, 37.4MB
- ==> Installing curl dependency: libngtcp2
- ==> Pouring libngtcp2--1.23.0.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/libngtcp2/1.23.0: 21 files, 1.5MB
- ==> Installing curl dependency: libssh2
- ==> Pouring libssh2--1.11.1_1.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/libssh2/1.11.1_1: 201 files, 1.3MB
- ==> Installing curl dependency: lz4
- ==> Pouring lz4--1.10.0.arm64_sequoia.bottle.1.tar.gz
- 🍺  /opt/homebrew/Cellar/lz4/1.10.0: 24 files, 727.8KB
- ==> Installing curl dependency: xz
- ==> Pouring xz--5.8.3.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/xz/5.8.3: 96 files, 2.7MB
- ==> Installing curl dependency: zstd
- ==> Pouring zstd--1.5.7_1.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/zstd/1.5.7_1: 32 files, 2.3MB
- ==> Installing curl
- ==> Pouring curl--8.20.0.arm64_sequoia.bottle.tar.gz
- ==> Caveats
- curl is keg-only, which means it was not symlinked into /opt/homebrew,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- 
- If you need to have curl first in your PATH, run:
-   echo 'export PATH="/opt/homebrew/opt/curl/bin:$PATH"' >> ~/.profile
- 
- For compilers to find curl you may need to set:
-   export LDFLAGS="-L/opt/homebrew/opt/curl/lib"
-   export CPPFLAGS="-I/opt/homebrew/opt/curl/include"
- ==> Summary
- 🍺  /opt/homebrew/Cellar/curl/8.20.0: 554 files, 4.7MB
- ==> Running `brew cleanup curl`...
- Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
- Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
- ==> Caveats
- ==> curl
- curl is keg-only, which means it was not symlinked into /opt/homebrew,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- 
- If you need to have curl first in your PATH, run:
-   echo 'export PATH="/opt/homebrew/opt/curl/bin:$PATH"' >> ~/.profile
- 
- For compilers to find curl you may need to set:
-   export LDFLAGS="-L/opt/homebrew/opt/curl/lib"
-   export CPPFLAGS="-I/opt/homebrew/opt/curl/include"
# To update the current shell environment, run: eval $(opam env)
2026-06-15 07:20.00 ---> saved as "952758539aaaec564e4b493f3c87020c20ea2e532c7a1e5108cc050d406f3f1b"


/: (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 base-bytes        base
- install conf-libcurl      2
- install cppo              1.8.0
- install csexp             1.5.2
- install dune              3.23.1
- install dune-configurator 3.23.1
- install lwt               6.1.2
- install ocamlfind         1.9.8
- install ocplib-endian     1.2


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-libcurl.2
-> retrieved csexp.1.5.2  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved lwt.6.1.2  (cached)
-> retrieved dune.3.23.1, dune-configurator.3.23.1  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed dune.3.23.1
-> installed csexp.1.5.2
-> installed cppo.1.8.0
-> installed ocplib-endian.1.2
-> installed dune-configurator.3.23.1
-> installed lwt.6.1.2
Done.
# To update the current shell environment, run: eval $(opam env)
2026-06-15 07:20.46 ---> saved as "afe8f72a1ed59b236751defcbb089c274fe1cd88d6bb7ae30c2397b2a0371ae8"


/: (copy (src .) (dst ./src))
2026-06-15 07:20.47 ---> saved as "8c8a6324dbc6e57974b15a765601ba782614428bba636a72e6acca552d034a74"


/: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
File "examples/dune", line 35, characters 18-25:
35 |  (preprocess (pps lwt_ppx))
^^^^^^^
Error: Library "lwt_ppx" not found.
-> required by
_build/default/examples/.merlin-conf/exe-test_lwt-7ea57e54dfcdb31d8ef2be2c4623f56b
-> required by alias examples/check
(cd _build/default && /usr/bin/cc -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -fwrapv -pthread -D_FILE_OFFSET_BITS=64 -Wall -fdiagnostics-color=always -Wall -Wno-deprecated-declarations -g -I /Users/mac1000/.opam/4.14.2/lib/ocaml -o curl-helper.o -c curl-helper.c)
curl-helper.c:3437:51: warning: passing 'const int[4]' to parameter of type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
3437 |     long bitmask = caml_convert_flag_list(option, curlPostRedir_table);
|                                                   ^~~~~~~~~~~~~~~~~~~
/Users/mac1000/.opam/4.14.2/lib/ocaml/caml/alloc.h:60:52: note: passing argument to parameter here
60 | CAMLextern int caml_convert_flag_list (value, int *);
|                                                    ^
curl-helper.c:4986:72: warning: passing 'const int[3]' to parameter of type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
4986 |     extra_fds[i].events = caml_convert_flag_list(Field(v_extra_fd, 1), curlWait_table);
|                                                                        ^~~~~~~~~~~~~~
/Users/mac1000/.opam/4.14.2/lib/ocaml/caml/alloc.h:60:52: note: passing argument to parameter here
60 | CAMLextern int caml_convert_flag_list (value, int *);
|                                                    ^
2 warnings generated.
(cd _build/default/examples && ./test_memory_leaks.exe)
RSS 0 -> 0 OK
RSS 0 -> 0 OK
RSS 0 -> 0 OK
Error opening /proc/7867/statm (Sys_error("/proc/7867/statm: No such file or directory")), ignoring
Error opening /proc/7867/statm (Sys_error("/proc/7867/statm: No such file or directory")), ignoring
Error opening /proc/7867/statm (Sys_error("/proc/7867/statm: No such file or directory")), ignoring
Error opening /proc/7867/statm (Sys_error("/proc/7867/statm: No such file or directory")), ignoring
Error opening /proc/7867/statm (Sys_error("/proc/7867/statm: No such file or directory")), ignoring
Error opening /proc/7867/statm (Sys_error("/proc/7867/statm: No such file or directory")), ignoring
"/usr/bin/env" "bash" "-c" "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2026-06-15 07:20.53: Job failed: Failed: Build failed