ocaml-csv icon indicating copy to clipboard operation
ocaml-csv copied to clipboard

Race condition in parallel builds

Open rwmjones opened this issue 4 years ago • 1 comments

I see this from time to time. It's not very repeatable but it seems to happen on machines with more but slower cores:

File "lwt/dune", line 9, characters 0-150:
 9 | (rule
10 |  (targets csv_lwt.ml)
11 |  (deps    ../src/csv.pp.ml ../src/csv_memory.ml ../config/pp.exe)
12 |  (action (chdir %{workspace_root} (run config/pp.exe))))
Error: Rule failed to generate the following targets:
- lwt/csv_lwt.ml

Here's an example failure with full log on an aarch64 machine: https://koji.fedoraproject.org/koji/taskinfo?taskID=76860771

The unsatisfactory workaround is to use dune build -j 1

rwmjones avatar Oct 07 '21 11:10 rwmjones

I should add that I have seen this both with upstream git and with the released 2.4 tarball.

rwmjones avatar Oct 07 '21 11:10 rwmjones