Summary: Incorrect directory is printed in "Entering
directory" message when -j1 disables jobserver mode for a sub make
Submitted by: None
Submitted on: Tue 25 Feb 2020 05:09:22 PM UTC
Severity: 3 - Normal
Item Group: Bug
Assigned to: None
Discussion Lock: Any
Component Version: 4.2.1
Operating System: Any
Fixed Release: None
Triage Status: None
gmake seems to be printing what the directory was prior to the launching of a
sub make that disables jobserver mode with -j1. The submake is started in the
correct directory, but the wrong one is printed in the "Entering directory"
This inconsistency in messages was not present in gmake 3.82 (Debian 7, 9,
MacOS 10.10, Windows 7). I have reproduced the behavior with gmake 4.1 (on
Debian 9) and with gmake 4.2.1 (on Debian 7, 9, 10, MacOS 10.10, Windows 7)
Simple makefiles attached to reproduce the behavior.
% gmake -v
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.