ocaml-csv
ocaml-csv copied to clipboard
Race condition in parallel builds
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
I should add that I have seen this both with upstream git and with the released 2.4 tarball.