Organisationsocaml-gospelgospel6ca36f ()windows-server-2022-amd64-4.14_opam-2.3

windows-server-2022-amd64-4.14_opam-2.3

Link Copied
Code Copied

Logs

2025-04-10 11:58.45: New job: test ocaml-gospel/gospel https://github.com/ocaml-gospel/gospel.git#refs/pull/449/head (6ca36fa9e12a877aaac7508381fa36e1e01e4eb9) (windows-amd64:windows-server-2022-amd64-4.14_opam-2.3)
Base: windows-server-2022-amd64-ocaml-4.14
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ocaml-gospel/gospel.git" && cd "gospel" && git fetch origin "refs/pull/449/head" && git reset --hard 6ca36fa9
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM windows-server-2022-amd64-ocaml-4.14
# windows-server-2022-amd64-4.14_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f /usr/bin/opam-2.3 /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 1b767795a4e028a4d45f916f1598c24ee7a7b6cb || git fetch origin master) && git reset -q --hard 1b767795a4e028a4d45f916f1598c24ee7a7b6cb && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 gospel.opam /Users/opam/src/./
RUN opam pin add -yn gospel.dev '/Users/opam/src/./'
RUN echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'
ENV DEPS="arch-x86_64.1 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 conf-mingw-w64-gcc-x86_64.1 cppo.1.8.0 crunch.4.0.0 dune.3.18.0 dune-build-info.3.18.0 flexdll.0.43 fmt.0.10.0 fpath.0.7.3 host-arch-x86_64.1 host-system-mingw.1 inferno.20220603 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 mingw-w64-shims.0.2.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 odoc.3.0.0 odoc-parser.3.0.0 pp_loc.2.1.0 pprint.20230830 ppx_blob.0.9.0 ppx_derivers.1.2.1 ppx_deriving.6.1.0 ppxlib.0.36.0 ptime.1.2.0 re.1.12.0 result.1.5 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 system-mingw.1 topkg.1.0.8 tyxml.4.6.0 unionFind.20220122 uutf.1.0.4 yojson.2.2.2"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y gospel.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-04-10 11:58.45: Using cache hint "ocaml-gospel/gospel-windows-server-2022-amd64-ocaml-4.14-windows-server-2022-amd64-4.14_opam-2.3-1cabc5fad71ac3d58e12043dc09ab563"
2025-04-10 11:58.45: Using OBuilder spec:
((from windows-server-2022-amd64-ocaml-4.14)
(comment windows-server-2022-amd64-4.14_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f /usr/bin/opam-2.3 /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 1b767795a4e028a4d45f916f1598c24ee7a7b6cb || git fetch origin master) && git reset -q --hard 1b767795a4e028a4d45f916f1598c24ee7a7b6cb && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src gospel.opam) (dst /Users/opam/src/./))
(run (network host)
(shell "opam pin add -yn gospel.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 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 conf-mingw-w64-gcc-x86_64.1 cppo.1.8.0 crunch.4.0.0 dune.3.18.0 dune-build-info.3.18.0 flexdll.0.43 fmt.0.10.0 fpath.0.7.3 host-arch-x86_64.1 host-system-mingw.1 inferno.20220603 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 mingw-w64-shims.0.2.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 odoc.3.0.0 odoc-parser.3.0.0 pp_loc.2.1.0 pprint.20230830 ppx_blob.0.9.0 ppx_derivers.1.2.1 ppx_deriving.6.1.0 ppxlib.0.36.0 ptime.1.2.0 re.1.12.0 result.1.5 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 system-mingw.1 topkg.1.0.8 tyxml.4.6.0 unionFind.20220122 uutf.1.0.4 yojson.2.2.2")
(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.3 --depext-only -y gospel.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-04-10 11:58.45: Waiting for resource in pool OCluster
2025-04-10 11:58.46: Waiting for worker…
2025-04-10 11:59.25: Got resource from pool OCluster
Building on odawa
All commits already cached
HEAD is now at 6ca36fa9 Tests for different namespaces


(from windows-server-2022-amd64-ocaml-4.14)
2025-04-10 11:59.25 ---> using "55c9cbebb0e098c78ccc09b1cc6e84ec9f0bd2275b7cebf331cc913575946dc0" from cache


/: (comment windows-server-2022-amd64-4.14_opam-2.3)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (run (shell "ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-10 11:59.25 ---> using "fe3978d598c814685c6ee8922c3ae17147a3127f83af70ca6588d6b26847cd93" 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-04-10 11:59.25 ---> using "0caf41f56a7e1f8a9ba062ae44d7d1f50471f3874e543c30c0d1c2b229f1e062" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
CYGWIN_NT-10.0-20348 3.5.4-1.x86_64
The OCaml toplevel, version 4.14.2
2.3.0
2025-04-10 11:59.25 ---> using "6a7802e4db8e302e8ba8d87ff4e9376ae777099db0cd03bdab21ff27a442740c" 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 1b767795a4e028a4d45f916f1598c24ee7a7b6cb || git fetch origin master) && git reset -q --hard 1b767795a4e028a4d45f916f1598c24ee7a7b6cb && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
11bdbee611..598efb46ec  master     -> origin/master
1b767795a4 Merge pull request #27704 from maiste/release-dune-3.18.0


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


Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-04-10 11:59.25 ---> using "52781949bd2b790753b74cf231c66bf9a9a19defbd8cb398f70710b7ac36f863" from cache


/: (copy (src gospel.opam) (dst /Users/opam/src/./))
2025-04-10 11:59.25 ---> using "0546908a8347a6b2456fd26c7cf8e1fa5e814acc30f2059a6d0d474924304827" from cache


/: (run (network host)
(shell "opam pin add -yn gospel.dev '/Users/opam/src/./'"))
[gospel.dev] synchronised (file://C:/Users/opam/src/.)
gospel is now pinned to file://C:/Users/opam/src/. (version dev)
2025-04-10 11:59.25 ---> using "e3ee25551300ef558981eef0510e00a127c40e608f840ba9eb46776ea8680646" from cache


/: (run (network host)
(shell "echo '(lang dune 3.0)' > '/cygdrive/c/Users/opam/src/./dune-project'"))
2025-04-10 11:59.25 ---> using "5b0f5594bd6f703fe7d16c4b84ce3cb8716260d59362cba5a73e2a118072151e" from cache


/: (env DEPS "arch-x86_64.1 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base camlp-streams.5.0.1 cmdliner.1.3.0 conf-mingw-w64-gcc-x86_64.1 cppo.1.8.0 crunch.4.0.0 dune.3.18.0 dune-build-info.3.18.0 flexdll.0.43 fmt.0.10.0 fpath.0.7.3 host-arch-x86_64.1 host-system-mingw.1 inferno.20220603 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 mingw-w64-shims.0.2.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 odoc.3.0.0 odoc-parser.3.0.0 pp_loc.2.1.0 pprint.20230830 ppx_blob.0.9.0 ppx_derivers.1.2.1 ppx_deriving.6.1.0 ppxlib.0.36.0 ptime.1.2.0 re.1.12.0 result.1.5 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 system-mingw.1 topkg.1.0.8 tyxml.4.6.0 unionFind.20220122 uutf.1.0.4 yojson.2.2.2")


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


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[gospel.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-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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.43).
[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-bigarray is already installed (current version is base).
[NOTE] Package arch-x86_64 is already installed (current version is 1).
2025-04-10 11:59.25 ---> using "dbd3f95d157b8b3e450c5ad423ca3a858dd66bea1308dddf3aefa310f9dab5c7" 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-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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.43).
[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-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 astring             0.8.5
- install camlp-streams       5.0.1
- install cmdliner            1.3.0
- install cppo                1.8.0
- install crunch              4.0.0
- install dune                3.18.0
- install dune-build-info     3.18.0
- install fmt                 0.10.0
- install fpath               0.7.3
- install inferno             20220603
- install menhir              20240715
- install menhirCST           20240715
- install menhirLib           20240715
- install menhirSdk           20240715
- install ocaml-compiler-libs v0.12.4
- install ocamlbuild          0.16.1
- install ocamlfind           1.9.8
- install odoc                3.0.0
- install odoc-parser         3.0.0
- install pp_loc              2.1.0
- install pprint              20230830
- install ppx_blob            0.9.0
- install ppx_derivers        1.2.1
- install ppx_deriving        6.1.0
- install ppxlib              0.36.0
- install ptime               1.2.0
- install re                  1.12.0
- install result              1.5
- install seq                 base
- install sexplib0            v0.17.0
- install stdlib-shims        0.3.0
- install topkg               1.0.8
- install tyxml               4.6.0
- install unionFind           20220122
- install uutf                1.0.4
- install yojson              2.2.2


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5  (cached)
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved fmt.0.10.0  (cached)
-> retrieved fpath.0.7.3  (cached)
-> retrieved inferno.20220603  (cached)
-> retrieved crunch.4.0.0  (https://github.com/mirage/ocaml-crunch/releases/download/v4.0.0/crunch-4.0.0.tbz)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved menhir.20240715, menhirCST.20240715, menhirLib.20240715, menhirSdk.20240715  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved dune.3.18.0, dune-build-info.3.18.0  (cached)
-> retrieved pp_loc.2.1.0  (cached)
-> retrieved pprint.20230830  (cached)
-> retrieved ppx_blob.0.9.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> installed cmdliner.1.3.0
-> retrieved ppx_deriving.6.1.0  (https://github.com/ocaml-ppx/ppx_deriving/releases/download/v6.1.0/ppx_deriving-6.1.0.tbz)
-> retrieved ptime.1.2.0  (cached)
-> retrieved ppxlib.0.36.0  (https://github.com/ocaml-ppx/ppxlib/releases/download/0.36.0/ppxlib-0.36.0.tbz)
-> retrieved odoc.3.0.0, odoc-parser.3.0.0  (https://github.com/ocaml/odoc/releases/download/3.0.0/odoc-3.0.0.tbz)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved re.1.12.0  (cached)
-> retrieved result.1.5  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.0.8  (cached)
-> retrieved tyxml.4.6.0  (cached)
-> retrieved unionFind.20220122  (cached)
-> retrieved uutf.1.0.4  (cached)
-> retrieved yojson.2.2.2  (cached)
[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\4.14.2\.opam-switch\build\ocamlfind.1.9.8\src\findlib\ocamlfind.exe
[WARNING] Automatically adding .exe to C:\Users\opam\AppData\Local\opam\4.14.2\.opam-switch\build\ocamlfind.1.9.8\src\findlib\ocamlfind_opt.exe
[WARNING] C:\Users\opam\AppData\Local\opam\4.14.2\bin\safe_camlp4 is a script; the command won't be available
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed topkg.1.0.8
-> installed uutf.1.0.4
-> installed astring.0.8.5
-> installed fmt.0.10.0
-> installed ptime.1.2.0
-> installed fpath.0.7.3
-> installed dune.3.18.0
-> installed camlp-streams.5.0.1
-> installed cppo.1.8.0
-> installed crunch.4.0.0
-> installed menhirCST.20240715
-> installed ppx_derivers.1.2.1
-> installed pp_loc.2.1.0
-> installed stdlib-shims.0.3.0
-> installed result.1.5
-> installed menhirLib.20240715
-> installed menhirSdk.20240715
-> installed pprint.20230830
-> installed sexplib0.v0.17.0
-> installed unionFind.20220122
-> installed ocaml-compiler-libs.v0.12.4
-> installed dune-build-info.3.18.0
-> installed re.1.12.0
-> installed inferno.20220603
-> installed odoc-parser.3.0.0
-> installed yojson.2.2.2
-> installed tyxml.4.6.0
-> installed odoc.3.0.0
-> installed ppxlib.0.36.0
-> installed ppx_blob.0.9.0
-> installed ppx_deriving.6.1.0
-> installed menhir.20240715
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-10 11:59.25 ---> using "96c2182b51756db24544d399fc13d0b6d98eb8321efbe80e88debc2ac668472a" from cache


/: (copy (src .) (dst /Users/opam/src))
2025-04-10 11:59.38 ---> saved as "168b5020f1849dfae1fe83f9e0a062cc560f0d06a71957f5cc7fc1b5800ae723"


/: (run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && C:\Users\opam\AppData\Local\opam\4.14.2\bin\ocamlc.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 -bin-annot -I bin/.checklib.eobjs/byte -I C:/Users/opam/AppData/Local/opam/4.14.2/lib/ocaml\compiler-libs -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\findlib -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\fmt -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\inferno -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ocaml-compiler-libs\common -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ocaml-compiler-libs\shadow -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\pp_loc -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\pprint -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppx_derivers -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppx_deriving/runtime -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\ast -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\astlib -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\print_diff -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\stdppx -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\traverse_builtins -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\sexplib0 -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\stdlib-shims -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\unionFind -I src/.gospel.objs/byte -intf-suffix .ml -no-alias-deps -opaque -open Dune__exe -o bin/.checklib.eobjs/byte/dune__exe__Check.cmo -c -impl bin/check.ml)
File "bin/check.ml", line 96, characters 26-30:
96 |     Marshal.from_string [%blob "gospelstdlib.gospel"] 0
^^^^
Error: Uninterpreted extension 'blob'.
(cd _build/default && C:\Users\opam\AppData\Local\opam\4.14.2\bin\ocamlc.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 -bin-annot -I bin/.checklib.eobjs/byte -I C:/Users/opam/AppData/Local/opam/4.14.2/lib/ocaml\compiler-libs -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\findlib -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\fmt -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\inferno -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ocaml-compiler-libs\common -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ocaml-compiler-libs\shadow -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\pp_loc -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\pprint -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppx_derivers -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppx_deriving/runtime -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\ast -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\astlib -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\print_diff -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\stdppx -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\ppxlib\traverse_builtins -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\sexplib0 -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\stdlib-shims -I C:\Users\opam\AppData\Local\opam\4.14.2\lib\unionFind -I src/.gospel.objs/byte -intf-suffix .ml -no-alias-deps -opaque -open Dune__exe -o bin/.checklib.eobjs/byte/dune__exe__Cli.cmo -c -impl bin/cli.ml)
File "bin/cli.ml", line 11, characters 5-13:
11 | open Cmdliner
^^^^^^^^
Error: Unbound module Cmdliner
File "test/ppx/dune", lines 9-16, characters 0-196:
9 | (rule
10 |  (targets odoc_of_gospel.actual.mli)
11 |  (deps
12 |   (:pp pp.exe)
13 |   (:input odoc_of_gospel.mli)
14 |   (:gospel %{bin:gospel}))
15 |  (action
16 |   (run %{pp} --intf %{input} -pp "%{gospel} pps" -o %{targets})))
(cd _build/default/test/ppx && .\pp.exe --intf odoc_of_gospel.mli -pp "../../../install/default/bin/gospel.exe pps" -o odoc_of_gospel.actual.mli)
'..' is not recognized as an internal or external command,
operable program or batch file.
File "odoc_of_gospel.mli", line 1:
Error: Error while running external preprocessor
Command line: ../../../install/default/bin/gospel.exe pps "odoc_of_gospel.mli" > "C:\Users\opam\AppData\Local\Temp\build_f98e83_dune\ocamlpp3b54be"


File "test/ppx/odoc_output.t", line 1, characters 0-0:
C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/d3a0edc1f0acac8ce55f69599092dc23/default/test/ppx/odoc_output.t _build/.sandbox/d3a0edc1f0acac8ce55f69599092dc23/default/test/ppx/odoc_output.t.corrected
diff --git a/_build/.sandbox/d3a0edc1f0acac8ce55f69599092dc23/default/test/ppx/odoc_output.t b/_build/.sandbox/d3a0edc1f0acac8ce55f69599092dc23/default/test/ppx/odoc_output.t.corrected
index f34613a..ec7050f 100644
--- a/_build/.sandbox/d3a0edc1f0acac8ce55f69599092dc23/default/test/ppx/odoc_output.t
+++ b/_build/.sandbox/d3a0edc1f0acac8ce55f69599092dc23/default/test/ppx/odoc_output.t.corrected
@@ -3,45 +3,40 @@ In this file, we are testing output from Odoc after the ppx rewriting.
First, we compile the file, running the source preprocessor and the ppx:


$ ocamlc -bin-annot -pp "gospel pps" -ppx "./pp.exe -as-ppx" odoc_of_gospel.mli
+  '.' is not recognized as an internal or external command,

+  operable program or batch file.

+  File "odoc_of_gospel.mli", line 1:

+  Error: Error while running external preprocessor

+  Command line: ./pp.exe -as-ppx "C:\Users\opam\AppData\Local\Temp\build_f98e83_dune\camlppx92fa68" "C:\Users\opam\AppData\Local\Temp\build_f98e83_dune\camlppxbc423d"

+  

+  [2]



Then run Odoc


$ odoc compile odoc_of_gospel.cmti
-  File "odoc_of_gospel.mli", line 5, character 6 to line 7, character 21:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 9, character 6 to line 11, character 38:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 13, character 6 to line 15, character 49:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 17, character 6 to line 21, character 26:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 23, character 6 to line 25, character 41:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 27, character 6 to line 29, character 18:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 31, character 6 to line 35, character 21:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 37, character 6 to line 41, character 19:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 42, character 6 to line 44, character 38:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 43, character 6 to line 45, character 20:
-  Warning: Code blocks should be indented at the opening `{`.
-  File "odoc_of_gospel.mli", line 44, character 6 to line 46, character 19:
-  Warning: Code blocks should be indented at the opening `{`.
+  odoc: FILE argument: no 'odoc_of_gospel.cmti' file or directory

+  Usage: odoc compile [OPTION]… FILE

+  Try 'odoc compile --help' or 'odoc --help' for more information.

+  [2]



We test the html and the latex outputs


$ odoc html-generate odoc_of_gospel.odoc -o tmp
+  odoc: FILE.odocl argument: no 'odoc_of_gospel.odoc' file or directory

+  Usage: odoc html-generate [OPTION]… FILE.odocl

+  Try 'odoc html-generate --help' or 'odoc --help' for more information.

+  [2]

$ odoc latex-generate odoc_of_gospel.odoc -o tmp
+  odoc: FILE.odocl argument: no 'odoc_of_gospel.odoc' file or directory

+  Usage: odoc latex-generate [OPTION]… FILE.odocl

+  Try 'odoc latex-generate --help' or 'odoc --help' for more information.

+  [2]



As the output is not stable through odoc versions, we just check that the files
are generated:


$ find tmp -name \*.tex
-  tmp/Odoc_of_gospel.tex
$ find tmp -name \*.html
-  tmp/Odoc_of_gospel/index.html


This is not the case for the man output, here we can test the output.
Though, to be sure the diff is meaningful, let's set terminal's number of
@@ -49,51 +44,10 @@ columns:


$ export COLUMNS=80
$ odoc man-generate odoc_of_gospel.odoc -o tmp
+  odoc: FILE.odocl argument: no 'odoc_of_gospel.odoc' file or directory

+  Usage: odoc man-generate [--extra-suffix=SUFFIX] [--sidebar=FILE.odoc-sidebar] [--syntax=SYNTAX] [OPTION]… FILE.odocl

+  Try 'odoc man-generate --help' or 'odoc --help' for more information.

+  [2]

$ grep -v '^\.' tmp/Odoc_of_gospel.3o
-  
-  Odoc_of_gospel
-  \fBModule Odoc_of_gospel\fR
-  Module informal documentation
-  An axiom declaration
-  Gospel declaration:
-      axiom a : true 
-  A logical function declaration without definition
-  Gospel declaration:
-      function f : integer -> integer 
-  A logical function definition
-  Gospel declaration:
-      function g (i : integer) : integer = i + 1 
-  A logical function declaration with assertions
-  Gospel declaration:
-      function h (i : integer) : integer = i - 1 
-      requires i > 0
-      ensures result >= 0 
-  A logical predicate definition
-  Gospel declaration:
-      predicate p (i : integer) = i = 42 
-  A ghost type declaration
-  Gospel declaration:
-      type casper 
-  \f[CB]type\fR 'a t
-  A program type declaration with specifications
-  Gospel specification:
-      model m : 'a sequence
-      with x
-      invariant true 
-  
-  \f[CB]val\fR prog_fun : int \f[CB]\->\fR int
-  A program function with specifications
-  Gospel specification:
-      y = prog_fun x
-      requires true
-      ensures true 
-  
-  \f[CB]val\fR multiple_gospel_attribute : int \f[CB]\->\fR int
-  Gospel specification:
-      y = multiple_gospel_attribute x 
-  Gospel specification:
-      requires true 
-  Gospel specification:
-      ensures true 
-  
-  
+  grep: tmp/Odoc_of_gospel.3o: No such file or directory

+  [2]

"cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-04-10 12:00.04: Job failed: Failed: Build failed