2025-09-16 10:10.52: New job: test dune-universe/hacl-star-dune https://github.com/dune-universe/hacl-star-dune.git#refs/heads/master (42045c9005a48133726333d706bfe6840a18a3c5) (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/dune-universe/hacl-star-dune.git" -b "master" && cd "hacl-star-dune" && git reset --hard 42045c90
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 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 hacl-star.opam hacl-star-raw.opam /Users/opam/src/./
RUN opam pin add -yn hacl-star.dev '/Users/opam/src/./' && \
opam pin add -yn hacl-star-raw.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 bigarray-compat.1.1.0 conf-gmp.5 conf-mingw-w64-gcc-x86_64.1 conf-mingw-w64-gmp-x86_64.1 conf-pkg-config.4 conf-which.1 cppo.1.8.0 csexp.1.5.2 ctypes.0.23.0 dune.3.20.2 dune-configurator.3.20.2 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 integers.0.7.0 mingw-w64-shims.0.2.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 ocamlfind.1.9.8 stdlib-shims.0.3.0 system-mingw.1 zarith.1.14"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.4 --depext-only -y hacl-star.dev hacl-star-raw.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-09-16 10:10.52: Using cache hint "dune-universe/hacl-star-dune-windows-server-2022-amd64-ocaml-5.3-windows-server-2022-amd64-5.3_opam-2.4-639b332fdcb6a644da4c8d260518b952"
2025-09-16 10:10.52: 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 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src hacl-star.opam hacl-star-raw.opam) (dst /Users/opam/src/./))
(run (network host)
(shell "opam pin add -yn hacl-star.dev '/Users/opam/src/./' && \
\nopam pin add -yn hacl-star-raw.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 bigarray-compat.1.1.0 conf-gmp.5 conf-mingw-w64-gcc-x86_64.1 conf-mingw-w64-gmp-x86_64.1 conf-pkg-config.4 conf-which.1 cppo.1.8.0 csexp.1.5.2 ctypes.0.23.0 dune.3.20.2 dune-configurator.3.20.2 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 integers.0.7.0 mingw-w64-shims.0.2.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 ocamlfind.1.9.8 stdlib-shims.0.3.0 system-mingw.1 zarith.1.14")
(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 hacl-star.dev hacl-star-raw.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-09-16 10:10.52: Waiting for resource in pool OCluster
2025-09-16 10:10.53: Waiting for worker…
2025-09-16 12:42.06: Got resource from pool OCluster
Building on thyme
All commits already cached
HEAD is now at 42045c9 Only build portable code
(from windows-server-2022-amd64-ocaml-5.3)
2025-09-16 12:42.08 ---> 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-09-16 12:42.08 ---> 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-09-16 12:42.08 ---> 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-09-16 12:42.08 ---> 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 6ef6813522b6ea29933f6451236a1639bdbaec61 || git fetch origin master) && git reset -q --hard 6ef6813522b6ea29933f6451236a1639bdbaec61 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
f1d3c77350..7949ff40d8 master -> origin/master
6ef6813522 Merge pull request #28449 from dra27/ocaml-compiler-msvc
<><> 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-09-16 12:42.08 ---> using "10893445dfa72f73f3c2eb32ba65e9f677cf915b3f53a0f3022bc8a2d2100300" from cache
/: (copy (src hacl-star.opam hacl-star-raw.opam) (dst /Users/opam/src/./))
2025-09-16 12:43.23 ---> saved as "b5be9f95b2e5121e0bd0ae0e44bc035615f9284f230cf30237a04b5cbb95abc1"
/: (run (network host)
(shell "opam pin add -yn hacl-star.dev '/Users/opam/src/./' && \
\nopam pin add -yn hacl-star-raw.dev '/Users/opam/src/./'"))
[hacl-star.dev] synchronised (file://C:/Users/opam/src/.)
hacl-star is now pinned to file://C:/Users/opam/src/. (version dev)
[hacl-star-raw.dev] synchronised (file://C:/Users/opam/src/.)
hacl-star-raw is now pinned to file://C:/Users/opam/src/. (version dev)
2025-09-16 12:44.18 ---> saved as "4439250f77c4b53f4a25f03a8aa43d7a59849f430552c23f11ba4a32d3fd65bb"
/: (run (network host)
(shell "echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'"))
2025-09-16 12:44.54 ---> saved as "1e6b722bfd170fdf82ddc2dd157f43b39e3bc700d8176d186cb3c8d7929847b1"
/: (env DEPS "arch-x86_64.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 conf-gmp.5 conf-mingw-w64-gcc-x86_64.1 conf-mingw-w64-gmp-x86_64.1 conf-pkg-config.4 conf-which.1 cppo.1.8.0 csexp.1.5.2 ctypes.0.23.0 dune.3.20.2 dune-configurator.3.20.2 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 integers.0.7.0 mingw-w64-shims.0.2.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 ocamlfind.1.9.8 stdlib-shims.0.3.0 system-mingw.1 zarith.1.14")
/: (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 hacl-star.dev hacl-star-raw.dev $DEPS"))
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[hacl-star.dev] synchronised (file://C:/Users/opam/src/.)
[hacl-star-raw.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).
The following system packages will first need to be installed:
mingw64-x86_64-gmp
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ C:\Users\opam\AppData\Local\opam\.cygwin\setup-x86_64.exe "--root" "C:\\cygwin64" "--quiet-mode" "unattended" "--no-shortcuts" "--no-startmenu" "--no-desktop" "--no-admin" "--no-version-check" "--no-write-registry" "--packages" "mingw64-x86_64-gmp"
- Starting cygwin install, version 2.934
- User has backup/restore rights
- User has symlink creation right
- Current Directory: C:\Windows\system32
- root: C:\cygwin64 system
- Changing gid to Administrators
- Selected local directory: C:\Windows\system32
- net: Preconfig
- site: https://cygwin.mirror.constant.com/
- solving: 1 tasks, update: no, use test packages: no
- solving: 2 tasks, update: no, use test packages: no
- Augmented Transaction List:
- 0 install mingw64-x86_64-gcc-g++ 13.4.0-1
- 1 install mingw64-x86_64-gmp 6.3.0-1
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/mingw64-x86_64-gcc/mingw64-x86_64-gcc-g++/mingw64-x86_64-gcc-g++-13.4.0-1-x86_64.tar.zst
- Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-gmp/mingw64-x86_64-gmp-6.3.0-1.tar.zst
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/mingw64-x86_64-gcc/mingw64-x86_64-gcc-g++/mingw64-x86_64-gcc-g++-13.4.0-1-x86_64.tar.zst
- Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-x86_64-gmp/mingw64-x86_64-gmp-6.3.0-1.tar.zst
- running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash"
- running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash"
- running: C:\cygwin64\bin\dash.exe "/etc/postinstall/zp_man-db-update-index.dash"
- Ending cygwin install
- NOTE: you should run 'diskperf -y' to enable the disk statistics
- NOTE: you should run 'diskperf -y' to enable the disk statistics
2025-09-16 12:46.54 ---> saved as "28a82971c5a93e2a986448281be7916a1c42763fee5c7878eac814a184b9b356"
/: (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:
=== recompile 1 package
- recompile mingw-w64-shims 0.2.0
=== install 14 packages
- install bigarray-compat 1.1.0
- install conf-gmp 5
- install conf-mingw-w64-gmp-x86_64 1
- install conf-pkg-config 4
- install conf-which 1
- install cppo 1.8.0
- install csexp 1.5.2
- install ctypes 0.23.0
- install dune 3.20.2
- install dune-configurator 3.20.2
- install integers 0.7.0
- install ocamlfind 1.9.8
- install stdlib-shims 0.3.0
- install zarith 1.14
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-gmp.5 (cached)
-> retrieved bigarray-compat.1.1.0 (cached)
-> retrieved cppo.1.8.0 (cached)
-> retrieved csexp.1.5.2 (cached)
-> installed conf-pkg-config.4
-> retrieved ctypes.0.23.0 (cached)
-> retrieved integers.0.7.0 (cached)
-> retrieved mingw-w64-shims.0.2.0 (cached)
-> removed mingw-w64-shims.0.2.0
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved zarith.1.14 (cached)
-> installed conf-mingw-w64-gmp-x86_64.1
-> installed conf-which.1
-> installed mingw-w64-shims.0.2.0
-> installed conf-gmp.5
-> 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)
[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 zarith.1.14
-> installed dune.3.20.2
-> installed stdlib-shims.0.3.0
-> installed bigarray-compat.1.1.0
-> installed csexp.1.5.2
-> installed cppo.1.8.0
-> installed integers.0.7.0
-> installed dune-configurator.3.20.2
-> installed ctypes.0.23.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-09-16 12:57.08 ---> saved as "d27377a2baa1360929f323f4479b64cec38fc56b907f0008f8a507d3b6266006"
/: (copy (src .) (dst /Users/opam/src))
2025-09-16 12:58.22 ---> saved as "e26d6720313e30bf085b1bb01a0e911c6f58bcf88e6f4c8965a9d01eddfeb395"
/: (run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
Error: CreateProcess(): Exec format error
-> required by _build/default/libevercrypt.a
-> required by _build/default/tests/config_test.exe
-> required by alias tests/runtest-config_test in tests/dune:2
-> required by alias tests/runtest
File "dune.inc", lines 2-139, characters 0-3404:
2 | (library
3 | (name raw)
4 | (public_name hacl-star-raw)
.....
137 | Lib_RandomBuffer_System_stubs
138 | Lib_RandomBuffer_System_bindings
139 | ))
Error: No rule found for dllevercrypt.dll
File "dune.inc", lines 2-139, characters 0-3404:
2 | (library
3 | (name raw)
4 | (public_name hacl-star-raw)
.....
137 | Lib_RandomBuffer_System_stubs
138 | Lib_RandomBuffer_System_bindings
139 | ))
Error: No rule found for dllevercrypt_c_stubs.dll
"cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-09-16 12:59.38: Job failed: Failed: Build failed