Organisationsrobur-coopmiou0518d3 ()windows-server-2022-amd64-5.3_opam-2.4

windows-server-2022-amd64-5.3_opam-2.4

Link Copied
Code Copied

Logs

2025-10-13 16:37.10: New job: test robur-coop/miou https://github.com/robur-coop/miou.git#refs/heads/main (0518d3c421fdad50103090c4070584d6827b3252) (windows-amd64:windows-server-2022-amd64-5.3_opam-2.4)
Base: windows-server-2022-amd64-ocaml-5.3
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/robur-coop/miou.git" -b "main" && cd "miou" && git reset --hard 0518d3c4
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM windows-server-2022-amd64-ocaml-5.3
# windows-server-2022-amd64-5.3_opam-2.4
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f /usr/bin/opam-2.4 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN cd ~/opam-repository && (git cat-file -e 647158776f12f00c0e5e0fa305a291840f6173e6 || git fetch origin master) && git reset -q --hard 647158776f12f00c0e5e0fa305a291840f6173e6 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 miou.opam /Users/opam/src/./
RUN opam pin add -yn miou.dev '/Users/opam/src/./'
RUN echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'
ENV DEPS="arch-x86_64.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base base64.3.5.2 cmdliner.2.0.0 conf-mingw-w64-gcc-x86_64.1 containers.3.16 csexp.1.5.2 digestif.1.3.0 dns.10.2.1 dns-client.10.2.1 domain-name.0.4.1 dscheck.0.5.0 dune.3.20.2 dune-configurator.3.20.2 duration.0.2.1 either.1.0.0 eqaf.0.10 flexdll.0.44 fmt.0.11.0 gmap.0.3.0 happy-eyeballs.2.0.1 host-arch-x86_64.1 host-system-mingw.1 hxd.0.3.5 ipaddr.5.6.1 logs.0.9.0 lru.0.3.1 macaddr.5.6.1 metrics.0.5.0 mingw-w64-shims.0.2.0 mirage-crypto.2.0.2 mirage-crypto-rng.2.0.2 mtime.2.1.0 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ohex.0.2.0 oseq.0.5.1 psq.0.2.1 ptime.1.2.0 randomconv.0.2.0 seq.base system-mingw.1 topkg.1.1.0 tsort.2.2.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.4 --depext-only -y miou.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /Users/opam/src
RUN cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2025-10-13 16:37.10: Using cache hint "robur-coop/miou-windows-server-2022-amd64-ocaml-5.3-windows-server-2022-amd64-5.3_opam-2.4-8b906953ee711e75808aba1208a88896"
2025-10-13 16:37.10: Using OBuilder spec:
((from windows-server-2022-amd64-ocaml-5.3)
(comment windows-server-2022-amd64-5.3_opam-2.4)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f /usr/bin/opam-2.4 /usr/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 647158776f12f00c0e5e0fa305a291840f6173e6 || git fetch origin master) && git reset -q --hard 647158776f12f00c0e5e0fa305a291840f6173e6 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src miou.opam) (dst /Users/opam/src/./))
(run (network host)
(shell "opam pin add -yn miou.dev '/Users/opam/src/./'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'"))
(env DEPS "arch-x86_64.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base base64.3.5.2 cmdliner.2.0.0 conf-mingw-w64-gcc-x86_64.1 containers.3.16 csexp.1.5.2 digestif.1.3.0 dns.10.2.1 dns-client.10.2.1 domain-name.0.4.1 dscheck.0.5.0 dune.3.20.2 dune-configurator.3.20.2 duration.0.2.1 either.1.0.0 eqaf.0.10 flexdll.0.44 fmt.0.11.0 gmap.0.3.0 happy-eyeballs.2.0.1 host-arch-x86_64.1 host-system-mingw.1 hxd.0.3.5 ipaddr.5.6.1 logs.0.9.0 lru.0.3.1 macaddr.5.6.1 metrics.0.5.0 mingw-w64-shims.0.2.0 mirage-crypto.2.0.2 mirage-crypto-rng.2.0.2 mtime.2.1.0 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ohex.0.2.0 oseq.0.5.1 psq.0.2.1 ptime.1.2.0 randomconv.0.2.0 seq.base system-mingw.1 topkg.1.1.0 tsort.2.2.0")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "opam update --depexts && opam install --cli=2.4 --depext-only -y miou.dev $DEPS"))
(run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst /Users/opam/src))
(run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2025-10-13 16:37.10: Waiting for resource in pool OCluster
2025-10-13 16:37.10: Waiting for worker…
2025-10-13 16:38.46: Got resource from pool OCluster
Building on thyme
HEAD is now at 25af2da Add dune-configurator as a dependency
HEAD is now at 0518d3c Merge pull request #80 from robur-coop/lint-opam


(from windows-server-2022-amd64-ocaml-5.3)
2025-10-13 16:38.58 ---> using "1d6ffeb5a52124df73b2e951323e99615c52ca4f9bdf0f65039be6146fabdaab" from cache


/: (comment windows-server-2022-amd64-5.3_opam-2.4)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (run (shell "ln -f /usr/bin/opam-2.4 /usr/bin/opam"))
2025-10-13 16:38.58 ---> using "1e2d14b3062f84a7d6f6f169887d274097a3ceefc9654f3a38ec7d8793bb5864" from cache


/: (run (shell "opam init --reinit -ni"))
No configuration file found, using built-in defaults.


<><> Unix support infrastructure ><><><><><><><><><><><><><><><><><><><><><><><>


opam and the OCaml ecosystem in general require various Unix tools in order to operate correctly. At present, this requires the installation of Cygwin to provide these tools.


How should opam obtain Unix tools?
> 1. Use tools found in PATH (Cygwin installation at C:\cygwin64)
2. Automatically create an internal Cygwin installation that will be managed by opam (recommended)
3. Use Cygwin installation found in C:\cygwin64
4. Use another existing Cygwin/MSYS2 installation
5. Abort initialisation


[1/2/3/4/5] 1
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.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from file://C:/Users/opam/opam-repository
2025-10-13 16:38.58 ---> using "6dbdca3e6c2df003f6cebaa139aa227252a76195aef4f258913cc7da8ee795b2" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
CYGWIN_NT-10.0-20348 3.6.4-1.x86_64
The OCaml toplevel, version 5.3.0
2.4.1
2025-10-13 16:38.58 ---> using "dd7e0e07f915e027f7b9342b70fd32de99a0178469368b94a3f981825bdf3d42" from cache


/: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 647158776f12f00c0e5e0fa305a291840f6173e6 || git fetch origin master) && git reset -q --hard 647158776f12f00c0e5e0fa305a291840f6173e6 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
f1d3c77350..1abfcdbf14  master     -> origin/master
647158776f Merge pull request #28628 from dinosaure/release-hxd-v0.3.5


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file://C:/Users/opam/opam-repository


