Organisationsygrekocurl1bff22 (fix_warnings)alpine-3.23-4.14_opam-2.5

alpine-3.23-4.14_opam-2.5

Logs

Show full logs
2026-06-14 12:31.58: New job: test ygrek/ocurl https://github.com/ygrek/ocurl.git#refs/heads/fix_warnings (1bff2264290564e010b056158862180aaadcb42a) (linux-x86_64:alpine-3.23-4.14_opam-2.5)
Base: ocaml/opam:alpine-3.23-ocaml-4.14@sha256:e6d488fded0eb95c5f2ff49163d2fc1dc2ab9519311b8ec28ef97d1d3e026387
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 ocaml/opam:alpine-3.23-ocaml-4.14@sha256:e6d488fded0eb95c5f2ff49163d2fc1dc2ab9519311b8ec28ef97d1d3e026387
# alpine-3.23-4.14_opam-2.5
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.5 /usr/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
WORKDIR /src
RUN sudo chown opam /src
RUN opam update -u
COPY --chown=1000:1000 curl_lwt.opam curl.opam ./
RUN opam pin add -yn curl_lwt.dev './' && \
    opam pin add -yn curl.dev './'
RUN echo '(lang dune 3.0)' > './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.3 ocaml-base-compiler.4.14.3 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 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-ocaml/opam:alpine-3.23-ocaml-4.14@sha256:e6d488fded0eb95c5f2ff49163d2fc1dc2ab9519311b8ec28ef97d1d3e026387-alpine-3.23-4.14_opam-2.5-2b0d90cefb4aa046784a563c31e631bd"
2026-06-14 12:31.58: Using OBuilder spec:
((from ocaml/opam:alpine-3.23-ocaml-4.14@sha256:e6d488fded0eb95c5f2ff49163d2fc1dc2ab9519311b8ec28ef97d1d3e026387)
 (comment alpine-3.23-4.14_opam-2.5)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (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"))
 (workdir /src)
 (run (shell "sudo chown opam /src"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam update -u"))
 (copy (src curl_lwt.opam curl.opam) (dst ./))
 (run (network host)
      (shell  "opam pin add -yn curl_lwt.dev './' && \
             \nopam pin add -yn curl.dev './'"))
 (run (shell "echo '(lang dune 3.0)' > './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.3 ocaml-base-compiler.4.14.3 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 /home/opam/.opam/download-cache)))
      (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 /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"))
)

2026-06-14 12:31.58: Waiting for resource in pool OCluster
2026-06-14 14:03.10: Waiting for worker…
2026-06-14 14:04.17: Got resource from pool OCluster
Building on clete.caelum.ci.dev
All commits already cached
HEAD is now at 1bff226 Fix warnings

(from ocaml/opam:alpine-3.23-ocaml-4.14@sha256:e6d488fded0eb95c5f2ff49163d2fc1dc2ab9519311b8ec28ef97d1d3e026387)
2026-06-14 14:04.17 ---> using "645db74cf2f6617db2ad81b0e818e4f1f9c438bf86fc197e2b1f68b1d3dfdf29" from cache

/: (comment alpine-3.23-4.14_opam-2.5)

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

/: (env CLICOLOR_FORCE 1)

/: (env OPAMCOLOR always)

/: (workdir /src)

/src: (run (shell "sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
2026-06-14 14:04.17 ---> using "cf8a7eb63fdaa4274d5ee8634b4a7b94f9670fcdafb4f064aa00246fcc10cd06" from cache

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (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
   d6a960ed95..bfde4320ee  master     -> origin/master
e8dee60709 Merge pull request #30040 from dra27/mingw-w64-shims
2026-06-14 14:04.17 ---> using "65d66a547046c82dfb69c91e4c403758eec471ed4d619c61de650a0c32c1ecbb" 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.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.

[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
Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not update repository "ocaml-patches-overlay": "/usr/bin/git fetch -q" exited with code 128 "fatal: unable to access 'https://github.com/ocurrent/opam-repository/': Could not resolve host: github.com (Could not contact DNS servers)"
[default] synchronised from git+file:///home/opam/opam-repository
2026-06-14 14:04.17 ---> using "aab9f81b6ac6e0a6c03a30caa0a5d1dd6232d8e0d0908c34c571e2b4657f469f" from cache

/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 7.0.0-22-generic
The OCaml toplevel, version 4.14.3
2.5.1
2026-06-14 14:04.17 ---> using "b995a97e17f1d34429a60c986b788cf129b469812fa4ce70bff0716f14c5c5d9" from cache

/src: (workdir /src)

/src: (run (shell "sudo chown opam /src"))
2026-06-14 14:04.17 ---> using "fb14a08e8c8c3cb231a55e94d3852af269ac0e32ed88f148fe896d9b8b452909" from cache

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam update -u"))

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///home/opam/opam-repository
[ocaml-patches-overlay] no changes from git+https://github.com/ocurrent/opam-repository#patches

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 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-14 14:04.17 ---> using "a340192305149624e535bee0bc640831d6535f009e9d3e33b5c0798491c0479d" from cache

/src: (copy (src curl_lwt.opam curl.opam) (dst ./))
2026-06-14 14:04.17 ---> saved as "b06e4551d879bd8de54bb12464c307dce1c10831a959779ba7af22fb96fed9df"

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

/src: (run (shell "echo '(lang dune 3.0)' > './dune-project'"))
2026-06-14 14:04.22 ---> saved as "5f41acb15479e52c71c3860c637803664d1ae8af7432f48e9294e001f5274643"

/src: (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.3 ocaml-base-compiler.4.14.3 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2")

/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.5 --depext-only -y curl_lwt.dev curl.dev $DEPS"))
+ /usr/bin/sudo "apk" "update"
- v3.23.4-376-gaf3d5eb0e42 [https://dl-cdn.alpinelinux.org/alpine/v3.23/main]
- v3.23.4-377-gcb206250bc6 [https://dl-cdn.alpinelinux.org/alpine/v3.23/community]
- v3.24.0-252-g636279548e5 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v3.24.0-253-g7ff90a57aa1 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v3.24.0-249-ge281df6abba [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 62442 distinct packages available

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[curl.dev] synchronised (file:///src)
[curl_lwt.dev] synchronised (file:///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.3).
[NOTE] Package ocaml is already installed (current version is 4.14.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-bigarray is already installed (current version is base).

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

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

+ /usr/bin/sudo "apk" "add" "curl-dev"
- ( 1/17) Upgrading libcrypto3 (3.5.6-r0 -> 3.5.7-r0)
- ERROR: libcrypto3-3.5.7-r0: DNS: transient error (try again later)
- ( 2/17) Upgrading libssl3 (3.5.6-r0 -> 3.5.7-r0)
- ( 3/17) Upgrading libcurl (8.17.0-r1 -> 8.19.0-r0)
- ( 4/17) Upgrading curl (8.17.0-r1 -> 8.19.0-r0)
- ( 5/17) Installing brotli (1.2.0-r0)
- ( 6/17) Installing brotli-dev (1.2.0-r0)
- ( 7/17) Installing c-ares-dev (1.34.6-r0)
- ( 8/17) Installing libidn2-dev (2.3.8-r0)
- ( 9/17) Installing libpsl-utils (0.21.5-r3)
- (10/17) Installing libpsl-dev (0.21.5-r3)
- (11/17) Installing nghttp2-dev (1.69.0-r0)
- (12/17) Installing nghttp3-dev (1.13.1-r0)
- (13/17) Installing openssl-dev (3.5.7-r0)
- (14/17) Installing zlib-dev (1.3.2-r0)
- (15/17) Installing zstd (1.5.7-r2)
- (16/17) Installing zstd-dev (1.5.7-r2)
- (17/17) Installing curl-dev (8.19.0-r0)
- Executing busybox-1.37.0-r30.trigger
- 1 error; 343.9 MiB in 116 packages
[ERROR] System package install failed with exit code 1 at command:
            sudo apk add curl-dev
# To update the current shell environment, run: eval $(opam env)
2026-06-14 14:04.56 ---> saved as "469f268384b82f734ac2ab1ac8fdddd2bf01ab19a8583e6f070fc1afcddbb63b"

/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 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.3).
[NOTE] Package ocaml is already installed (current version is 4.14.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-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 <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-libcurl.2
-> retrieved lwt.6.1.2  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.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-14 14:06.32 ---> saved as "7ec308810fa73320f58092979cb04b58a5c54b4e90378c280d3879e24aefa37a"

/src: (copy (src .) (dst /src))
2026-06-14 14:06.33 ---> saved as "9e6e24e96eb4382647393a36f1e1bc206d3ede66f98a80c6eb6fe7a6e8afdd79"

/src: (run (shell "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/gcc -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 -Wall -fdiagnostics-color=always -Wall -Wno-deprecated-declarations -g -I /home/opam/.opam/4.14/lib/ocaml -o curl-helper.o -c curl-helper.c)
curl-helper.c: In function 'handle_POSTREDIR':
curl-helper.c:3437:51: warning: passing argument 2 of 'caml_convert_flag_list' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 3437 |     long bitmask = caml_convert_flag_list(option, curlPostRedir_table);
      |                                                   ^~~~~~~~~~~~~~~~~~~
In file included from curl-helper.c:29:
/home/opam/.opam/4.14/lib/ocaml/caml/alloc.h:60:47: note: expected 'int *' but argument is of type 'const int *'
   60 | CAMLextern int caml_convert_flag_list (value, int *);
      |                                               ^~~~~
curl-helper.c: In function 'convert_extra_fds':
curl-helper.c:4986:72: warning: passing argument 2 of 'caml_convert_flag_list' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 4986 |     extra_fds[i].events = caml_convert_flag_list(Field(v_extra_fd, 1), curlWait_table);
      |                                                                        ^~~~~~~~~~~~~~
/home/opam/.opam/4.14/lib/ocaml/caml/alloc.h:60:47: note: expected 'int *' but argument is of type 'const int *'
   60 | CAMLextern int caml_convert_flag_list (value, int *);
      |                                               ^~~~~
(cd _build/default/examples && ./test_memory_leaks.exe)
RSS 4812800 -> 7270400 OK
RSS 7278592 -> 7827456 OK
RSS 7835648 -> 7827456 OK
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2026-06-14 14:06.43: Job failed: Failed: Build failed