dgibson / dtc

Device Tree Compiler
218 stars 130 forks source link

Fix make 4.4 recursion #73

Closed trofi closed 1 year ago

trofi commented 1 year ago

Makefile: fix infinite recursion by dropping non-existent %.output

Without the change GNU make-4.4 falls into infinite recursion of trying to generate %.output files (bison is not passed flags to generate debug output).

This happens on GNU make-4.4 only after GNU make change to more eagerly rebuild all target outputs in multiple targets: https://savannah.gnu.org/bugs/index.php?63098

The recursion here is the following:

In our case %.output is always missing and bison is always reran. .d files are always regenerated on make run. And make is always restarted as .d files are always regenerated.

The fix removes infeasible %.output.

dgibson commented 1 year ago

Merged manually, thanks.