Skip to content

Commit

Permalink
test(rules): reproduce #6843 (#6956)
Browse files Browse the repository at this point in the history
Cross compilation setup causes dune to crash

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored Jan 28, 2023
1 parent 5642908 commit f65bbb4
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Reproduce #6843

Cross compilation setup that causes dune to crash

$ cat >dune-workspace <<EOF
> (lang dune 3.6)
> (context (default))
> (context
> (default
> (name esperanto)
> (host default)))
> EOF

$ cat >dune-project <<EOF
> (lang dune 3.6)
> EOF
$ cat >dune <<EOF
> (executable (name cat))
> EOF

$ export OCAMLFIND_CONF=$PWD/etc/findlib.conf
$ mkdir -p etc/findlib.conf.d
$ touch etc/findlib.conf etc/findlib.conf.d/esperanto.conf
$ dune build -x esperanto ./cat.exe 2>&1 | awk '/I must not/,/Only I will remain/'
I must not crash. Uncertainty is the mind-killer. Exceptions are the
little-death that brings total obliteration. I will fully express my cases.
Execution will pass over me and through me. And when it has gone past, I
will unwind the stack along its path. Where the cases are handled there will
be nothing. Only I will remain.

0 comments on commit f65bbb4

Please sign in to comment.