2025-04-19 10:14.04: New job: test patricoferris/ppxlib https://github.com/patricoferris/ppxlib.git#refs/heads/ci (dd2e536f5c4aa7758d5e8c2af6f8c86901b46205) (freebsd-x86_64:freebsd-14.2-5.3_opam-2.3) Base: freebsd-14.2-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 freebsd-14.2-ocaml-5.3 # freebsd-14.2-5.3_opam-2.3 USER 1000:1000 ENV CLICOLOR_FORCE="1" ENV OPAMCOLOR="always" WORKDIR /src RUN sudo ln -f /usr/local/bin/opam-2.3 /usr/local/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-freebsd-14.2-ocaml-5.3-freebsd-14.2-5.3_opam-2.3-3c965630631cd47442dbfd9233049ef4" 2025-04-19 10:14.04: Using OBuilder spec: ((from freebsd-14.2-ocaml-5.3) (comment freebsd-14.2-5.3_opam-2.3) (user (uid 1000) (gid 1000)) (env CLICOLOR_FORCE 1) (env OPAMCOLOR always) (workdir /src) (run (shell "sudo ln -f /usr/local/bin/opam-2.3 /usr/local/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.05: Got resource from pool OCluster Building on spring Updating files: 100% (416/416), done. HEAD is now at 68af533 Bump trunk CI to 5.4.0 HEAD is now at dd2e536 Support OCaml 5.4 (from freebsd-14.2-ocaml-5.3) 2025-04-19 09:58.57 ---> using "47c9a03b962be450225081ed69acde1f5c6dadb6d1106d9b1a8b4fd61c2defa6" from cache /: (comment freebsd-14.2-5.3_opam-2.3) /: (user (uid 1000) (gid 1000)) /: (env CLICOLOR_FORCE 1) /: (env OPAMCOLOR always) /: (workdir /src) /src: (run (shell "sudo ln -f /usr/local/bin/opam-2.3 /usr/local/bin/opam")) 2025-04-19 09:58.58 ---> using "6c919feff42b8acbece064f547886f17e62a0f8c652c95803d5cc1a0edc05bf0" from cache /src: (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. This version of opam requires an update to the layout of /home/opam/.opam from version 2.1 to version 2.2, which can't be reverted. You may want to back it up before going further. Continue? [y/n] y [NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using: opam option jobs=1 --global Format upgrade done. <><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><> [default] no changes from git+file:///home/opam/opam-repository 2025-04-19 09:58.58 ---> using "ef1aecc2d79e0d6d7a69975e03fbee48aae321cc5ded967c4b85817abcd33408" from cache /src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version")) FreeBSD 14.2-RELEASE-p1 The OCaml toplevel, version 5.3.0 2.3.0 2025-04-19 09:58.59 ---> using "b81c61e28dd398a2621aef3fc778c808fda4399fe66dbfb28a40b55bd44ce32a" from cache /src: (workdir /src) /src: (run (shell "sudo chown opam /src")) 2025-04-19 09:58.59 ---> using "46859cd3f1ed5f6081f98d282b27cc9fcab2b0b04b4be45ac52d723eb6d8a59e" 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 48e47466f5..442eddb8a3 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). The following packages are not being upgraded because the new versions conflict with other installed packages: - ocaml.5.4.0 However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages. Nothing to do. 2025-04-19 09:58.59 ---> using "d9aac109bd751c04aff4a2ef45f16538e45a561bc0cee00ea573680c02b4aec7" from cache /src: (copy (src ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam) (dst ./)) 2025-04-19 09:59.00 ---> saved as "6bd5dae917be31fc195aec3c446f11946d1098396e0b90329d8cd3d3d47e295e" /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 09:59.03 ---> saved as "c779d27fceb1c9e8fb127a56e330bd08b37291311e7bd50fb8be1467281a88ae" /src: (run (network host) (shell "echo '(lang dune 3.0)' > './dune-project'")) 2025-04-19 09:59.04 ---> saved as "0a1b7f6b072b8b557499f88f974201f2ed10f418387d3489d8ea264cecba74f9" /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")) [WARNING] Unknown update command for bsd, skipping system update <><> 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 09:59.16 ---> saved as "4a3f4875aaa8725ab75ef168e9cbefba7182d0918f965a4ed7b748a53cde35c5" /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 ∗ base v0.17.1 ∗ cinaps v0.15.1 ∗ cmdliner 1.3.0 ∗ csexp 1.5.2 ∗ dune 3.18.1 ∗ dune-configurator 3.18.1 ∗ ocaml-compiler-libs v0.17.0 ∗ 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 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> ⬇ retrieved cinaps.v0.15.1 (cached) ⬇ retrieved csexp.1.5.2 (cached) ⬇ retrieved cmdliner.1.3.0 (cached) ⬇ retrieved ocaml-compiler-libs.v0.17.0 (cached) ⬇ retrieved base.v0.17.1 (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 ppx_derivers.1.2.1 ∗ installed stdlib-shims.0.3.0 ∗ installed sexplib0.v0.17.0 ∗ installed csexp.1.5.2 ∗ installed yojson.2.2.2 ∗ installed re.1.12.0 ∗ installed ocaml_intrinsics_kernel.v0.17.1 ∗ installed ocaml-compiler-libs.v0.17.0 ∗ installed cinaps.v0.15.1 ∗ installed dune-configurator.3.18.1 ∗ installed base.v0.17.1 Done. 2025-04-19 10:00.53 ---> saved as "b65adfe5c3226face16cbf2b59e4ab8f3b66f31255a037780a874adaa42e95d2" /src: (copy (src .) (dst /src)) 2025-04-19 10:00.55 ---> saved as "0456e76454193414c54586fe7d7a601d735c2a14df1fd9572488c55a8f258701" /src: (run (shell "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/c3087f28287ec712822f5ce5761f6ac9/default/test/driver/stdin_input/test.t/run.t _build/.sandbox/c3087f28287ec712822f5ce5761f6ac9/default/test/driver/stdin_input/test.t/run.t.corrected diff --git a/_build/.sandbox/c3087f28287ec712822f5ce5761f6ac9/default/test/driver/stdin_input/test.t/run.t b/_build/.sandbox/c3087f28287ec712822f5ce5761f6ac9/default/test/driver/stdin_input/test.t/run.t.corrected index d385654..4090ca2 100644 --- a/_build/.sandbox/c3087f28287ec712822f5ce5761f6ac9/default/test/driver/stdin_input/test.t/run.t +++ b/_build/.sandbox/c3087f28287ec712822f5ce5761f6ac9/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/a624c7355f0e5540b7f2b2f2e6f7a330/default/test/driver/standalone_run_as_ppx/run.t _build/.sandbox/a624c7355f0e5540b7f2b2f2e6f7a330/default/test/driver/standalone_run_as_ppx/run.t.corrected diff --git a/_build/.sandbox/a624c7355f0e5540b7f2b2f2e6f7a330/default/test/driver/standalone_run_as_ppx/run.t b/_build/.sandbox/a624c7355f0e5540b7f2b2f2e6f7a330/default/test/driver/standalone_run_as_ppx/run.t.corrected index e36c4bf..e71fe4f 100644 --- a/_build/.sandbox/a624c7355f0e5540b7f2b2f2e6f7a330/default/test/driver/standalone_run_as_ppx/run.t +++ b/_build/.sandbox/a624c7355f0e5540b7f2b2f2e6f7a330/default/test/driver/standalone_run_as_ppx/run.t.corrected @@ -6,7 +6,11 @@ The rewriter gets applied when using `--as-ppx` $ echo "let _ = [%print_hi]" > impl.ml $ ocaml -ppx './print_stuff.exe --as-ppx' impl.ml - hi + File "./impl.ml", line 1: + Error: Error while running external preprocessor + Command line: ./print_stuff.exe --as-ppx '/tmp/build_ac20df_dune/camlppxa7d8d0' '/tmp/build_ac20df_dune/camlppx309dc1' + + [2] If a non-compatible file gets fed, the file name is reported correctly @@ -20,18 +24,28 @@ 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 + File "./impl.ml", line 1: + Error: Error while running external preprocessor + Command line: ./print_stuff.exe --as-ppx '/tmp/build_ac20df_dune/camlppx9255b1' '/tmp/build_ac20df_dune/camlppxdda918' + + [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 + 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_ac20df_dune/camlppxc134db' '/tmp/build_ac20df_dune/camlppxf4350b' + + [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'. + File "./impl.ml", line 1: + Error: Error while running external preprocessor + Command line: ./print_stuff.exe --as-ppx -dont-apply test '/tmp/build_ac20df_dune/camlppxf35c30' '/tmp/build_ac20df_dune/camlppx04fbf8' + [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/f9257754c51eb09bea1ccb3df3b083e8/default/test/driver/source-quotation-in-errors/run.t _build/.sandbox/f9257754c51eb09bea1ccb3df3b083e8/default/test/driver/source-quotation-in-errors/run.t.corrected diff --git a/_build/.sandbox/f9257754c51eb09bea1ccb3df3b083e8/default/test/driver/source-quotation-in-errors/run.t b/_build/.sandbox/f9257754c51eb09bea1ccb3df3b083e8/default/test/driver/source-quotation-in-errors/run.t.corrected index e644f3f..beb46a9 100644 --- a/_build/.sandbox/f9257754c51eb09bea1ccb3df3b083e8/default/test/driver/source-quotation-in-errors/run.t +++ b/_build/.sandbox/f9257754c51eb09bea1ccb3df3b083e8/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/5384bef7aab52ccc746272682ffa9c5f/default/test/driver/error_embedding/test.t/run.t _build/.sandbox/5384bef7aab52ccc746272682ffa9c5f/default/test/driver/error_embedding/test.t/run.t.corrected diff --git a/_build/.sandbox/5384bef7aab52ccc746272682ffa9c5f/default/test/driver/error_embedding/test.t/run.t b/_build/.sandbox/5384bef7aab52ccc746272682ffa9c5f/default/test/driver/error_embedding/test.t/run.t.corrected index dafee10..5520cca 100644 --- a/_build/.sandbox/5384bef7aab52ccc746272682ffa9c5f/default/test/driver/error_embedding/test.t/run.t +++ b/_build/.sandbox/5384bef7aab52ccc746272682ffa9c5f/default/test/driver/error_embedding/test.t/run.t.corrected @@ -14,8 +14,10 @@ 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 + File "./impl.ml", line 1: + Error: Error while running external preprocessor + Command line: ../raiser.exe -as-ppx '/tmp/build_ac20df_dune/camlppx55a9f6' '/tmp/build_ac20df_dune/camlppx483cd7' + [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/004443d31a8cc56dcbd5918c1335f30e/default/test/driver/flag_cookie/run.t _build/.sandbox/004443d31a8cc56dcbd5918c1335f30e/default/test/driver/flag_cookie/run.t.corrected diff --git a/_build/.sandbox/004443d31a8cc56dcbd5918c1335f30e/default/test/driver/flag_cookie/run.t b/_build/.sandbox/004443d31a8cc56dcbd5918c1335f30e/default/test/driver/flag_cookie/run.t.corrected index d6c3fa5..1ccf260 100644 --- a/_build/.sandbox/004443d31a8cc56dcbd5918c1335f30e/default/test/driver/flag_cookie/run.t +++ b/_build/.sandbox/004443d31a8cc56dcbd5918c1335f30e/default/test/driver/flag_cookie/run.t.corrected @@ -7,4 +7,8 @@ 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 + File "./impl.ml", line 1: + Error: Error while running external preprocessor + Command line: ./print_cookie_driver.exe --as-ppx -cookie x=1 '/tmp/build_ac20df_dune/camlppxf23f51' '/tmp/build_ac20df_dune/camlppxe830b1' + + [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/ed498522cc1797dac8fc0e489148f248/default/test/driver/run_as_ppx_rewriter/run.t _build/.sandbox/ed498522cc1797dac8fc0e489148f248/default/test/driver/run_as_ppx_rewriter/run.t.corrected diff --git a/_build/.sandbox/ed498522cc1797dac8fc0e489148f248/default/test/driver/run_as_ppx_rewriter/run.t b/_build/.sandbox/ed498522cc1797dac8fc0e489148f248/default/test/driver/run_as_ppx_rewriter/run.t.corrected index a9a0d71..047e44a 100644 --- a/_build/.sandbox/ed498522cc1797dac8fc0e489148f248/default/test/driver/run_as_ppx_rewriter/run.t +++ b/_build/.sandbox/ed498522cc1797dac8fc0e489148f248/default/test/driver/run_as_ppx_rewriter/run.t.corrected @@ -10,23 +10,29 @@ 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 + File "./file.ml", line 1: + Error: Error while running external preprocessor + Command line: ./print_greetings.exe '/tmp/build_ac20df_dune/camlppx6c8263' '/tmp/build_ac20df_dune/camlppx91fd21' + + [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'. + File "./file.ml", line 1: + Error: Error while running external preprocessor + Command line: ./print_greetings.exe -apply print_hi '/tmp/build_ac20df_dune/camlppxfcb2e7' '/tmp/build_ac20df_dune/camlppx4d8777' + [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 + File "./attribute_file.ml", line 1: + Error: Error while running external preprocessor + Command line: ./print_greetings.exe -check '/tmp/build_ac20df_dune/camlppx132d43' '/tmp/build_ac20df_dune/camlppx80c33b' + [2] jail: /usr/bin/su -l opam -c cd '/src' && env OCAMLCI='true' CI='true' 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' OPAMCOLOR='always' CLICOLOR_FORCE='1' '/usr/bin/env' 'bash' '-c' 'opam exec -- dune build @install @check @runtest && rm -rf _build': failed "jail" "-c" "name=obuilder_67459_40950" "mount.devfs" "path=/obuilder/result/5b9a70e2da22c37e66179327456358acd2bc63bb17cb409ca6cd94516c75b976/rootfs" "vnet" "exec.start=/sbin/ifconfig lo0 127.0.0.1/8" "command=/usr/bin/su" "-l" "opam" "-c" "cd '/src' && env OCAMLCI='true' CI='true' 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' OPAMCOLOR='always' CLICOLOR_FORCE='1' '/usr/bin/env' 'bash' '-c' 'opam exec -- dune build @install @check @runtest && rm -rf _build'" failed with exit status 1 2025-04-19 10:16.45: Job failed: Failed: Build failed