2025-10-27 22:39.20: New job: test ygrek/extunix https://github.com/ygrek/extunix.git#refs/heads/master (e90bd03bbcdf84ccba6b749f727d487f4161aff8) (windows-amd64:windows-server-2022-amd64-5.4_opam-2.4)Base: windows-server-2022-amd64-ocaml-5.4Opam project buildTo reproduce locally:git clone --recursive "https://github.com/ygrek/extunix.git" -b "master" && cd "extunix" && git reset --hard e90bd03bcat > Dockerfile <<'END-OF-DOCKERFILE'FROM windows-server-2022-amd64-ocaml-5.4# windows-server-2022-amd64-5.4_opam-2.4USER 1000:1000ENV CLICOLOR_FORCE="1"ENV OPAMCOLOR="always"RUN ln -f /usr/bin/opam-2.4 /usr/bin/opamRUN opam init --reinit -niRUN uname -rs && opam exec -- ocaml -version && opam --versionRUN cd ~/opam-repository && (git cat-file -e 7f9c784b97b368cd82ee80890d9866b8e66b7c1b || git fetch origin master) && git reset -q --hard 7f9c784b97b368cd82ee80890d9866b8e66b7c1b && git log --no-decorate -n1 --oneline && opam update -uCOPY --chown=1000:1000 extunix.opam /Users/opam/src/./RUN opam pin add -yn extunix.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-bytes.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 dune.3.20.2 dune-configurator.3.20.2 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 mingw-w64-shims.0.2.0 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlfind.1.9.8 ounit2.2.2.7 ppx_derivers.1.2.1 ppxlib.0.37.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 system-mingw.1"ENV CI="true"ENV OCAMLCI="true"RUN opam update --depexts && opam install --cli=2.4 --depext-only -y extunix.dev $DEPSRUN opam install $DEPSCOPY --chown=1000:1000 . /Users/opam/srcRUN cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _buildEND-OF-DOCKERFILEdocker build .END-REPRO-BLOCK2025-10-27 22:39.20: Using cache hint "ygrek/extunix-windows-server-2022-amd64-ocaml-5.4-windows-server-2022-amd64-5.4_opam-2.4-59e29d8a812d3b3bd2dd6fc79f2e84f5"2025-10-27 22:39.20: Using OBuilder spec:((from windows-server-2022-amd64-ocaml-5.4)(comment windows-server-2022-amd64-5.4_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 7f9c784b97b368cd82ee80890d9866b8e66b7c1b || git fetch origin master) && git reset -q --hard 7f9c784b97b368cd82ee80890d9866b8e66b7c1b && git log --no-decorate -n1 --oneline && opam update -u"))(copy (src extunix.opam) (dst /Users/opam/src/./))(run (network host)(shell "opam pin add -yn extunix.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-bytes.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 dune.3.20.2 dune-configurator.3.20.2 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 mingw-w64-shims.0.2.0 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlfind.1.9.8 ounit2.2.2.7 ppx_derivers.1.2.1 ppxlib.0.37.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 system-mingw.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.4 --depext-only -y extunix.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-27 22:39.20: Waiting for resource in pool OCluster2025-10-27 22:39.20: Waiting for worker…2025-10-28 00:11.32: Got resource from pool OClusterBuilding on thymeAll commits already cachedHEAD is now at e90bd03 Remove outdated depext on libexecinfo-dev on Alpine(from windows-server-2022-amd64-ocaml-5.4)2025-10-28 00:11.34 ---> using "dc0473c210cbdaa785843aceeb4b20f70de275b54f2f11b3cd1945755e26c295" from cache/: (comment windows-server-2022-amd64-5.4_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-28 00:11.34 ---> using "2cc10c0de974a41a492b52f4c10e4774291ab2452e1192584f4bd1214eecf165" 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:\cygwin644. Use another existing Cygwin/MSYS2 installation5. Abort initialisation[1/2/3/4/5] 1Checking 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-repository2025-10-28 00:11.34 ---> using "e3a025f74254e53619e1cb17b830cf27adf6ecfb6e45ea98f6e1b9fc227d98a5" from cache/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))CYGWIN_NT-10.0-20348 3.6.5-1.x86_64The OCaml toplevel, version 5.4.02.4.12025-10-28 00:11.34 ---> using "b2317ce0850b83bf9a96e1d3315a4c08197605467948e554d9a6e5c89b07a70d" 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 7f9c784b97b368cd82ee80890d9866b8e66b7c1b || git fetch origin master) && git reset -q --hard 7f9c784b97b368cd82ee80890d9866b8e66b7c1b && git log --no-decorate -n1 --oneline && opam update -u"))From https://github.com/ocaml/opam-repository* branch master -> FETCH_HEAD5bf570252b..7f9c784b97 master -> origin/master7f9c784b97 Merge pull request #28787 from ocaml/mseri-patch-1<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>[default] synchronised from file://C:/Users/opam/opam-repositoryAlready up-to-date.Nothing to do.# To update the current shell environment, run: eval $(opam env)2025-10-28 00:11.34 ---> using "bbb896385bc1fda1c995bc3c234fb9b91b84dd5f77658f4c807922434c26e333" from cache/: (copy (src extunix.opam) (dst /Users/opam/src/./))2025-10-28 00:12.00 ---> saved as "ffe9fb0ae382c574d54a21f17fbe8bae265f32b079db46a6fc068bd5b4974620"/: (run (network host)(shell "opam pin add -yn extunix.dev '/Users/opam/src/./'"))[extunix.dev] synchronised (file://C:/Users/opam/src/.)extunix is now pinned to file://C:/Users/opam/src/. (version dev)2025-10-28 00:12.45 ---> saved as "b14eb6cc19250fb014f07a968561fcc2229cff1afa72788d59e10085eb212c1e"/: (run (network host)(shell "echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'"))2025-10-28 00:13.37 ---> saved as "6f5d14dbd62338aa022aec9d3b91890ded7d9949d0c30b413b9bbefe81139efa"/: (env DEPS "arch-x86_64.1 base-bigarray.base base-bytes.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 dune.3.20.2 dune-configurator.3.20.2 flexdll.0.44 host-arch-x86_64.1 host-system-mingw.1 mingw-w64-shims.0.2.0 ocaml.5.4.0 ocaml-base-compiler.5.4.0 ocaml-compiler.5.4.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlfind.1.9.8 ounit2.2.2.7 ppx_derivers.1.2.1 ppxlib.0.37.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 system-mingw.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.4 --depext-only -y extunix.dev $DEPS"))<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>[extunix.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).2025-10-28 00:15.29 ---> saved as "ebe295310032f46dee5c164ea7e0102c2f0c3f6abe220cf8af41c7e75fac0e86"/: (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 12 packages- install base-bytes base- install csexp 1.5.2- install dune 3.20.2- install dune-configurator 3.20.2- install ocaml-compiler-libs v0.17.0- install ocamlfind 1.9.8- install ounit2 2.2.7- install ppx_derivers 1.2.1- install ppxlib 0.37.0- install seq base- install sexplib0 v0.17.0- install stdlib-shims 0.3.0<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>-> retrieved csexp.1.5.2 (cached)-> retrieved ocaml-compiler-libs.v0.17.0 (cached)-> retrieved ocamlfind.1.9.8 (cached)-> retrieved ounit2.2.2.7 (cached)-> retrieved ppx_derivers.1.2.1 (cached)-> retrieved seq.base (cached)-> installed seq.base-> retrieved sexplib0.v0.17.0 (cached)-> retrieved stdlib-shims.0.3.0 (cached)-> retrieved ppxlib.0.37.0 (https://github.com/ocaml-ppx/ppxlib/releases/download/0.37.0/ppxlib-0.37.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)[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 base-bytes.base-> installed dune.3.20.2-> installed csexp.1.5.2-> installed ocaml-compiler-libs.v0.17.0-> installed ppx_derivers.1.2.1-> installed sexplib0.v0.17.0-> installed stdlib-shims.0.3.0-> installed dune-configurator.3.20.2-> installed ounit2.2.2.7-> installed ppxlib.0.37.0Done.# To update the current shell environment, run: eval $(opam env)2025-10-28 00:27.41 ---> saved as "d8d671fc89074fa686b2f420cc580ec96aacf8c3ec1fb809e12cd42b220e2934"/: (copy (src .) (dst /Users/opam/src))2025-10-28 00:28.21 ---> saved as "f7b1e11b6932736e239514bff9bdb1fcbf2024b2d8119e2f6e000e5d0a39c31a"/: (run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))(cd _build/default/src && ..\discover\discover.exe)checking EVENTFD.............failedchecking ATFILE..............failedchecking RENAMEAT2...........failedchecking RENAME_WHITEOUT.....failedchecking DIRFD...............failedchecking STATVFS.............okchecking FSTATVFS............failedchecking SIOCGIFCONF.........failedchecking IFADDRS.............failedchecking INET_NTOA...........okchecking INET_NTOP...........okchecking UNAME...............failedchecking FADVISE.............failedchecking FALLOCATE...........okchecking TTY_IOCTL...........failedchecking TTYNAME.............failedchecking CTERMID.............failedchecking GETTID..............okchecking PGID................failedchecking SETREUID............failedchecking FSYNC...............okchecking FDATASYNC...........okchecking SYNC................failedchecking SYNCFS..............failedchecking REALPATH............okchecking SIGNALFD............failedchecking PTRACE..............failedchecking RESOURCE............failedchecking MLOCKALL............failedchecking STRPTIME............failedchecking STRTIME.............okchecking TIMEZONE............okchecking TIMEGM..............okchecking PTS.................failedchecking FCNTL...............failedchecking TCPGRP..............failedchecking EXECINFO............failedchecking SETENV..............failedchecking CLEARENV............failedchecking MKDTEMP.............failedchecking MALLOC_INFO.........failedchecking MALLOC_STATS........failedchecking MEMALIGN............failedchecking ENDIAN..............okchecking READ_CREDENTIALS....failedchecking FEXECVE.............failedchecking SENDMSG.............failedchecking PREAD...............failedchecking PWRITE..............failedchecking READ................failedchecking WRITE...............failedchecking MKSTEMPS............failedchecking MKOSTEMPS...........failedchecking SETRESUID...........failedchecking SYSCONF.............failedchecking SPLICE..............failedchecking TEE.................failedchecking VMSPLICE............failedchecking SOCKOPT.............okchecking TCP_KEEPIDLE........okchecking TCP_KEEPCNT.........okchecking TCP_KEEPINTVL.......okchecking SO_REUSEPORT........failedchecking POLL................failedchecking SYSINFO.............failedchecking MCHECK..............failedchecking MOUNT...............failedchecking UNSHARE.............failedchecking CHROOT..............failedchecking SYSLOG..............failedchecking WAIT4...............failedFile "test/dune", line 2, characters 13-19:2 | (names test testba)^^^^^^(cd _build/default && C:\Users\opam\AppData\Local\opam\5.4.0\bin\ocamlopt.opt.exe -w @1..3@5..28@30..39@43@46..47@49..57@61..62-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o test/testba.exe C:/Users/opam/AppData/Local/opam/5.4.0/lib/ocaml\unix\unix.cmxa src/ExtUnix.cmxa -I src C:\Users\opam\AppData\Local\opam\5.4.0\lib\stdlib-shims\stdlib_shims.cmxa C:\Users\opam\AppData\Local\opam\5.4.0\lib\ounit2\advanced/oUnitAdvanced.cmxa C:\Users\opam\AppData\Local\opam\5.4.0\lib\ounit2\oUnit.cmxa C:/Users/opam/AppData/Local/opam/5.4.0/lib/ocaml\str\str.cmxa test/.test.eobjs/native/dune__exe.cmx test/.test.eobjs/native/dune__exe__Testba.cmx)/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libmsvcrt.a(lib64_libmsvcrt_extra_a-mbrtowc.o): in function `mbsrtowcs':/usr/src/debug/mingw64-x86_64-runtime-13.0.0-1/misc/mbrtowc.c:113: multiple definition of `mbsrtowcs'; C:/cygwin64/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libucrtbase.a(libucrtbase_defs02381.o):(.text+0x0): first defined herecollect2: error: ld returned 1 exit status** Fatal error: Error during linkingFile "caml_startup", line 1:Error: Error during linking (exit code 2)File "test/dune", line 2, characters 8-12:2 | (names test testba)^^^^(cd _build/default && C:\Users\opam\AppData\Local\opam\5.4.0\bin\ocamlopt.opt.exe -w @1..3@5..28@30..39@43@46..47@49..57@61..62-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o test/test.exe C:/Users/opam/AppData/Local/opam/5.4.0/lib/ocaml\unix\unix.cmxa src/ExtUnix.cmxa -I src C:\Users\opam\AppData\Local\opam\5.4.0\lib\stdlib-shims\stdlib_shims.cmxa C:\Users\opam\AppData\Local\opam\5.4.0\lib\ounit2\advanced/oUnitAdvanced.cmxa C:\Users\opam\AppData\Local\opam\5.4.0\lib\ounit2\oUnit.cmxa C:/Users/opam/AppData/Local/opam/5.4.0/lib/ocaml\str\str.cmxa test/.test.eobjs/native/dune__exe.cmx test/.test.eobjs/native/dune__exe__Test.cmx)/usr/lib/gcc/x86_64-w64-mingw32/13/../../../../x86_64-w64-mingw32/bin/ld: /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libmsvcrt.a(lib64_libmsvcrt_extra_a-mbrtowc.o): in function `mbsrtowcs':/usr/src/debug/mingw64-x86_64-runtime-13.0.0-1/misc/mbrtowc.c:113: multiple definition of `mbsrtowcs'; C:/cygwin64/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libucrtbase.a(libucrtbase_defs02381.o):(.text+0x0): first defined herecollect2: error: ld returned 1 exit status** Fatal error: Error during linkingFile "caml_startup", line 1:Error: Error during linking (exit code 2)"cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 12025-10-28 00:32.37: Job failed: Failed: Build failed