[bug #67804] Excessive "Entering directory" with -O/--output-sync

Pierre Ossman <[email protected]> Fri, 12 Dec 2025 05:00:55 -0500 (EST)
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <[email protected]>
Follow-up Comment #4, bug #67804 (group make):

Using your same Makefile:


$ make -C $(pwd) -O -j2
make: Entering directory '/home/ossman/tmp/make'
a
make: Leaving directory '/home/ossman/tmp/make'
make: Entering directory '/home/ossman/tmp/make'
b
make: Leaving directory '/home/ossman/tmp/make'
make: Entering directory '/home/ossman/tmp/make'
c
make: Leaving directory '/home/ossman/tmp/make'
make: Entering directory '/home/ossman/tmp/make'
d
make: Leaving directory '/home/ossman/tmp/make'


And it doesn't happen without -O:


$ make -C $(pwd) -j2
make: Entering directory '/home/ossman/tmp/make'
a
b
c
d
make: Leaving directory '/home/ossman/tmp/make'


But this would of course make the directory notifications useless in any
complex project, as you can't match them to other output lines.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67804>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaTvn1wAKCRCqLAuaBUf3
Tn7AAQDL5g9GDq7r6qt9WZmamwv6jRby44+wZ9e7oldn6Wu2UQD8CdthjqnUcjI6
jwo8GUFQrSffhJqEjKUeMMjZBNWC0wU=
=p6a2
-----END PGP SIGNATURE-----