Subject: cleandir parallel make race
To: None <port-i386@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: port-i386
Date: 01/03/2006 18:43:32
Cleandir fails for me with current with

--- cleandir-dosboot ---
getcwd() failed: No such file or directory

Essentially, this is because the Makefiles of dosboot, netboot and
pxeboot all include Makefile.booters. Makefile.booters includes
the makefiles for libkern, libz, libsa and libi386, which means
that those last 4 directories get cleaned 3 times (by dosboot,
netboot, pxeboot). When doing a parallel build who knows who will
get there first..

I'm not sure what the best fix is.. .WAIT would mean that building
couldn't happen in parallel, but I think it can, it is just the
cleaning which can't, or rather, the error which should be ignored..

Thoughts?

Cheers,

Patrick