Already up-to-date.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-10-13 16:38.58 ---> using "4cc2522dce941288b1c5c48b96376bcb8b58288d1d37dfb0d1989900ea362baa" from cache


/: (copy (src miou.opam) (dst /Users/opam/src/./))
2025-10-13 16:38.58 ---> using "2c604aecf20ccbeae14a0a56679082722d982461e3d7f5e07fabcaeefbcaab5f" from cache


/: (run (network host)
(shell "opam pin add -yn miou.dev '/Users/opam/src/./'"))
[miou.dev] synchronised (file://C:/Users/opam/src/.)
miou is now pinned to file://C:/Users/opam/src/. (version dev)
2025-10-13 16:38.58 ---> using "a4fec3b789bd3462367341bc17c5e2c4d7f0fdb746035169649826cdb11ef60c" from cache


/: (run (network host)
(shell "echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'"))
2025-10-13 16:38.58 ---> using "0537960da3effb5921c0179a6747b77b0c8334371ae9455664b60c7bf433c3f6" from cache


/: (env DEPS "arch-x86_64.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base base64.3.5.2 cmdliner.2.0.0 conf-mingw-w64-gcc-x86_64.1 containers.3.16 csexp.1.5.2 digestif.1.3.0 dns.10.2.1 dns-client.10.2.1 domain-name.0.4.1 dscheck.0.5.0 dune.3.20.2 dune-configurator.3.20.2 duration.0.2.1 either.1.0.0 eqaf.0.10 flexdll.0.44 fmt.0.11.0 gmap.0.3.0 happy-eyeballs.2.0.1 host-arch-x86_64.1 host-system-mingw.1 hxd.0.3.5 ipaddr.5.6.1 logs.0.9.0 lru.0.3.1 macaddr.5.6.1 metrics.0.5.0 mingw-w64-shims.0.2.0 mirage-crypto.2.0.2 mirage-crypto-rng.2.0.2 mtime.2.1.0 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ohex.0.2.0 oseq.0.5.1 psq.0.2.1 ptime.1.2.0 randomconv.0.2.0 seq.base system-mingw.1 topkg.1.1.0 tsort.2.2.0")


/: (env CI true)


/: (env OCAMLCI true)


/: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "opam update --depexts && opam install --cli=2.4 --depext-only -y miou.dev $DEPS"))


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[miou.dev] synchronised (file://C:/Users/opam/src/.)


[NOTE] Package system-mingw is already installed (current version is 1).
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-env-mingw64 is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[NOTE] Package mingw-w64-shims is already installed (current version is 0.2.0).
[NOTE] Package host-system-mingw is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[NOTE] Package flexdll is already installed (current version is 0.44).
[NOTE] Package conf-mingw-w64-gcc-x86_64 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-effects 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).
[NOTE] Package arch-x86_64 is already installed (current version is 1).
2025-10-13 16:38.58 ---> using "63e5728ec28a947bdbf2b08dd7e02e64229dbd51f8f0a85a40f501e724fc2b0e" from cache


