2025-04-19 10:14.04: New job: test patricoferris/ppxlib https://github.com/patricoferris/ppxlib.git#refs/heads/ci (dd2e536f5c4aa7758d5e8c2af6f8c86901b46205) (openbsd-amd64:openbsd-76-amd64-5.3_opam-2.3)
Base: openbsd-76-amd64-ocaml-5.3
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/patricoferris/ppxlib.git" -b "ci" && cd "ppxlib" && git reset --hard dd2e536f
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM openbsd-76-amd64-ocaml-5.3
# openbsd-76-amd64-5.3_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN doas 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 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam /home/opam/src/./
RUN opam pin add -yn ppxlib.dev '/home/opam/src/./' && \
opam pin add -yn ppxlib-tools.dev '/home/opam/src/./' && \
opam pin add -yn ppxlib-bench.dev '/home/opam/src/./'
RUN echo '(lang dune 3.0)' > '/home/opam/src/./dune-project'
ENV DEPS="base.v0.17.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.12.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.2.2.2"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y ppxlib.dev ppxlib-tools.dev ppxlib-bench.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /home/opam/src
RUN cd /home/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2025-04-19 10:14.04: Using cache hint "patricoferris/ppxlib-openbsd-76-amd64-ocaml-5.3-openbsd-76-amd64-5.3_opam-2.3-3c965630631cd47442dbfd9233049ef4"
2025-04-19 10:14.04: Using OBuilder spec:
((from openbsd-76-amd64-ocaml-5.3)
(comment openbsd-76-amd64-5.3_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "doas 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 /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam)
(dst /home/opam/src/./))
(run (network host)
(shell "opam pin add -yn ppxlib.dev '/home/opam/src/./' && \
\nopam pin add -yn ppxlib-tools.dev '/home/opam/src/./' && \
\nopam pin add -yn ppxlib-bench.dev '/home/opam/src/./'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > '/home/opam/src/./dune-project'"))
(env DEPS "base.v0.17.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.12.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.2.2.2")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y ppxlib.dev ppxlib-tools.dev ppxlib-bench.dev $DEPS"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst /home/opam/src))
(run (shell "cd /home/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2025-04-19 10:14.04: Waiting for resource in pool OCluster
2025-04-19 10:14.05: Waiting for worker…
2025-04-19 10:14.05: Got resource from pool OCluster
Building on bremusa
HEAD is now at 68af533 Bump trunk CI to 5.4.0
HEAD is now at dd2e536 Support OCaml 5.4
(from openbsd-76-amd64-ocaml-5.3)
2025-04-19 10:14.05 ---> using "753f998be4709b35e38a93b7272dee818f697255d5b48fadd1c23cb92a82f244" from cache
/: (comment openbsd-76-amd64-5.3_opam-2.3)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (run (shell "doas ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-19 10:14.05 ---> using "b8621e22ceef6e45a2b70edd0350b6ec56c4cb2588ea75f8c24bf97f9bb8e3c1" from cache
/: (run (shell "opam init --reinit -ni"))
No configuration file found, using built-in defaults.
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] synchronised from file:///home/opam/opam-repository
2025-04-19 10:14.05 ---> using "caa4033b0f51d691107e536d025405bc96e59134e192afef776a8bfd43aac5e1" from cache
/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
OpenBSD 7.6
The OCaml toplevel, version 5.3.0
2.3.0
2025-04-19 10:14.05 ---> using "7116693f695a70fbcc11fcbf90bc7fd32f30a6c20aabff3b1e1c926faaad9b01" from cache
/: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
f93eb7cb02..442eddb8a3 master -> origin/master
442eddb8a3 Merge pull request #27761 from maiste/release-dune-3.18.1
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/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-19 10:14.05 ---> using "c000489f0fd97e34eb7a56a8c1757b2f1ba3f72fc57fd9ffa4ac317fa405c204" from cache
/: (copy (src ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam)
(dst /home/opam/src/./))
2025-04-19 10:15.03 ---> saved as "5dfa7a99ded969877083979fe6e5bdefe836f26581caa3043e10fc906c860e9f"
/: (run (network host)
(shell "opam pin add -yn ppxlib.dev '/home/opam/src/./' && \
\nopam pin add -yn ppxlib-tools.dev '/home/opam/src/./' && \
\nopam pin add -yn ppxlib-bench.dev '/home/opam/src/./'"))
[ppxlib.dev] synchronised (file:///home/opam/src)
ppxlib is now pinned to file:///home/opam/src (version dev)
[ppxlib-tools.dev] synchronised (file:///home/opam/src)
ppxlib-tools is now pinned to file:///home/opam/src (version dev)
Package ppxlib-bench does not exist, create as a NEW package? [y/n] y
[ppxlib-bench.dev] synchronised (file:///home/opam/src)
ppxlib-bench is now pinned to file:///home/opam/src (version dev)
2025-04-19 10:16.01 ---> saved as "6672be379450184fc6548fb66263efb6ea0059298a5c675ede1efc46f24aaf36"
/: (run (network host)
(shell "echo '(lang dune 3.0)' > '/home/opam/src/./dune-project'"))
2025-04-19 10:16.58 ---> saved as "7a84bbf4d9697cbe8edc557fc177e460a402f9c90cd3742fae998fbac3b126dc"
/: (env DEPS "base.v0.17.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.12.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.2.2.2")
/: (env CI true)
/: (env OCAMLCI true)
/: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y ppxlib.dev ppxlib-tools.dev ppxlib-bench.dev $DEPS"))
[WARNING] Unknown update command for bsd, skipping system update
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ppxlib-tools.dev] synchronised (file:///home/opam/src)
[ppxlib-bench.dev] synchronised (file:///home/opam/src)
[ppxlib.dev] synchronised (file:///home/opam/src)
[NOTE] Package ocaml-options-vanilla 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 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).
2025-04-19 10:18.02 ---> saved as "04e5b7291512c19e259b32c54ce083db6468f53bf2b6737b355f1dbe83c46ba3"
/: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla 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 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).
The following actions will be performed:
=== install 15 packages
- install base v0.17.1
- install cinaps v0.15.1
- install cmdliner 1.3.0
- install csexp 1.5.2
- install dune 3.18.1
- install dune-configurator 3.18.1
- install ocaml-compiler-libs v0.17.0
- install ocaml_intrinsics_kernel v0.17.1
- install ocamlfind 1.9.8
- install ppx_derivers 1.2.1
- install re 1.12.0
- install seq base
- install sexplib0 v0.17.0
- install stdlib-shims 0.3.0
- install yojson 2.2.2
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cinaps.v0.15.1 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved csexp.1.5.2 (cached)
-> retrieved base.v0.17.1 (cached)
-> retrieved ocaml-compiler-libs.v0.17.0 (cached)
-> retrieved ocaml_intrinsics_kernel.v0.17.1 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved seq.base (cached)
-> retrieved sexplib0.v0.17.0 (cached)
-> retrieved re.1.12.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved yojson.2.2.2 (cached)
-> retrieved dune.3.18.1, dune-configurator.3.18.1 (cached)
-> installed cmdliner.1.3.0
-> installed dune.3.18.1
-> installed ocamlfind.1.9.8
-> installed csexp.1.5.2
-> installed ocaml-compiler-libs.v0.17.0
-> installed dune-configurator.3.18.1
-> installed ocaml_intrinsics_kernel.v0.17.1
-> installed ppx_derivers.1.2.1
-> installed seq.base
-> installed sexplib0.v0.17.0
-> installed re.1.12.0
-> installed base.v0.17.1
-> installed cinaps.v0.15.1
-> installed stdlib-shims.0.3.0
-> installed yojson.2.2.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-19 10:27.39 ---> saved as "6c3acddfb7d94dafa6f6cd401420d378fd58b3b170b711c6059da260ba2ac4d0"
/: (copy (src .) (dst /home/opam/src))
2025-04-19 10:28.28 ---> saved as "2001df6c1b36add7dfc05677ea7d406b7a7eca8328f8eb0a32079eca90d5de60"
/: (run (shell "cd /home/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
File "test/driver/stdin_input/test.t/run.t", line 1, characters 0-0:
/usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/3818f8456cd76c41178d74d280f4ecc3/default/test/driver/stdin_input/test.t/run.t _build/.sandbox/3818f8456cd76c41178d74d280f4ecc3/default/test/driver/stdin_input/test.t/run.t.corrected
diff --git a/_build/.sandbox/3818f8456cd76c41178d74d280f4ecc3/default/test/driver/stdin_input/test.t/run.t b/_build/.sandbox/3818f8456cd76c41178d74d280f4ecc3/default/test/driver/stdin_input/test.t/run.t.corrected
index d385654..91ebaed 100644
--- a/_build/.sandbox/3818f8456cd76c41178d74d280f4ecc3/default/test/driver/stdin_input/test.t/run.t
+++ b/_build/.sandbox/3818f8456cd76c41178d74d280f4ecc3/default/test/driver/stdin_input/test.t/run.t.corrected
@@ -17,4 +17,5 @@ We generate a binary AST file...
... and ensure the driver can also read it from stdin
$ cat binary_ast | ../identity_driver.exe -impl -
- let b = 2
+ Segmentation fault (core dumped)
+ [139]
File "test/driver/standalone_run_as_ppx/run.t", line 1, characters 0-0:
/usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/f501b7b00bf7bb199d9ba5e523401a5f/default/test/driver/standalone_run_as_ppx/run.t _build/.sandbox/f501b7b00bf7bb199d9ba5e523401a5f/default/test/driver/standalone_run_as_ppx/run.t.corrected
diff --git a/_build/.sandbox/f501b7b00bf7bb199d9ba5e523401a5f/default/test/driver/standalone_run_as_ppx/run.t b/_build/.sandbox/f501b7b00bf7bb199d9ba5e523401a5f/default/test/driver/standalone_run_as_ppx/run.t.corrected
index e36c4bf..9078a9b 100644
--- a/_build/.sandbox/f501b7b00bf7bb199d9ba5e523401a5f/default/test/driver/standalone_run_as_ppx/run.t
+++ b/_build/.sandbox/f501b7b00bf7bb199d9ba5e523401a5f/default/test/driver/standalone_run_as_ppx/run.t.corrected
@@ -6,7 +6,12 @@ The rewriter gets applied when using `--as-ppx`
$ echo "let _ = [%print_hi]" > impl.ml
$ ocaml -ppx './print_stuff.exe --as-ppx' impl.ml
- hi
+ Segmentation fault (core dumped)
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx '/tmp/build_aa2533_dune/camlppx56bb9e' '/tmp/build_aa2533_dune/camlppx734c6f'
+
+ [2]
If a non-compatible file gets fed, the file name is reported correctly
@@ -20,18 +25,31 @@ The ocaml.ppx.context attribute gets parsed correctly; in particular, the tool n
$ echo "let _ = [%print_tool_name]" > impl.ml
$ ocaml -ppx './print_stuff.exe --as-ppx' impl.ml
- ocaml
+ Segmentation fault (core dumped)
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx '/tmp/build_aa2533_dune/camlppx39038a' '/tmp/build_aa2533_dune/camlppxe3a27e'
+
+ [2]
The driver's `shared_args` arguments are taken into account. For example, `-loc-filename`
$ echo "let _ = [%print_fname]" > impl.ml
$ ocaml -ppx './print_stuff.exe --as-ppx -loc-filename new_fn.ml' impl.ml
- new_fn.ml
+ Segmentation fault (core dumped)
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx -loc-filename new_fn.ml '/tmp/build_aa2533_dune/camlppx52ae57' '/tmp/build_aa2533_dune/camlppx4f5a10'
+
+ [2]
or `dont-apply`
$ echo "let _ = [%print_hi]" > impl.ml
$ ocaml -ppx './print_stuff.exe --as-ppx -dont-apply test' impl.ml
- File "./impl.ml", line 1, characters 10-18:
- Error: Uninterpreted extension 'print_hi'.
+ Segmentation fault (core dumped)
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx -dont-apply test '/tmp/build_aa2533_dune/camlppx741c2b' '/tmp/build_aa2533_dune/camlppxa0d73b'
+
[2]
File "test/driver/source-quotation-in-errors/run.t", line 1, characters 0-0:
/usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/2b87af45bcef27283ddcdf5e4fd10c38/default/test/driver/source-quotation-in-errors/run.t _build/.sandbox/2b87af45bcef27283ddcdf5e4fd10c38/default/test/driver/source-quotation-in-errors/run.t.corrected
diff --git a/_build/.sandbox/2b87af45bcef27283ddcdf5e4fd10c38/default/test/driver/source-quotation-in-errors/run.t b/_build/.sandbox/2b87af45bcef27283ddcdf5e4fd10c38/default/test/driver/source-quotation-in-errors/run.t.corrected
index e644f3f..2c5468d 100644
--- a/_build/.sandbox/2b87af45bcef27283ddcdf5e4fd10c38/default/test/driver/source-quotation-in-errors/run.t
+++ b/_build/.sandbox/2b87af45bcef27283ddcdf5e4fd10c38/default/test/driver/source-quotation-in-errors/run.t.corrected
@@ -38,8 +38,5 @@ We then call our raising driver on the binary AST, it should be able to report t
error with source quotation:
$ ./raising_driver.exe -impl file.pp.ml
- File "file.ml", line 1, characters 8-16:
- 1 | let x = [%raise]
- ^^^^^^^^
- Error: An exception, raise be!
- [1]
+ Segmentation fault (core dumped)
+ [139]
File "test/driver/error_embedding/test.t/run.t", line 1, characters 0-0:
/usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/9a2bef3ebda80c55eedf97c664d129d4/default/test/driver/error_embedding/test.t/run.t _build/.sandbox/9a2bef3ebda80c55eedf97c664d129d4/default/test/driver/error_embedding/test.t/run.t.corrected
diff --git a/_build/.sandbox/9a2bef3ebda80c55eedf97c664d129d4/default/test/driver/error_embedding/test.t/run.t b/_build/.sandbox/9a2bef3ebda80c55eedf97c664d129d4/default/test/driver/error_embedding/test.t/run.t.corrected
index dafee10..8636042 100644
--- a/_build/.sandbox/9a2bef3ebda80c55eedf97c664d129d4/default/test/driver/error_embedding/test.t/run.t
+++ b/_build/.sandbox/9a2bef3ebda80c55eedf97c664d129d4/default/test/driver/error_embedding/test.t/run.t.corrected
@@ -14,8 +14,11 @@ The same is true when using the `-as-ppx` mode (note that the error is reported
by ocaml itself)
$ ocaml -ppx '../raiser.exe -as-ppx' impl.ml
- File "./impl.ml", line 1, characters 8-16:
- Error: Raising inside the rewriter
+ Segmentation fault (core dumped)
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ../raiser.exe -as-ppx '/tmp/build_aa2533_dune/camlppxe80b54' '/tmp/build_aa2533_dune/camlppxddbe06'
+
[2]
Also exceptions raised in a preprocessor get embedded into an AST(while the
File "test/driver/flag_cookie/run.t", line 1, characters 0-0:
/usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/4fd4b2d76117d14411debe65fdca15f5/default/test/driver/flag_cookie/run.t _build/.sandbox/4fd4b2d76117d14411debe65fdca15f5/default/test/driver/flag_cookie/run.t.corrected
diff --git a/_build/.sandbox/4fd4b2d76117d14411debe65fdca15f5/default/test/driver/flag_cookie/run.t b/_build/.sandbox/4fd4b2d76117d14411debe65fdca15f5/default/test/driver/flag_cookie/run.t.corrected
index d6c3fa5..e21b556 100644
--- a/_build/.sandbox/4fd4b2d76117d14411debe65fdca15f5/default/test/driver/flag_cookie/run.t
+++ b/_build/.sandbox/4fd4b2d76117d14411debe65fdca15f5/default/test/driver/flag_cookie/run.t.corrected
@@ -7,4 +7,9 @@ The cookie flag is taken into account, both by the main standalone
...and by the `-as-ppx` standalone
$ ocaml -ppx './print_cookie_driver.exe --as-ppx -cookie x=1' impl.ml
- Value of cookie x: 1
+ Segmentation fault (core dumped)
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_cookie_driver.exe --as-ppx -cookie x=1 '/tmp/build_aa2533_dune/camlppx071289' '/tmp/build_aa2533_dune/camlppx85c8f4'
+
+ [2]
File "test/driver/run_as_ppx_rewriter/run.t", line 1, characters 0-0:
/usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/f1d1ff756be4ffe791af29b555f680ae/default/test/driver/run_as_ppx_rewriter/run.t _build/.sandbox/f1d1ff756be4ffe791af29b555f680ae/default/test/driver/run_as_ppx_rewriter/run.t.corrected
diff --git a/_build/.sandbox/f1d1ff756be4ffe791af29b555f680ae/default/test/driver/run_as_ppx_rewriter/run.t b/_build/.sandbox/f1d1ff756be4ffe791af29b555f680ae/default/test/driver/run_as_ppx_rewriter/run.t.corrected
index a9a0d71..daca7dd 100644
--- a/_build/.sandbox/f1d1ff756be4ffe791af29b555f680ae/default/test/driver/run_as_ppx_rewriter/run.t
+++ b/_build/.sandbox/f1d1ff756be4ffe791af29b555f680ae/default/test/driver/run_as_ppx_rewriter/run.t.corrected
@@ -10,23 +10,32 @@ The registered rewriters get applied when using `run_as_ppx_rewriter` as entry p
> let () = [%print_bye]
> EOF
$ ocaml -ppx './print_greetings.exe' file.ml
- hi
- bye
+ Segmentation fault (core dumped)
+ File "./file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe '/tmp/build_aa2533_dune/camlppxb1e39b' '/tmp/build_aa2533_dune/camlppx9c018f'
+
+ [2]
The driver's `shared_args` are taken into account, such as `-apply`...
$ ocaml -ppx './print_greetings.exe -apply print_hi' file.ml
- hi
- File "./file.ml", line 2, characters 11-20:
- Error: Uninterpreted extension 'print_bye'.
+ Segmentation fault (core dumped)
+ File "./file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe -apply print_hi '/tmp/build_aa2533_dune/camlppxe176e0' '/tmp/build_aa2533_dune/camlppx62aa63'
+
[2]
... and `-check`
$ echo "[@@@attr non_registered_attr]" > attribute_file.ml
$ ocaml -ppx './print_greetings.exe -check' attribute_file.ml
- File "./attribute_file.ml", line 1, characters 4-8:
- Error: Attribute `attr' was not used
+ Segmentation fault (core dumped)
+ File "./attribute_file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe -check '/tmp/build_aa2533_dune/camlppx8144f3' '/tmp/build_aa2533_dune/camlppx14096d'
+
[2]
"cd /home/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-04-19 10:30.32: Job failed: Failed: Build failed