Organisationsocaml-multicoredomainslib1a7f59 (heartbeat_with_compiler_support)windows-server-2022-amd64-5.4_opam-2.5

windows-server-2022-amd64-5.4_opam-2.5

Link Copied
Code Copied

Logs

2026-01-19 21:17.29: New job: test ocaml-multicore/domainslib https://github.com/ocaml-multicore/domainslib.git#refs/heads/heartbeat_with_compiler_support (1a7f592b655c4a10b9fc3d74f6e901bd21028616) (windows-amd64:windows-server-2022-amd64-5.4_opam-2.5)
Base: windows-server-2022-amd64-ocaml-5.4
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ocaml-multicore/domainslib.git" -b "heartbeat_with_compiler_support" && cd "domainslib" && git reset --hard 1a7f592b
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM windows-server-2022-amd64-ocaml-5.4
# windows-server-2022-amd64-5.4_opam-2.5
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f /usr/bin/opam-2.5 /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 1c997ec9e6ebc6ea699547000cb8dfa44e52efaa || git fetch origin master) && git reset -q --hard 1c997ec9e6ebc6ea699547000cb8dfa44e52efaa && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 domainslib.opam /Users/opam/src/./
RUN opam pin add -yn domainslib.dev '/Users/opam/src/./'
RUN echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'
ENV DEPS="arch-x86_64.1 backoff.0.1.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base conf-mingw-w64-gcc-x86_64.1 csexp.1.5.2 domain-local-await.1.0.1 domain-local-timeout.1.0.1 dune.3.21.0 dune-configurator.3.21.0 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 kcas.0.7.0 mingw-w64-shims.0.2.0 mirage-clock.4.2.0 mirage-clock-unix.4.2.0 mtime.2.1.0 multicore-magic.2.3.2 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 psq.0.2.1 qcheck-core.0.91 qcheck-multicoretests-util.0.10 qcheck-stm.0.10 saturn.1.0.0 seq.base system-mingw.1 thread-table.1.0.0 topkg.1.1.1"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.5 --depext-only -y domainslib.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


