(for PR #29128)

2025-12-23 22:12.45: New job: test posix-socket.3.1.0, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29128/head (be6f5a2b2d3c046d757bfdb66968dd0064a03728)
                              on debian-13-ocaml-4.14/amd64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29128/head" && git reset --hard be6f5a2b
git fetch origin master
git merge --no-edit 173460ab354e0e6a17ee414264f348b06dee2d3d
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.14@sha256:6684ec7e7cdd02e0b2c7fc3c7525f043345eebbc5d208af18fb8d563e8ecab14
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN opam config report
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMPRECISETRACKING="1"
ENV CI="true"
ENV OPAM_REPO_CI="true"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam depext -u || true
RUN opam pin add -k version -yn posix-socket.3.1.0 3.1.0
RUN opam depext posix-socket.3.1.0 && opam reinstall posix-socket.3.1.0; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    partial_fails=""; \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'posix-socket.3.1.0' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1
RUN (opam depext --with-test posix-socket.3.1.0 && opam reinstall --with-test posix-socket.3.1.0) || true
RUN opam depext --with-test posix-socket.3.1.0 && opam reinstall --with-test --verbose posix-socket.3.1.0; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    partial_fails=""; \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'posix-socket.3.1.0' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1

END-OF-DOCKERFILE
docker build -f ../Dockerfile .

2025-12-23 22:12.45: Using cache hint "ocaml/opam:debian-13-ocaml-4.14@sha256:6684ec7e7cdd02e0b2c7fc3c7525f043345eebbc5d208af18fb8d563e8ecab14-posix-socket.3.1.0-be6f5a2b2d3c046d757bfdb66968dd0064a03728"
2025-12-23 22:12.45: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.14@sha256:6684ec7e7cdd02e0b2c7fc3c7525f043345eebbc5d208af18fb8d563e8ecab14)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "opam config report"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMPRECISETRACKING 1)
 (env CI true)
 (env OPAM_REPO_CI true)
 (run (shell "rm -rf opam-repository/"))
 (copy (src .) (dst opam-repository/))
 (run (shell "opam repository set-url --strict default opam-repository/"))
 (run (network host)
      (shell "opam depext -u || true"))
 (run (shell "opam pin add -k version -yn posix-socket.3.1.0 3.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext posix-socket.3.1.0 && opam reinstall posix-socket.3.1.0;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        partial_fails=\"\";\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'posix-socket.3.1.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
 (run (network host)
      (shell "(opam depext --with-test posix-socket.3.1.0 && opam reinstall --with-test posix-socket.3.1.0) || true"))
 (run (shell  "opam depext --with-test posix-socket.3.1.0 && opam reinstall --with-test --verbose posix-socket.3.1.0;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        partial_fails=\"\";\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'posix-socket.3.1.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-12-23 22:12.45: Waiting for resource in pool OCluster
2025-12-23 22:31.49: Waiting for worker…
2025-12-23 22:35.59: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files:  71% (13671/19109)
Updating files:  72% (13759/19109)
Updating files:  73% (13950/19109)
Updating files:  74% (14141/19109)
Updating files:  75% (14332/19109)
Updating files:  76% (14523/19109)
Updating files:  77% (14714/19109)
Updating files:  78% (14906/19109)
Updating files:  79% (15097/19109)
Updating files:  80% (15288/19109)
Updating files:  81% (15479/19109)
Updating files:  82% (15670/19109)
Updating files:  83% (15861/19109)
Updating files:  84% (16052/19109)
Updating files:  85% (16243/19109)
Updating files:  86% (16434/19109)
Updating files:  87% (16625/19109)
Updating files:  88% (16816/19109)
Updating files:  89% (17008/19109)
Updating files:  90% (17199/19109)
Updating files:  91% (17390/19109)
Updating files:  92% (17581/19109)
Updating files:  93% (17772/19109)
Updating files:  94% (17963/19109)
Updating files:  95% (18154/19109)
Updating files:  96% (18345/19109)
Updating files:  97% (18536/19109)
Updating files:  98% (18727/19109)
Updating files:  99% (18918/19109)
Updating files: 100% (19109/19109)
Updating files: 100% (19109/19109), done.
HEAD is now at 173460ab35 Merge pull request #29122 from craff/master
Updating 173460ab35..be6f5a2b2d
Fast-forward
 packages/posix-base/posix-base.3.1.0/opam          | 40 +++++++++++++++++++
 packages/posix-bindings/posix-bindings.3.1.0/opam  | 43 ++++++++++++++++++++
 packages/posix-getopt/posix-getopt.3.1.0/opam      | 46 ++++++++++++++++++++++
 packages/posix-math2/posix-math2.3.1.0/opam        | 40 +++++++++++++++++++
 packages/posix-signal/posix-signal.3.1.0/opam      | 42 ++++++++++++++++++++
 .../posix-socket-unix/posix-socket-unix.3.1.0/opam | 43 ++++++++++++++++++++
 packages/posix-socket/posix-socket.3.1.0/opam      | 42 ++++++++++++++++++++
 packages/posix-time2/posix-time2.3.1.0/opam        | 43 ++++++++++++++++++++
 packages/posix-types/posix-types.3.1.0/opam        | 42 ++++++++++++++++++++
 packages/posix-uname/posix-uname.3.1.0/opam        | 41 +++++++++++++++++++
 10 files changed, 422 insertions(+)
 create mode 100644 packages/posix-base/posix-base.3.1.0/opam
 create mode 100644 packages/posix-bindings/posix-bindings.3.1.0/opam
 create mode 100644 packages/posix-getopt/posix-getopt.3.1.0/opam
 create mode 100644 packages/posix-math2/posix-math2.3.1.0/opam
 create mode 100644 packages/posix-signal/posix-signal.3.1.0/opam
 create mode 100644 packages/posix-socket-unix/posix-socket-unix.3.1.0/opam
 create mode 100644 packages/posix-socket/posix-socket.3.1.0/opam
 create mode 100644 packages/posix-time2/posix-time2.3.1.0/opam
 create mode 100644 packages/posix-types/posix-types.3.1.0/opam
 create mode 100644 packages/posix-uname/posix-uname.3.1.0/opam

(from ocaml/opam:debian-13-ocaml-4.14@sha256:6684ec7e7cdd02e0b2c7fc3c7525f043345eebbc5d208af18fb8d563e8ecab14)
2025-12-23 22:36.03 ---> using "7cdb5ae7d995ccdc01b290a0409b89e6bad28fbd46597d36a8f537f23e744091" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2025-12-23 22:36.03 ---> using "3934df717b3be7949a724f02baa319a55f6ed65836d7724f92600d6c479337ee" from cache

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-12-23 22:36.03 ---> using "9d35b849ef7da0a854b89f30c95cf90f70992665aee0e4896332a1cf9f96e192" from cache

/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version      2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=13
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              71
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    4.14
2025-12-23 22:36.03 ---> using "cf04b735ca3965525c0bf201a27c2f7c35f6a325ff8dafe4797ca2c5466372e0" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMPRECISETRACKING 1)

/home/opam: (env CI true)

/home/opam: (env OPAM_REPO_CI true)

/home/opam: (run (shell "rm -rf opam-repository/"))
2025-12-23 22:36.03 ---> using "d424339cd2e2916a8e0aabf78208914192aa3a5e1b2a6ed754a1e35862bba3b8" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-12-23 22:36.17 ---> saved as "2253c8dcde73a9640732fcbfa4bc30d01047f4090e3cf0e93967e14ae4d6ad15"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-12-23 22:36.29 ---> saved as "117b7a6eba91e476b2ddfae64a25ed6378268d70ff3c983ad4da81b69e4a2290"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "sudo":
    apt-get update
Hit:1 http://deb.debian.org/debian trixie InRelease
Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [93.7 kB]
Fetched 184 kB in 0s (1734 kB/s)
Reading package lists...
# OS package update successful
2025-12-23 22:36.31 ---> saved as "949a7bc1e497d59bb1e498b3835a8a23899c807d3b084429af1752ed586c0735"

/home/opam: (run (shell "opam pin add -k version -yn posix-socket.3.1.0 3.1.0"))
posix-socket is now pinned to version 3.1.0
2025-12-23 22:36.32 ---> saved as "ee32414cd8c1b9d690893a0525bd3eefc038924f8e87850da4b8e84140162b7b"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext posix-socket.3.1.0 && opam reinstall posix-socket.3.1.0;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        partial_fails=\"\";\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'posix-socket.3.1.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
posix-socket.3.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install dune              3.20.2 [required by posix-socket]
  - install integers          0.5.1  [required by ctypes, posix-base]
  - install csexp             1.5.2  [required by dune-configurator]
  - install dune-configurator 3.20.2 [required by posix-socket]
  - install ctypes            0.24.0 [required by posix-socket]
  - install posix-base        3.1.0  [required by posix-socket]
  - install posix-socket      3.1.0*
===== 7 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[csexp.1.5.2] found in cache
[ctypes.0.24.0] found in cache
[dune.3.20.2] found in cache
[dune-configurator.3.20.2] found in cache
[integers.0.5.1] found in cache
[posix-base.3.1.0] found in cache
[posix-socket.3.1.0] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dune.3.20.2
-> installed csexp.1.5.2
-> installed integers.0.5.1
-> installed dune-configurator.3.20.2
-> installed ctypes.0.24.0
-> installed posix-base.3.1.0
-> installed posix-socket.3.1.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-12-23 22:37.27 ---> saved as "bd0be2d7cf8c914b09752bdf3d028d8b206e00ee853c2dcd64151607a117cec9"

/home/opam: (run (network host)
                 (shell "(opam depext --with-test posix-socket.3.1.0 && opam reinstall --with-test posix-socket.3.1.0) || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# The following system packages are needed:
pkg-config
The following command needs to be run through "sudo":
    apt-get install -qq -yy pkg-config
Selecting previously unselected package libpkgconf3:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 20622 files and directories currently installed.)
Preparing to unpack .../libpkgconf3_1.8.1-4_amd64.deb ...
Unpacking libpkgconf3:amd64 (1.8.1-4) ...
Selecting previously unselected package pkgconf-bin.
Preparing to unpack .../pkgconf-bin_1.8.1-4_amd64.deb ...
Unpacking pkgconf-bin (1.8.1-4) ...
Selecting previously unselected package pkgconf:amd64.
Preparing to unpack .../pkgconf_1.8.1-4_amd64.deb ...
Unpacking pkgconf:amd64 (1.8.1-4) ...
Selecting previously unselected package pkg-config:amd64.
Preparing to unpack .../pkg-config_1.8.1-4_amd64.deb ...
Unpacking pkg-config:amd64 (1.8.1-4) ...
Setting up libpkgconf3:amd64 (1.8.1-4) ...
Setting up pkgconf-bin (1.8.1-4) ...
Setting up pkgconf:amd64 (1.8.1-4) ...
Setting up pkg-config:amd64 (1.8.1-4) ...
Processing triggers for libc-bin (2.41-12) ...
# OS packages installation successful
The following actions will be performed:
  - recompile posix-socket 3.1.0*

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of posix-socket failed at "/home/opam/.opam/opam-init/hooks/sandbox.sh build dune build -p posix-socket -j 71 @install @runtest".

#=== ERROR while compiling posix-socket.3.1.0 =================================#
# context              2.0.10 | linux/x86_64 | ocaml-base-compiler.4.14.2 | pinned(https://github.com/savonet/ocaml-posix/archive/refs/tags/v3.1.0.tar.gz)
# path                 ~/.opam/4.14/.opam-switch/build/posix-socket.3.1.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p posix-socket -j 71 @install @runtest
# exit-code            1
# env-file             ~/.opam/log/posix-socket-7-5f1023.env
# output-file          ~/.opam/log/posix-socket-7-5f1023.out
### output ###
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I posix-socket/src/types/.posix_socket_types.objs/byte -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/posix-base -I posix-socket/src/constants/.posix_socket_constants.objs/byte -no-alias-deps -open Posix_socket_types__ -o posix-socket/src/types/.posix_socket_types.objs/byte/posix_socket_types__Posix_socket_generated_constants.cmo -c -impl posix-socket/src/types/posix_socket_generated_constants.ml)
# File "posix-socket/src/types/posix_socket_generated_constants.ml", line 48, characters 4-63:
# 48 |   | Ctypes_static.Primitive Cstubs_internals.Int, "SOCK_STREAM" ->
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Warning 11 [redundant-case]: this match case is unused.
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I posix-socket/src/types/.posix_socket_types.objs/byte -I posix-socket/src/types/.posix_socket_types.objs/native -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/posix-base -I posix-socket/src/constants/.posix_socket_constants.objs/byte -I posix-socket/src/constants/.posix_socket_constants.objs/native -intf-suffix .ml -no-alias-deps -open Posix_socket_types__ -o posix-socket/src/types/.posix_socket_types.objs/native/posix_socket_types__Posix_socket_generated_constants.cmx -c -impl posix-socket/src/types/posix_socket_generated_constants.ml)
# File "posix-socket/src/types/posix_socket_generated_constants.ml", line 48, characters 4-63:
# 48 |   | Ctypes_static.Primitive Cstubs_internals.Int, "SOCK_STREAM" ->
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Warning 11 [redundant-case]: this match case is unused.
# File "posix-socket/test/dune", line 2, characters 7-11:
# 2 |  (name test)
#            ^^^^
# (cd _build/default/posix-socket/test && ./test.exe)
# sizeof(socklen_t) = 4
# sockaddr.sa_family = 2
# sockaddr_in.sin_addr.s_addr = 1
# Unix.ADDR_INET("0.0.0.1",80)
# Fatal error: exception Failure("getaddrinfo")



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build posix-socket 3.1.0
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
2025-12-23 22:37.47 ---> saved as "3375ab2d6fb98161b9e4c5cf1f8701fcd74e099b1966ab78e09f20fb63e2b77c"

/home/opam: (run (shell  "opam depext --with-test posix-socket.3.1.0 && opam reinstall --with-test --verbose posix-socket.3.1.0;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        partial_fails=\"\";\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'posix-socket.3.1.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
pkg-config
# The following system packages are needed:
# All required OS packages found.
The following actions will be performed:
  - recompile posix-socket 3.1.0*

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [posix-socket: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "posix-socket" "-j" "71" "@install" "@runtest" (CWD=/home/opam/.opam/4.14/.opam-switch/build/posix-socket.3.1.0)
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I posix-socket/src/types/.posix_socket_types.objs/byte -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/posix-base -I posix-socket/src/constants/.posix_socket_constants.objs/byte -no-alias-deps -open Posix_socket_types__ -o posix-socket/src/types/.posix_socket_types.objs/byte/posix_socket_types__Posix_socket_generated_constants.cmo -c -impl posix-socket/src/types/posix_socket_generated_constants.ml)
- File "posix-socket/src/types/posix_socket_generated_constants.ml", line 48, characters 4-63:
- 48 |   | Ctypes_static.Primitive Cstubs_internals.Int, "SOCK_STREAM" ->
-          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Warning 11 [redundant-case]: this match case is unused.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I posix-socket/src/types/.posix_socket_types.objs/byte -I posix-socket/src/types/.posix_socket_types.objs/native -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/posix-base -I posix-socket/src/constants/.posix_socket_constants.objs/byte -I posix-socket/src/constants/.posix_socket_constants.objs/native -intf-suffix .ml -no-alias-deps -open Posix_socket_types__ -o posix-socket/src/types/.posix_socket_types.objs/native/posix_socket_types__Posix_socket_generated_constants.cmx -c -impl posix-socket/src/types/posix_socket_generated_constants.ml)
- File "posix-socket/src/types/posix_socket_generated_constants.ml", line 48, characters 4-63:
- 48 |   | Ctypes_static.Primitive Cstubs_internals.Int, "SOCK_STREAM" ->
-          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Warning 11 [redundant-case]: this match case is unused.
- File "posix-socket/test/dune", line 2, characters 7-11:
- 2 |  (name test)
-            ^^^^
- (cd _build/default/posix-socket/test && ./test.exe)
- sizeof(socklen_t) = 4
- sockaddr.sa_family = 2
- sockaddr_in.sin_addr.s_addr = 1
- Unix.ADDR_INET("0.0.0.1",80)
- Fatal error: exception Failure("getaddrinfo")
[ERROR] The compilation of posix-socket failed at "/home/opam/.opam/opam-init/hooks/sandbox.sh build dune build -p posix-socket -j 71 @install @runtest".

#=== ERROR while compiling posix-socket.3.1.0 =================================#
# context              2.0.10 | linux/x86_64 | ocaml-base-compiler.4.14.2 | pinned(https://github.com/savonet/ocaml-posix/archive/refs/tags/v3.1.0.tar.gz)
# path                 ~/.opam/4.14/.opam-switch/build/posix-socket.3.1.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p posix-socket -j 71 @install @runtest
# exit-code            1
# env-file             ~/.opam/log/posix-socket-42-5f1023.env
# output-file          ~/.opam/log/posix-socket-42-5f1023.out
### output ###
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I posix-socket/src/types/.posix_socket_types.objs/byte -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/posix-base -I posix-socket/src/constants/.posix_socket_constants.objs/byte -no-alias-deps -open Posix_socket_types__ -o posix-socket/src/types/.posix_socket_types.objs/byte/posix_socket_types__Posix_socket_generated_constants.cmo -c -impl posix-socket/src/types/posix_socket_generated_constants.ml)
# File "posix-socket/src/types/posix_socket_generated_constants.ml", line 48, characters 4-63:
# 48 |   | Ctypes_static.Primitive Cstubs_internals.Int, "SOCK_STREAM" ->
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Warning 11 [redundant-case]: this match case is unused.
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I posix-socket/src/types/.posix_socket_types.objs/byte -I posix-socket/src/types/.posix_socket_types.objs/native -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/posix-base -I posix-socket/src/constants/.posix_socket_constants.objs/byte -I posix-socket/src/constants/.posix_socket_constants.objs/native -intf-suffix .ml -no-alias-deps -open Posix_socket_types__ -o posix-socket/src/types/.posix_socket_types.objs/native/posix_socket_types__Posix_socket_generated_constants.cmx -c -impl posix-socket/src/types/posix_socket_generated_constants.ml)
# File "posix-socket/src/types/posix_socket_generated_constants.ml", line 48, characters 4-63:
# 48 |   | Ctypes_static.Primitive Cstubs_internals.Int, "SOCK_STREAM" ->
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Warning 11 [redundant-case]: this match case is unused.
# File "posix-socket/test/dune", line 2, characters 7-11:
# 2 |  (name test)
#            ^^^^
# (cd _build/default/posix-socket/test && ./test.exe)
# sizeof(socklen_t) = 4
# sockaddr.sa_family = 2
# sockaddr_in.sin_addr.s_addr = 1
# Unix.ADDR_INET("0.0.0.1",80)
# Fatal error: exception Failure("getaddrinfo")



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build posix-socket 3.1.0
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
'opam reinstall --with-test --verbose posix-socket.3.1.0' failed.
"/usr/bin/env" "bash" "-c" "opam depext --with-test posix-socket.3.1.0 && opam reinstall --with-test --verbose posix-socket.3.1.0;
        res=$?;
        test "$res" != 31 && exit "$res";
        export OPAMCLI=2.0;
        build_dir=$(opam var prefix)/.opam-switch/build;
        failed=$(ls "$build_dir");
        partial_fails="";
        for pkg in $failed; do
          if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-13\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'posix-socket.3.1.0' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 1
2025-12-23 22:38.08: Job failed: Failed: Build failed
2025-12-23 22:38.08: Log analysis:
2025-12-23 22:38.08: >>> 
[ERROR] The compilation of posix-socket failed at "/home/opam/.opam/opam-init/hooks/sandbox.sh build dune build -p posix-socket -j 71 @install @runtest".
 (score = 20)
2025-12-23 22:38.08: >>> 
# Fatal error: exception Failure("getaddrinfo")
 (score = 35)
2025-12-23 22:38.08: >>> 
[ERROR] The compilation of posix-socket failed at "/home/opam/.opam/opam-init/hooks/sandbox.sh build dune build -p posix-socket -j 71 @install @runtest".
 (score = 20)
2025-12-23 22:38.08: >>> 
# Fatal error: exception Failure("getaddrinfo")
 (score = 35)
2025-12-23 22:38.08: exception Failure("getaddrinfo")