Menu

#116 husky-msged is not parallel build (-jX) safe

open
nobody
None
5
2013-08-21
2013-08-21
No

At least version 6.2RC1 is missing some safety measures, both in make(1) code and makemaps.c helper application.

1) Race condition in top-level Makefile: msghelp.dat target calls $(TARGET), but does not depend on it. Fix is simple:

-msghelp.dat: msghelp.src
+msghelp.dat: msghelp.src $(TARGET)

2) Maps generation cannot be done in parallel, since makemaps.c program always output results to the same files, "readmaps.dat" and "writmaps.dat". To quickly fix this problem, I've written a simple patch that picks up suffix from the environment (attached). maps/makefile.husky was modified accordingly (also cleaner now).

2 Attachments

Discussion


Log in to post a comment.