ocaml / ocamlbuild

The legacy OCamlbuild build manager
Other
122 stars 82 forks source link

.depend: regenerate #318

Closed trofi closed 2 years ago

trofi commented 2 years ago

The .depend file included in latest release is outdated and does not contain a dependency of 'src/plugin.cmx' on 'src/exit_codes.cmi'.

As a result build on make --shuffle (added in https://savannah.gnu.org/bugs/index.php?62100) fails in about 50% cases as:

ocamlc.opt -w +L -w +R -w +Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/ocaml_specific.ml
ocamlc.opt -w +L -w +R -w +Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/shell.mli
ocamlc.opt -w +L -w +R -w +Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/ocamlbuild_where.mli
ocamlc.opt -w +L -w +R -w +Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/plugin.mli
ocamlc.opt -w +L -w +R -w +Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/plugin.ml
File "src/plugin.ml", line 262, characters 32-57:
262 |           raise (Exit_with_code Exit_codes.rc_build_error);
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Unbound module Exit_codes

The change is regenerated with 'make depend' against ocaml-4.03. Tested to survive 100 'make --shuffle' runs without any errors.

kit-ty-kate commented 2 years ago

Superseded by #319