2025-04-19 10:14.04: New job: test patricoferris/ppxlib https://github.com/patricoferris/ppxlib.git#refs/heads/ci (dd2e536f5c4aa7758d5e8c2af6f8c86901b46205) (linux-s390x:debian-12-5.3_s390x_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-5.3@sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c
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 ocaml/opam:debian-12-ocaml-5.3@sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c
# debian-12-5.3_s390x_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
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 ./
RUN opam pin add -yn ppxlib.dev './' && \
opam pin add -yn ppxlib-tools.dev './' && \
opam pin add -yn ppxlib-bench.dev './'
RUN echo '(lang dune 3.0)' > './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 . /src
RUN 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-ocaml/opam:debian-12-ocaml-5.3@sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c-debian-12-5.3_s390x_opam-2.3-3c965630631cd47442dbfd9233049ef4"
2025-04-19 10:14.04: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c)
(comment debian-12-5.3_s390x_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo 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"))
(workdir /src)
(run (shell "sudo chown opam /src"))
(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 ./))
(run (network host)
(shell "opam pin add -yn ppxlib.dev './' && \
\nopam pin add -yn ppxlib-tools.dev './' && \
\nopam pin add -yn ppxlib-bench.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './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 /src))
(run (shell "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.39: Got resource from pool OCluster
Building on s390x-worker-01.marist.ci.dev
HEAD is now at 68af533 Bump trunk CI to 5.4.0
HEAD is now at dd2e536 Support OCaml 5.4
(from ocaml/opam:debian-12-ocaml-5.3@sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.3@sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c' locally
docker.io/ocaml/opam@sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c: Pulling from ocaml/opam
ea48981a9fc9: Already exists
f8c8b07a8c2f: Already exists
e41fd045809c: Already exists
fe9d9ba199a8: Already exists
61b9dde9c264: Already exists
d65e1971fde7: Already exists
8adb42792b2d: Already exists
c1b7118882b6: Already exists
d6ebd4711bf0: Already exists
084cd2a0dbb9: Already exists
fecbafc1ca56: Already exists
f35e98a3eea0: Already exists
dc7483d70c4c: Already exists
dd0a1e41238f: Already exists
a7de97e7acea: Already exists
a7de97e7acea: Already exists
017f9061cc77: Already exists
52dd4b5f1254: Already exists
8b6c00582859: Already exists
ee685aa0fb43: Already exists
4f4fb700ef54: Already exists
bceba8292e84: Already exists
22b23778e0c9: Already exists
4c85ef9af49b: Already exists
13ee87119d2e: Already exists
aabe51459fe0: Already exists
749c2388e5ba: Already exists
b1400128163d: Already exists
5872043319f0: Already exists
7436ed480497: Already exists
2ed34696ea0c: Already exists
ea097d46d9dc: Already exists
7fdac3609e18: Already exists
ad027dad53ff: Already exists
d1e35c1835c2: Already exists
047a8bfe449d: Already exists
f528d99bbcdf: Already exists
0709c52266cc: Already exists
12b078d21ba7: Pulling fs layer
9f4bb3228e3b: Pulling fs layer
0a5d68dacd45: Pulling fs layer
e1d353a86593: Pulling fs layer
39f3cfc77f60: Pulling fs layer
e1d353a86593: Waiting
e22735463896: Pulling fs layer
fd3028effc03: Pulling fs layer
e22735463896: Waiting
12b078d21ba7: Download complete
9f4bb3228e3b: Download complete
0a5d68dacd45: Download complete
e22735463896: Verifying Checksum
e22735463896: Download complete
39f3cfc77f60: Verifying Checksum
39f3cfc77f60: Download complete
12b078d21ba7: Pull complete
fd3028effc03: Download complete
9f4bb3228e3b: Pull complete
0a5d68dacd45: Pull complete
e1d353a86593: Verifying Checksum
e1d353a86593: Download complete
e1d353a86593: Pull complete
39f3cfc77f60: Pull complete
e22735463896: Pull complete
fd3028effc03: Pull complete
Digest: sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c
Status: Downloaded newer image for ocaml/opam@sha256:a951d12ddc5552c16f5e8df25bd910b3c6691f189c3260cdcf3be0d53bc7550c
2025-04-19 10:14.47 ---> using "4a2892a24cbb2a8076cb7c58f3f902e86963a156305e5ff34f28bf8b28ba30ec" from cache
/: (comment debian-12-5.3_s390x_opam-2.3)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-19 10:14.47 ---> using "b863af6359b8ac5ca08925e64084b5c538756fb55fffdd903269a504b1061615" from cache
/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from 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.
This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.
Continue? [y/n] y
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-04-19 10:14.47 ---> using "c8de9338b7beccc41c026b65042604ff542e3434e9ce1f4c804eb9b1957eb864" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 6.8.0-55-generic
The OCaml toplevel, version 5.3.0
2.3.0
2025-04-19 10:14.48 ---> using "5ed3fd8ee149b0283685835f6287f01a7bf0d644682c7fbd050fcf490e6e114e" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-04-19 10:14.48 ---> using "cf5dddf973ba6f0c6cddbe9a99cb99be233eb04e09bcc8c9a5058da7caafefaf" from cache
/src: (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
da74d7829f..9b3a0a13cf master -> origin/master
442eddb8a3 Merge pull request #27761 from maiste/release-dune-3.18.1
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+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.48 ---> using "6d27db0ac3162281a35ee0a757020309e2461414f19174355abb01040a2c30f1" from cache
/src: (copy (src ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam) (dst ./))
2025-04-19 10:14.48 ---> using "a0c672b073649ae0c12fe150e8a84747b74ac3f6301e7a69929f5fcb5b40a441" from cache
/src: (run (network host)
(shell "opam pin add -yn ppxlib.dev './' && \
\nopam pin add -yn ppxlib-tools.dev './' && \
\nopam pin add -yn ppxlib-bench.dev './'"))
[ppxlib.dev] synchronised (file:///src)
ppxlib is now pinned to file:///src (version dev)
[ppxlib-tools.dev] synchronised (file:///src)
ppxlib-tools is now pinned to file:///src (version dev)
Package ppxlib-bench does not exist, create as a NEW package? [y/n] y
[ppxlib-bench.dev] synchronised (file:///src)
ppxlib-bench is now pinned to file:///src (version dev)
2025-04-19 10:14.48 ---> using "880393262c05d6b6fcb01c67979d9c2c65fa1c3c65f4edb31632d53816e75525" from cache
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-04-19 10:14.48 ---> using "9ec01852c9c38cd419cfbfffe99de0da57f5021fb78c6cd34b8c422c0d0d9bca" from cache
/src: (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")
/src: (env CI true)
/src: (env OCAMLCI true)
/src: (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"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main s390x Packages [223 kB]
- Fetched 326 kB in 1s (247 kB/s)
- Reading package lists...
-
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ppxlib-bench.dev] synchronised (file:///src)
[ppxlib.dev] synchronised (file:///src)
[ppxlib-tools.dev] synchronised (file:///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:14.48 ---> using "5fb2cd67e8e910d11a48c424b494683c2350010b24e2b17568efb82f5adc2117" from cache
/src: (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 base.v0.17.1 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved csexp.1.5.2 (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)
-> installed seq.base
-> retrieved re.1.12.0 (cached)
-> retrieved sexplib0.v0.17.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 ocamlfind.1.9.8
-> installed dune.3.18.1
-> installed csexp.1.5.2
-> installed ppx_derivers.1.2.1
-> installed ocaml-compiler-libs.v0.17.0
-> installed ocaml_intrinsics_kernel.v0.17.1
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed dune-configurator.3.18.1
-> installed re.1.12.0
-> installed cinaps.v0.15.1
-> installed yojson.2.2.2
-> installed base.v0.17.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-19 10:14.48 ---> using "7c5fa35c410cd72c4a212a4e785db0e5e5f7419f334077d0eca1f1c252c80a7d" from cache
/src: (copy (src .) (dst /src))
2025-04-19 10:15.15 ---> saved as "64120b9c777996b360d2f6e43a93a7f98216113ee0861fb7caa0f27763a35607"
/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
File "test/driver/source-quotation-in-errors/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/89ca3b4e1a4120a3a5c62be3a684d453/default/test/driver/source-quotation-in-errors/run.t _build/.sandbox/89ca3b4e1a4120a3a5c62be3a684d453/default/test/driver/source-quotation-in-errors/run.t.corrected
diff --git a/_build/.sandbox/89ca3b4e1a4120a3a5c62be3a684d453/default/test/driver/source-quotation-in-errors/run.t b/_build/.sandbox/89ca3b4e1a4120a3a5c62be3a684d453/default/test/driver/source-quotation-in-errors/run.t.corrected
index e644f3f..18283e2 100644
--- a/_build/.sandbox/89ca3b4e1a4120a3a5c62be3a684d453/default/test/driver/source-quotation-in-errors/run.t
+++ b/_build/.sandbox/89ca3b4e1a4120a3a5c62be3a684d453/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
+ [139]
File "test/driver/stdin_input/test.t/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/d3454dd2edde41ddc57e8c80b02f9552/default/test/driver/stdin_input/test.t/run.t _build/.sandbox/d3454dd2edde41ddc57e8c80b02f9552/default/test/driver/stdin_input/test.t/run.t.corrected
diff --git a/_build/.sandbox/d3454dd2edde41ddc57e8c80b02f9552/default/test/driver/stdin_input/test.t/run.t b/_build/.sandbox/d3454dd2edde41ddc57e8c80b02f9552/default/test/driver/stdin_input/test.t/run.t.corrected
index d385654..7bc5379 100644
--- a/_build/.sandbox/d3454dd2edde41ddc57e8c80b02f9552/default/test/driver/stdin_input/test.t/run.t
+++ b/_build/.sandbox/d3454dd2edde41ddc57e8c80b02f9552/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
+ [139]
File "test/driver/error_embedding/test.t/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/e636e5aa33f98f675da25c32caf667fe/default/test/driver/error_embedding/test.t/run.t _build/.sandbox/e636e5aa33f98f675da25c32caf667fe/default/test/driver/error_embedding/test.t/run.t.corrected
diff --git a/_build/.sandbox/e636e5aa33f98f675da25c32caf667fe/default/test/driver/error_embedding/test.t/run.t b/_build/.sandbox/e636e5aa33f98f675da25c32caf667fe/default/test/driver/error_embedding/test.t/run.t.corrected
index dafee10..4040c96 100644
--- a/_build/.sandbox/e636e5aa33f98f675da25c32caf667fe/default/test/driver/error_embedding/test.t/run.t
+++ b/_build/.sandbox/e636e5aa33f98f675da25c32caf667fe/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
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ../raiser.exe -as-ppx '/tmp/build_301b6a_dune/camlppx4ad8ae' '/tmp/build_301b6a_dune/camlppx3eb1a8'
+
[2]
Also exceptions raised in a preprocessor get embedded into an AST(while the
File "test/driver/standalone_run_as_ppx/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/5243a4f147fdde36b83ce5507fd8a035/default/test/driver/standalone_run_as_ppx/run.t _build/.sandbox/5243a4f147fdde36b83ce5507fd8a035/default/test/driver/standalone_run_as_ppx/run.t.corrected
diff --git a/_build/.sandbox/5243a4f147fdde36b83ce5507fd8a035/default/test/driver/standalone_run_as_ppx/run.t b/_build/.sandbox/5243a4f147fdde36b83ce5507fd8a035/default/test/driver/standalone_run_as_ppx/run.t.corrected
index e36c4bf..6730792 100644
--- a/_build/.sandbox/5243a4f147fdde36b83ce5507fd8a035/default/test/driver/standalone_run_as_ppx/run.t
+++ b/_build/.sandbox/5243a4f147fdde36b83ce5507fd8a035/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
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx '/tmp/build_301b6a_dune/camlppx05ceb1' '/tmp/build_301b6a_dune/camlppx895353'
+
+ [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
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx '/tmp/build_301b6a_dune/camlppx28c724' '/tmp/build_301b6a_dune/camlppx10954a'
+
+ [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
+ 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_301b6a_dune/camlppxc656a3' '/tmp/build_301b6a_dune/camlppx76655a'
+
+ [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
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx -dont-apply test '/tmp/build_301b6a_dune/camlppx4d3f25' '/tmp/build_301b6a_dune/camlppxcf68b1'
+
[2]
File "test/driver/flag_cookie/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/60e14eb553b70be9d6d383338304a1c8/default/test/driver/flag_cookie/run.t _build/.sandbox/60e14eb553b70be9d6d383338304a1c8/default/test/driver/flag_cookie/run.t.corrected
diff --git a/_build/.sandbox/60e14eb553b70be9d6d383338304a1c8/default/test/driver/flag_cookie/run.t b/_build/.sandbox/60e14eb553b70be9d6d383338304a1c8/default/test/driver/flag_cookie/run.t.corrected
index d6c3fa5..c1b5d65 100644
--- a/_build/.sandbox/60e14eb553b70be9d6d383338304a1c8/default/test/driver/flag_cookie/run.t
+++ b/_build/.sandbox/60e14eb553b70be9d6d383338304a1c8/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
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_cookie_driver.exe --as-ppx -cookie x=1 '/tmp/build_301b6a_dune/camlppxbebc73' '/tmp/build_301b6a_dune/camlppx8f4d60'
+
+ [2]
File "test/driver/run_as_ppx_rewriter/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/f0277575a12a003acb728b939c8020ef/default/test/driver/run_as_ppx_rewriter/run.t _build/.sandbox/f0277575a12a003acb728b939c8020ef/default/test/driver/run_as_ppx_rewriter/run.t.corrected
diff --git a/_build/.sandbox/f0277575a12a003acb728b939c8020ef/default/test/driver/run_as_ppx_rewriter/run.t b/_build/.sandbox/f0277575a12a003acb728b939c8020ef/default/test/driver/run_as_ppx_rewriter/run.t.corrected
index a9a0d71..69205c4 100644
--- a/_build/.sandbox/f0277575a12a003acb728b939c8020ef/default/test/driver/run_as_ppx_rewriter/run.t
+++ b/_build/.sandbox/f0277575a12a003acb728b939c8020ef/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
+ File "./file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe '/tmp/build_301b6a_dune/camlppx96a65f' '/tmp/build_301b6a_dune/camlppx114250'
+
+ [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
+ File "./file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe -apply print_hi '/tmp/build_301b6a_dune/camlppxe0db7f' '/tmp/build_301b6a_dune/camlppx178e50'
+
[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
+ File "./attribute_file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe -check '/tmp/build_301b6a_dune/camlppxd67048' '/tmp/build_301b6a_dune/camlppx490000'
+
[2]
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-04-19 10:17.50: Job failed: Failed: Build failed