2026-01-19 21:17.29: Using cache hint "ocaml-multicore/domainslib-windows-server-2022-amd64-ocaml-5.4-windows-server-2022-amd64-5.4_opam-2.5-007c69c002e80c291222d412c8169b17"
2026-01-19 21:17.29: Using OBuilder spec:
((from windows-server-2022-amd64-ocaml-5.4)
(comment windows-server-2022-amd64-5.4_opam-2.5)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f /usr/bin/opam-2.5 /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 1c997ec9e6ebc6ea699547000cb8dfa44e52efaa || git fetch origin master) && git reset -q --hard 1c997ec9e6ebc6ea699547000cb8dfa44e52efaa && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src domainslib.opam) (dst /Users/opam/src/./))
(run (network host)
(shell "opam pin add -yn domainslib.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 backoff.0.1.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base conf-mingw-w64-gcc-x86_64.1 csexp.1.5.2 domain-local-await.1.0.1 domain-local-timeout.1.0.1 dune.3.21.0 dune-configurator.3.21.0 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 kcas.0.7.0 mingw-w64-shims.0.2.0 mirage-clock.4.2.0 mirage-clock-unix.4.2.0 mtime.2.1.0 multicore-magic.2.3.2 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 psq.0.2.1 qcheck-core.0.91 qcheck-multicoretests-util.0.10 qcheck-stm.0.10 saturn.1.0.0 seq.base system-mingw.1 thread-table.1.0.0 topkg.1.1.1")
(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.5 --depext-only -y domainslib.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"))
)


2026-01-19 21:17.29: Waiting for resource in pool OCluster
2026-01-19 21:17.35: Waiting for worker…
2026-01-19 21:56.41: Got resource from pool OCluster
Building on thyme
All commits already cached
HEAD is now at 1a7f592 heartbeat with compiler support


(from windows-server-2022-amd64-ocaml-5.4)
2026-01-19 21:56.43 ---> using "dc0473c210cbdaa785843aceeb4b20f70de275b54f2f11b3cd1945755e26c295" from cache


/: (comment windows-server-2022-amd64-5.4_opam-2.5)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (run (shell "ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
2026-01-19 21:56.43 ---> using "458612386af86cf817dbe29d01dc6efb3c2620df43160b102405910eab684d9d" 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
2026-01-19 21:56.43 ---> using "3bceda86eced6c80594b1121f6cd17638cfd192928e335ef4b5c0e6a8a370c40" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
CYGWIN_NT-10.0-20348 3.6.5-1.x86_64
The OCaml toplevel, version 5.4.0
2.5.0
2026-01-19 21:56.43 ---> using "bbfe8c5871361a1180a9d803bce7b93263c018d1d780fe6d2ac0f7a771421cb9" 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 1c997ec9e6ebc6ea699547000cb8dfa44e52efaa || git fetch origin master) && git reset -q --hard 1c997ec9e6ebc6ea699547000cb8dfa44e52efaa && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
a6b2f19780..1c997ec9e6  master     -> origin/master
1c997ec9e6 Merge pull request #29241 from polytypic/release-multicore-magic-2.3.2


<><> 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)
2026-01-19 21:56.43 ---> using "c245efe8caa6dbaf13c6cbccc129207916c67af31529a7265404462a98157001" from cache


/: (copy (src domainslib.opam) (dst /Users/opam/src/./))
2026-01-19 21:56.43 ---> using "90f4c0dec1084f6ef2db3586193a1b8dc7200a212e19e899a4bd4c13dfcede2d" from cache


/: (run (network host)
(shell "opam pin add -yn domainslib.dev '/Users/opam/src/./'"))
[domainslib.dev] synchronised (file://C:/Users/opam/src/.)
domainslib is now pinned to file://C:/Users/opam/src/. (version dev)
2026-01-19 21:56.43 ---> using "16f0c09a8ff9246f3b3cc50a253fa0ec425ef85bd49fc395b4c5cb0426be4f93" from cache


/: (run (network host)
(shell "echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'"))
2026-01-19 21:56.43 ---> using "0122bb08993d24a925e2671b9c6a989cd849b5f69106c8f8b92098e7c9c862de" from cache


/: (env DEPS "arch-x86_64.1 backoff.0.1.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base conf-mingw-w64-gcc-x86_64.1 csexp.1.5.2 domain-local-await.1.0.1 domain-local-timeout.1.0.1 dune.3.21.0 dune-configurator.3.21.0 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 kcas.0.7.0 mingw-w64-shims.0.2.0 mirage-clock.4.2.0 mirage-clock-unix.4.2.0 mtime.2.1.0 multicore-magic.2.3.2 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 psq.0.2.1 qcheck-core.0.91 qcheck-multicoretests-util.0.10 qcheck-stm.0.10 saturn.1.0.0 seq.base system-mingw.1 thread-table.1.0.0 topkg.1.1.1")


/: (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.5 --depext-only -y domainslib.dev $DEPS"))


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[domainslib.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.4.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.4.0).
[NOTE] Package ocaml is already installed (current version is 5.4.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).
# To update the current shell environment, run: eval $(opam env)
2026-01-19 21:56.43 ---> using "a7eb6e92ced2fc44c44bb9f79d663e8a87a46a5b85b79b8a64bf8397b3a0808d" 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.4.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.4.0).
[NOTE] Package ocaml is already installed (current version is 5.4.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 21 packages
- install backoff                    0.1.1
- install csexp                      1.5.2
- install domain-local-await         1.0.1
- install domain-local-timeout       1.0.1
- install dune                       3.21.0
- install dune-configurator          3.21.0
- install kcas                       0.7.0
- install mirage-clock               4.2.0
- install mirage-clock-unix          4.2.0
- install mtime                      2.1.0
- install multicore-magic            2.3.2
- install ocamlbuild                 0.16.1
- install ocamlfind                  1.9.8
- install psq                        0.2.1
- install qcheck-core                0.91
- install qcheck-multicoretests-util 0.10
- install qcheck-stm                 0.10
- install saturn                     1.0.0
- install seq                        base
- install thread-table               1.0.0
- install topkg                      1.1.1


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved backoff.0.1.1  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved domain-local-await.1.0.1  (cached)
-> retrieved domain-local-timeout.1.0.1  (cached)
-> retrieved kcas.0.7.0  (cached)
-> retrieved mirage-clock.4.2.0, mirage-clock-unix.4.2.0  (cached)
-> retrieved mtime.2.1.0  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved multicore-magic.2.3.2  (https://github.com/ocaml-multicore/multicore-magic/releases/download/2.3.2/multicore-magic-2.3.2.tbz)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved psq.0.2.1  (cached)
-> retrieved qcheck-core.0.91  (https://github.com/c-cube/qcheck/archive/v0.91.tar.gz)
-> retrieved qcheck-multicoretests-util.0.10, qcheck-stm.0.10  (https://github.com/ocaml-multicore/multicoretests/archive/refs/tags/0.10.tar.gz)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved saturn.1.0.0  (cached)
-> retrieved thread-table.1.0.0  (cached)
-> retrieved topkg.1.1.1  (https://erratique.ch/software/topkg/releases/topkg-1.1.1.tbz)
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (https://github.com/ocaml/dune/releases/download/3.21.0/dune-3.21.0.tbz)
-> 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.4.0\.opam-switch\build\ocamlfind.1.9.8\src\findlib\ocamlfind.exe
[WARNING] Automatically adding .exe to C:\Users\opam\AppData\Local\opam\5.4.0\.opam-switch\build\ocamlfind.1.9.8\src\findlib\ocamlfind_opt.exe
[WARNING] C:\Users\opam\AppData\Local\opam\5.4.0\bin\safe_camlp4 is a script; the command won't be available
-> installed ocamlfind.1.9.8
-> installed topkg.1.1.1
-> installed mtime.2.1.0
-> installed dune.3.21.0
-> installed backoff.0.1.1
-> installed mirage-clock.4.2.0
-> installed csexp.1.5.2
-> installed multicore-magic.2.3.2
-> installed psq.0.2.1
-> installed qcheck-core.0.91
-> installed thread-table.1.0.0
-> installed qcheck-multicoretests-util.0.10
-> installed domain-local-await.1.0.1
-> installed domain-local-timeout.1.0.1
-> installed saturn.1.0.0
-> installed qcheck-stm.0.10
-> installed dune-configurator.3.21.0
-> installed kcas.0.7.0
-> installed mirage-clock-unix.4.2.0
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-19 22:05.25 ---> saved as "550dd031cfbd975750f8d2d69e7731909ae6c5834614065e41f3ee4f77d13fe5"


/: (copy (src .) (dst /Users/opam/src))
2026-01-19 22:06.26 ---> saved as "89e50e1d5bc5525fd627aad620a12d817d131661bfc947c7f3cf5a27ab0784de"


/: (run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
File "test/dune", line 161, characters 10-20:
161 |  (modules test_small))
^^^^^^^^^^
Error: Module Test_small doesn't exist.
File "test/dune", line 166, characters 10-24:
166 |  (modules bench_analysis))
^^^^^^^^^^^^^^
Error: Module Bench_analysis doesn't exist.
File "test/dune", line 167, characters 72-87:
167 | (executable (name bench_analysis2) (libraries domainslib unix) (modules bench_analysis2))
^^^^^^^^^^^^^^^
Error: Module Bench_analysis2 doesn't exist.
File "test/dune", line 168, characters 70-83:
168 | (executable (name bench_counter) (libraries domainslib unix) (modules bench_counter))
^^^^^^^^^^^^^
Error: Module Bench_counter doesn't exist.
File "lib/dune", line 7, characters 9-24:
7 |   (names heartbeat_stubs)))
^^^^^^^^^^^^^^^
(cd _build/default/lib && C:\Users\opam\AppData\Local\opam\5.4.0\bin\x86_64-w64-mingw32-gcc.exe -O2 -fno-strict-aliasing -fwrapv -mms-bitfields -Wall -fdiagnostics-color=always -g -I C:/Users/opam/AppData/Local/opam/5.4.0/lib/ocaml -I C:/Users/opam/AppData/Local/opam/5.4.0/lib/ocaml\unix -I C:\Users\opam\AppData\Local\opam\5.4.0\lib\backoff -I C:\Users\opam\AppData\Local\opam\5.4.0\lib\domain-local-await -I C:\Users\opam\AppData\Local\opam\5.4.0\lib\multicore-magic -I C:\Users\opam\AppData\Local\opam\5.4.0\lib\multicore-magic\__private__/multicore_magic_atomic_array_unboxed5_4 -I C:\Users\opam\AppData\Local\opam\5.4.0\lib\saturn -I C:\Users\opam\AppData\Local\opam\5.4.0\lib\thread-table -o heartbeat_stubs.o -c heartbeat_stubs.c)
heartbeat_stubs.c:32:15: warning: 'caml_domain_external_interrupt_hook' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
32 | extern void (*caml_domain_external_interrupt_hook)(void);
|               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
heartbeat_stubs.c: In function 'domainslib_heartbeat_acquire':
heartbeat_stubs.c:179:5: error: unknown type name 'sigset_t'; did you mean '_sigset_t'?
179 |     sigset_t mask, old_mask;
|     ^~~~~~~~
|     _sigset_t
heartbeat_stubs.c:180:5: warning: implicit declaration of function 'sigfillset' [-Wimplicit-function-declaration]
180 |     sigfillset(&mask);
|     ^~~~~~~~~~
heartbeat_stubs.c:181:5: warning: implicit declaration of function 'pthread_sigmask'; did you mean 'pthread_spin_lock'? [-Wimplicit-function-declaration]
181 |     pthread_sigmask(SIG_BLOCK, &mask, &old_mask);
|     ^~~~~~~~~~~~~~~
|     pthread_spin_lock
heartbeat_stubs.c: In function 'domainslib_set_fiber_state':
heartbeat_stubs.c:223:28: error: 'struct stack_info' has no member named 'dyn'
223 |   Caml_state->current_stack->dyn = dyn;
|                            ^~
heartbeat_stubs.c:224:28: error: 'struct stack_info' has no member named 'val'
224 |   Caml_state->current_stack->val = val;
|                            ^~
heartbeat_stubs.c:227:39: error: 'caml_domain_state' has no member named 'dynamic_bindings'
227 |   caml_dynamic_flush_thread(Caml_state->dynamic_bindings);
|                                       ^~
"cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2026-01-19 22:07.13: Job failed: Failed: Build failed