tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

make(1): Unbalanced Lst_Open/Lst_Close in SuffFindCmds


Since the initial import of usr.bin/make 27 years ago, the function
SuffFindCmds has an unbalanced Lst_Open/Lst_Close in the case where it
finds a source.  This looks suspicious.


Return without Lst_Close:

Return with Lst_Close:

A few days ago, I had added an assertion to Lst_Open to ensure that it
is not yet open.  This assertion reliably fails in "./ -j1
tools", while without the -j1 everything is fine.

Adding the Lst_Close to the return path fails ./ (with or
without the -j1 option), with this error message:

install ===> compat
cd: can't cd to include
*** [includes] Error code 2

I didn't manage to produce a minimal example for this.  Can anyone help
me with this?  I'd like to understand why the build fails and what the
exact circumstances are.

OpenBSD has fixed this by not using Lst_Open anymore:


Home | Main Index | Thread Index | Old Index