/: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache")))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package system-mingw is already installed (current version is 1).
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-env-mingw64 is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[NOTE] Package mingw-w64-shims is already installed (current version is 0.2.0).
[NOTE] Package host-system-mingw is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[NOTE] Package flexdll is already installed (current version is 0.44).
[NOTE] Package conf-mingw-w64-gcc-x86_64 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-effects 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).
[NOTE] Package arch-x86_64 is already installed (current version is 1).
The following actions will be performed:
=== install 36 packages
- install base64            3.5.2
- install cmdliner          2.0.0
- install containers        3.16
- install csexp             1.5.2
- install digestif          1.3.0
- install dns               10.2.1
- install dns-client        10.2.1
- install domain-name       0.4.1
- install dscheck           0.5.0
- install dune              3.20.2
- install dune-configurator 3.20.2
- install duration          0.2.1
- install either            1.0.0
- install eqaf              0.10
- install fmt               0.11.0
- install gmap              0.3.0
- install happy-eyeballs    2.0.1
- install hxd               0.3.5
- install ipaddr            5.6.1
- install logs              0.9.0
- install lru               0.3.1
- install macaddr           5.6.1
- install metrics           0.5.0
- install mirage-crypto     2.0.2
- install mirage-crypto-rng 2.0.2
- install mtime             2.1.0
- install ocamlbuild        0.16.1
- install ocamlfind         1.9.8
- install ohex              0.2.0
- install oseq              0.5.1
- install psq               0.2.1
- install ptime             1.2.0
- install randomconv        0.2.0
- install seq               base
- install topkg             1.1.0
- install tsort             2.2.0


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved base64.3.5.2  (https://github.com/mirage/ocaml-base64/releases/download/v3.5.2/base64-3.5.2.tbz)
-> retrieved cmdliner.2.0.0  (https://erratique.ch/software/cmdliner/releases/cmdliner-2.0.0.tbz)
-> retrieved containers.3.16  (https://github.com/c-cube/ocaml-containers/releases/download/v3.16/containers-3.16.tbz)
-> retrieved csexp.1.5.2  (cached)
-> retrieved digestif.1.3.0  (cached)
-> retrieved domain-name.0.4.1  (cached)
-> retrieved dscheck.0.5.0  (cached)
-> retrieved dns.10.2.1, dns-client.10.2.1  (https://github.com/mirage/ocaml-dns/releases/download/v10.2.1/dns-10.2.1.tbz)
-> retrieved duration.0.2.1  (cached)
-> retrieved either.1.0.0  (cached)
-> retrieved eqaf.0.10  (cached)
-> retrieved gmap.0.3.0  (cached)
-> retrieved fmt.0.11.0  (https://erratique.ch/software/fmt/releases/fmt-0.11.0.tbz)
-> retrieved happy-eyeballs.2.0.1  (cached)
-> retrieved hxd.0.3.5  (https://github.com/dinosaure/hxd/releases/download/v0.3.5/hxd-0.3.5.tbz)
-> retrieved ipaddr.5.6.1, macaddr.5.6.1  (https://github.com/mirage/ocaml-ipaddr/releases/download/v5.6.1/ipaddr-5.6.1.tbz)
-> retrieved lru.0.3.1  (cached)
-> retrieved logs.0.9.0  (https://erratique.ch/software/logs/releases/logs-0.9.0.tbz)
-> retrieved metrics.0.5.0  (https://github.com/mirage/metrics/releases/download/v0.5.0/metrics-0.5.0.tbz)
-> retrieved mtime.2.1.0  (cached)
-> retrieved mirage-crypto.2.0.2, mirage-crypto-rng.2.0.2  (https://github.com/mirage/mirage-crypto/releases/download/v2.0.2/mirage-crypto-2.0.2.tbz)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ohex.0.2.0  (cached)
-> retrieved oseq.0.5.1  (cached)
-> retrieved psq.0.2.1  (cached)
-> retrieved ptime.1.2.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved randomconv.0.2.0  (cached)
-> retrieved tsort.2.2.0  (cached)
-> retrieved topkg.1.1.0  (https://erratique.ch/software/topkg/releases/topkg-1.1.0.tbz)
-> retrieved dune.3.20.2, dune-configurator.3.20.2  (https://github.com/ocaml/dune/releases/download/3.20.2/dune-3.20.2.tbz)
-> installed cmdliner.2.0.0
-> installed ocamlbuild.0.16.1
[WARNING] .install file is missing .exe extension for src/findlib/ocamlfind
[WARNING] .install file is missing .exe extension for src/findlib/ocamlfind_opt
[WARNING] Automatically adding .exe to C:\Users\opam\AppData\Local\opam\5.3.0\.opam-switch\build\ocamlfind.1.9.8\src\findlib\ocamlfind.exe
[WARNING] Automatically adding .exe to C:\Users\opam\AppData\Local\opam\5.3.0\.opam-switch\build\ocamlfind.1.9.8\src\findlib\ocamlfind_opt.exe
[WARNING] C:\Users\opam\AppData\Local\opam\5.3.0\bin\safe_camlp4 is a script; the command won't be available
-> installed ocamlfind.1.9.8
-> installed topkg.1.1.0
-> installed fmt.0.11.0
-> installed mtime.2.1.0
-> installed ptime.1.2.0
-> installed logs.0.9.0
-> installed dune.3.20.2
-> installed domain-name.0.4.1
-> installed base64.3.5.2
-> installed csexp.1.5.2
-> installed duration.0.2.1
-> installed either.1.0.0
-> installed eqaf.0.10
-> installed gmap.0.3.0
-> installed macaddr.5.6.1
-> installed metrics.0.5.0
-> installed ohex.0.2.0
-> installed oseq.0.5.1
-> installed psq.0.2.1
-> installed randomconv.0.2.0
-> installed ipaddr.5.6.1
-> installed tsort.2.2.0
-> installed lru.0.3.1
-> installed dune-configurator.3.20.2
-> installed digestif.1.3.0
-> installed dns.10.2.1
-> installed happy-eyeballs.2.0.1
-> installed hxd.0.3.5
-> installed mirage-crypto.2.0.2
-> installed containers.3.16
-> installed mirage-crypto-rng.2.0.2
-> installed dscheck.0.5.0
-> installed dns-client.10.2.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-10-13 16:38.58 ---> using "8593b1bafb7d1e438598d3a12801280e562777976600d05edc1cc16f977ad33c" from cache


/: (copy (src .) (dst /Users/opam/src))
2025-10-13 16:40.19 ---> saved as "bf0a6057b6b127580a59919e8367b319d7d18c3820034de6dc5469ced4f5c06f"


/: (run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/test/sync && .\test_sync.exe)
Run tests into C:\Users\opam\src\_build\default\test\sync\_tests\run-jvFh
test01: ....ok
test02: ..ok
test03: ok
File "lib/dune", lines 50-54, characters 0-130:
50 | (rule
51 |  (targets miou_poll_config.ml miou_poll.h)
52 |  (deps conf/discover.exe conf/has_ppoll.c)
53 |  (action
54 |   (run ./conf/discover.exe)))
(cd _build/default/lib && conf\discover.exe)
compiling c program:
| #define _GNU_SOURCE /* for linux */
|       #include <poll.h>
|       #include <stddef.h>
|       #include <strings.h>
|
|       int main(void) {
|         struct pollfd fds;
|         struct timespec ts;
|
|         bzero(&fds, sizeof(fds));
|         bzero(&ts, sizeof(ts));
|
|         return (ppoll(&fds, 0, &ts, NULL));
|       }
|
run: x86_64-w64-mingw32-gcc -O2 -fno-strict-aliasing -fwrapv -mms-bitfields    -I C:/Users/opam/AppData/Local/opam/5.3.0/lib/ocaml -o C:\Users\opam\AppData\Local\Temp\build_3726ee_dune\ocaml-configuratord05747\c-test-0\test.exe C:\Users\opam\AppData\Local\Temp\build_3726ee_dune\ocaml-configuratord05747\c-test-0\test.c -lws2_32 -lole32 -luuid -lversion -lshlwapi -lsynchronization -l:libpthread.a -lgcc_eh
-> process exited with code 1
-> stdout:
-> stderr:
| C:\Users\opam\AppData\Local\Temp\build_3726ee_dune\ocaml-configuratord05747\c-test-0\test.c:2:16: fatal error: poll.h: No such file or directory
|     2 |       #include <poll.h>
|       |                ^~~~~~~~
| compilation terminated.
writing header file miou_poll.h
| #ifndef DISCOVER_MIOU_POLL_H
| #define DISCOVER_MIOU_POLL_H
| #undef  HAS_PPOLL
| #endif
compiling c program:
| #include <stdio.h>
| #include <poll.h>
|
|
| #define DUNE_ABS(x) ((x >= 0)? x: -(x))
| #define DUNE_D0(x) ('0'+(DUNE_ABS(x)/1         )%10)
| #define DUNE_D1(x) ('0'+(DUNE_ABS(x)/10        )%10), DUNE_D0(x)
| #define DUNE_D2(x) ('0'+(DUNE_ABS(x)/100       )%10), DUNE_D1(x)
| #define DUNE_D3(x) ('0'+(DUNE_ABS(x)/1000      )%10), DUNE_D2(x)
| #define DUNE_D4(x) ('0'+(DUNE_ABS(x)/10000     )%10), DUNE_D3(x)
| #define DUNE_D5(x) ('0'+(DUNE_ABS(x)/100000    )%10), DUNE_D4(x)
| #define DUNE_D6(x) ('0'+(DUNE_ABS(x)/1000000   )%10), DUNE_D5(x)
| #define DUNE_D7(x) ('0'+(DUNE_ABS(x)/10000000  )%10), DUNE_D6(x)
| #define DUNE_D8(x) ('0'+(DUNE_ABS(x)/100000000 )%10), DUNE_D7(x)
| #define DUNE_D9(x) ('0'+(DUNE_ABS(x)/1000000000)%10), DUNE_D8(x)
| #define DUNE_SIGN(x) ((x >= 0)? '0': '-')
|
|
| const char s0[] = {
|   'B', 'E', 'G', 'I', 'N', '-', '0', '-',
|   DUNE_SIGN((POLLIN)),
|   DUNE_D9((POLLIN)),
|   '-', 'E', 'N', 'D'
| };
|
|
| const char s1[] = {
|   'B', 'E', 'G', 'I', 'N', '-', '1', '-',
|   DUNE_SIGN((POLLPRI)),
|   DUNE_D9((POLLPRI)),
|   '-', 'E', 'N', 'D'
| };
|
|
| const char s2[] = {
|   'B', 'E', 'G', 'I', 'N', '-', '2', '-',
|   DUNE_SIGN((POLLOUT)),
|   DUNE_D9((POLLOUT)),
|   '-', 'E', 'N', 'D'
| };
|
|
| const char s3[] = {
|   'B', 'E', 'G', 'I', 'N', '-', '3', '-',
|   DUNE_SIGN((POLLERR)),
|   DUNE_D9((POLLERR)),
|   '-', 'E', 'N', 'D'
| };
|
|
| const char s4[] = {
|   'B', 'E', 'G', 'I', 'N', '-', '4', '-',
|   DUNE_SIGN((POLLHUP)),
|   DUNE_D9((POLLHUP)),
|   '-', 'E', 'N', 'D'
| };
|
|
| const char s5[] = {
|   'B', 'E', 'G', 'I', 'N', '-', '5', '-',
|   DUNE_SIGN((POLLNVAL)),
|   DUNE_D9((POLLNVAL)),
|   '-', 'E', 'N', 'D'
| };
|
|
| const char s6[] = {
|   'B', 'E', 'G', 'I', 'N', '-', '6', '-',
|   DUNE_SIGN((sizeof(struct pollfd))),
|   DUNE_D9((sizeof(struct pollfd))),
|   '-', 'E', 'N', 'D'
| };
|
run: x86_64-w64-mingw32-gcc -O2 -fno-strict-aliasing -fwrapv -mms-bitfields    -I C:/Users/opam/AppData/Local/opam/5.3.0/lib/ocaml -o C:\Users\opam\AppData\Local\Temp\build_3726ee_dune\ocaml-configuratord05747\c-test-2\test.o -c C:\Users\opam\AppData\Local\Temp\build_3726ee_dune\ocaml-configuratord05747\c-test-2\test.c -lws2_32 -lole32 -luuid -lversion -lshlwapi -lsynchronization -l:libpthread.a -lgcc_eh
-> process exited with code 1
-> stdout:
-> stderr:
| C:\Users\opam\AppData\Local\Temp\build_3726ee_dune\ocaml-configuratord05747\c-test-2\test.c:2:10: fatal error: poll.h: No such file or directory
|     2 | #include <poll.h>
|       |          ^~~~~~~~
| compilation terminated.
Error: failed to compile program
"cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-10-13 16:41.43: Job failed: Failed: Build failed