* No progress output when make 4.4.1 builds Linux 4.19 and earlier
@ 2023-03-08 6:13 Eric Biggers
2023-03-08 6:17 ` Greg KH
0 siblings, 1 reply; 10+ messages in thread
From: Eric Biggers @ 2023-03-08 6:13 UTC (permalink / raw)
To: bug-make; +Cc: stable, Dmitry Goncharov
After upgrading to make v4.4.1 (released last week), there's no longer any
progress output from builds of the Linux kernel v4.19 and earlier. It seems the
actual build still works, but it's now silent except for warnings and errors.
It bisects to the following 'make' commit:
commit dc2d963989b96161472b2cd38cef5d1f4851ea34
Author: Dmitry Goncharov <dgoncharov@users.sf.net>
Date: Sun Nov 27 14:09:17 2022 -0500
[SV 63347] Always add command line variable assignments to MAKEFLAGS
Is this an intentional breakage from the 'make' side?
- Eric
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 6:13 No progress output when make 4.4.1 builds Linux 4.19 and earlier Eric Biggers @ 2023-03-08 6:17 ` Greg KH 2023-03-08 6:34 ` Eric Biggers 2023-03-08 13:12 ` Dmitry Goncharov 0 siblings, 2 replies; 10+ messages in thread From: Greg KH @ 2023-03-08 6:17 UTC (permalink / raw) To: Eric Biggers; +Cc: bug-make, stable, Dmitry Goncharov On Tue, Mar 07, 2023 at 10:13:45PM -0800, Eric Biggers wrote: > After upgrading to make v4.4.1 (released last week), there's no longer any > progress output from builds of the Linux kernel v4.19 and earlier. It seems the > actual build still works, but it's now silent except for warnings and errors. > > It bisects to the following 'make' commit: > > commit dc2d963989b96161472b2cd38cef5d1f4851ea34 > Author: Dmitry Goncharov <dgoncharov@users.sf.net> > Date: Sun Nov 27 14:09:17 2022 -0500 > > [SV 63347] Always add command line variable assignments to MAKEFLAGS > > Is this an intentional breakage from the 'make' side? Ah, thanks for figuring this out, it's been bugging me locally for a bit as well! The fact that kernels 5.4 and newer imply to me that there is a kernel build fix that should resolve this if someone can take the time to bisect it... thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 6:17 ` Greg KH @ 2023-03-08 6:34 ` Eric Biggers 2023-03-08 13:12 ` Dmitry Goncharov 1 sibling, 0 replies; 10+ messages in thread From: Eric Biggers @ 2023-03-08 6:34 UTC (permalink / raw) To: Greg KH, Masahiro Yamada; +Cc: bug-make, stable, Dmitry Goncharov On Wed, Mar 08, 2023 at 07:17:37AM +0100, Greg KH wrote: > On Tue, Mar 07, 2023 at 10:13:45PM -0800, Eric Biggers wrote: > > After upgrading to make v4.4.1 (released last week), there's no longer any > > progress output from builds of the Linux kernel v4.19 and earlier. It seems the > > actual build still works, but it's now silent except for warnings and errors. > > > > It bisects to the following 'make' commit: > > > > commit dc2d963989b96161472b2cd38cef5d1f4851ea34 > > Author: Dmitry Goncharov <dgoncharov@users.sf.net> > > Date: Sun Nov 27 14:09:17 2022 -0500 > > > > [SV 63347] Always add command line variable assignments to MAKEFLAGS > > > > Is this an intentional breakage from the 'make' side? > > Ah, thanks for figuring this out, it's been bugging me locally for a bit > as well! The fact that kernels 5.4 and newer imply to me that there is > a kernel build fix that should resolve this if someone can take the time > to bisect it... > Fix bisection comes up with the following kernel commit: commit 80463f1b7bf9f822fd3495139bcf3ef254fdca10 Author: Masahiro Yamada <yamada.masahiro@socionext.com> Date: Fri Sep 14 15:33:23 2018 +0900 kbuild: add --include-dir flag only for out-of-tree build But only for in-tree builds. Out-of-tree builds need: commit 3812b8c5c5d527239ac015f1f2c7654da7fcfbba Author: Masahiro Yamada <yamada.masahiro@socionext.com> Date: Fri Feb 22 16:40:07 2019 +0900 kbuild: make -r/-R effective in top Makefile for old Make versions Masahiro, what dependencies (if any) do the above two commits have in order to be backported to 4.19 and 4.14? - Eric ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 6:17 ` Greg KH 2023-03-08 6:34 ` Eric Biggers @ 2023-03-08 13:12 ` Dmitry Goncharov 2023-03-08 13:27 ` Greg KH 2023-03-08 13:57 ` Paul Smith 1 sibling, 2 replies; 10+ messages in thread From: Dmitry Goncharov @ 2023-03-08 13:12 UTC (permalink / raw) To: Greg KH; +Cc: Eric Biggers, bug-make, stable On Wed, Mar 8, 2023 at 1:37 AM Greg KH <gregkh@linuxfoundation.org> wrote: > On Tue, Mar 07, 2023 at 10:13:45PM -0800, Eric Biggers wrote: ... > > Is this an intentional breakage from the 'make' side? No it is not an intentional breakage. This is a fix for https://savannah.gnu.org/bugs/?63347. > The fact that kernels 5.4 and newer imply to me that there is > a kernel build fix that should resolve this if someone can take the time > to bisect it... Kernel makefile was updated to work with old and new make in 4bf73588165ba7d32131a043775557a54b6e1db5. If you wanted to backport, try this commit. regards, Dmitry ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 13:12 ` Dmitry Goncharov @ 2023-03-08 13:27 ` Greg KH 2023-03-08 13:57 ` Paul Smith 1 sibling, 0 replies; 10+ messages in thread From: Greg KH @ 2023-03-08 13:27 UTC (permalink / raw) To: Dmitry Goncharov; +Cc: Eric Biggers, bug-make, stable On Wed, Mar 08, 2023 at 08:12:57AM -0500, Dmitry Goncharov wrote: > On Wed, Mar 8, 2023 at 1:37 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > On Tue, Mar 07, 2023 at 10:13:45PM -0800, Eric Biggers wrote: > ... > > > Is this an intentional breakage from the 'make' side? > No it is not an intentional breakage. > This is a fix for https://savannah.gnu.org/bugs/?63347. > > > The fact that kernels 5.4 and newer imply to me that there is > > a kernel build fix that should resolve this if someone can take the time > > to bisect it... > > Kernel makefile was updated to work with old and new make in > 4bf73588165ba7d32131a043775557a54b6e1db5. > If you wanted to backport, try this commit. Nice, that worked for me! I'll go queue that up for the stable kernels now, thank you for the quick response. greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 13:12 ` Dmitry Goncharov 2023-03-08 13:27 ` Greg KH @ 2023-03-08 13:57 ` Paul Smith 2023-03-08 14:31 ` Greg KH ` (2 more replies) 1 sibling, 3 replies; 10+ messages in thread From: Paul Smith @ 2023-03-08 13:57 UTC (permalink / raw) To: Greg KH; +Cc: Eric Biggers, bug-make, stable On Wed, 2023-03-08 at 08:12 -0500, Dmitry Goncharov wrote: > > > Is this an intentional breakage from the 'make' side? > No it is not an intentional breakage. > This is a fix for https://savannah.gnu.org/bugs/?63347. Just to note, it was possible to run into this problem with earlier versions of GNU Make as well, it just became much simpler once the variables were available since it's easier to have an "s" in some variable. But it is possible to have an "s" in a MAKEFLAGS flag which is not introduced with a "--", and doesn't represent the short option. I give some examples in that Savannah bug. > > The fact that kernels 5.4 and newer imply to me that there is > > a kernel build fix that should resolve this if someone can take the > > time to bisect it... > > Kernel makefile was updated to work with old and new make in > 4bf73588165ba7d32131a043775557a54b6e1db5. > If you wanted to backport, try this commit. Does anyone know why this commit is using a make version comparison? That seems totally unnecessary to me; am I forgetting something? As far as I remember, silence := $(findstring s,$(firstword -$(MAKEFLAGS))) has always been the proper way to check for the short option "s", and has always worked in every version of GNU Make. https://github.com/torvalds/linux/commit/4bf73588165ba7d32131a043775557a54b6e1db5 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 13:57 ` Paul Smith @ 2023-03-08 14:31 ` Greg KH 2023-03-08 14:39 ` Dmitry Goncharov 2023-03-08 15:53 ` David Laight 2 siblings, 0 replies; 10+ messages in thread From: Greg KH @ 2023-03-08 14:31 UTC (permalink / raw) To: Paul Smith; +Cc: Eric Biggers, bug-make, stable On Wed, Mar 08, 2023 at 08:57:34AM -0500, Paul Smith wrote: > On Wed, 2023-03-08 at 08:12 -0500, Dmitry Goncharov wrote: > > > > Is this an intentional breakage from the 'make' side? > > No it is not an intentional breakage. > > This is a fix for https://savannah.gnu.org/bugs/?63347. > > Just to note, it was possible to run into this problem with earlier > versions of GNU Make as well, it just became much simpler once the > variables were available since it's easier to have an "s" in some > variable. But it is possible to have an "s" in a MAKEFLAGS flag which > is not introduced with a "--", and doesn't represent the short option. > > I give some examples in that Savannah bug. > > > > The fact that kernels 5.4 and newer imply to me that there is > > > a kernel build fix that should resolve this if someone can take the > > > time to bisect it... > > > > Kernel makefile was updated to work with old and new make in > > 4bf73588165ba7d32131a043775557a54b6e1db5. > > If you wanted to backport, try this commit. > > Does anyone know why this commit is using a make version comparison? > That seems totally unnecessary to me; am I forgetting something? As > far as I remember, > > silence := $(findstring s,$(firstword -$(MAKEFLAGS))) > > has always been the proper way to check for the short option "s", and > has always worked in every version of GNU Make. > > https://github.com/torvalds/linux/commit/4bf73588165ba7d32131a043775557a54b6e1db5 No idea, sorry, submit a patch to the kbuild maintainer and they will probably accept it. thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 13:57 ` Paul Smith 2023-03-08 14:31 ` Greg KH @ 2023-03-08 14:39 ` Dmitry Goncharov 2023-03-08 15:53 ` David Laight 2 siblings, 0 replies; 10+ messages in thread From: Dmitry Goncharov @ 2023-03-08 14:39 UTC (permalink / raw) To: psmith; +Cc: Greg KH, Eric Biggers, bug-make, stable On Wed, Mar 8, 2023 at 8:58 AM Paul Smith <psmith@gnu.org> wrote: > Does anyone know why this commit is using a make version comparison? Kernel build system is expected to work with gnu make-3.82. make-3.82 puts long options before short ones. $ cat makefile $(info at parse time makeflags=$(MAKEFLAGS)) all:; $(info at build time makeflags=$(MAKEFLAGS)) $ make-3.82 --warn-undefined-variables -sR at parse time makeflags= --warn-undefined-variables -sRr at build time makeflags= --warn-undefined-variables -sRr regards, Dmitry ^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 13:57 ` Paul Smith 2023-03-08 14:31 ` Greg KH 2023-03-08 14:39 ` Dmitry Goncharov @ 2023-03-08 15:53 ` David Laight 2023-03-08 17:50 ` Paul Smith 2 siblings, 1 reply; 10+ messages in thread From: David Laight @ 2023-03-08 15:53 UTC (permalink / raw) To: 'psmith@gnu.org', Greg KH Cc: Eric Biggers, bug-make@gnu.org, stable@vger.kernel.org ... > Does anyone know why this commit is using a make version comparison? > That seems totally unnecessary to me; am I forgetting something? As > far as I remember, > > silence := $(findstring s,$(firstword -$(MAKEFLAGS))) Adding a $(filter-out --%,...) should help with old makes: Probably: silence := $(findstring s,$(firstword $(filter-out --%,$(MAKEFLAGS)))) David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales) ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: No progress output when make 4.4.1 builds Linux 4.19 and earlier 2023-03-08 15:53 ` David Laight @ 2023-03-08 17:50 ` Paul Smith 0 siblings, 0 replies; 10+ messages in thread From: Paul Smith @ 2023-03-08 17:50 UTC (permalink / raw) To: David Laight, Greg KH Cc: Eric Biggers, bug-make@gnu.org, stable@vger.kernel.org On Wed, 2023-03-08 at 15:53 +0000, David Laight wrote: > Adding a $(filter-out --%,...) should help with old makes: Yes that's what is there. See the link to the commit I posted. I just couldn't remember why it was necessary to treat things differently between different versions. Dmitry reminded me. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-03-08 17:50 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-03-08 6:13 No progress output when make 4.4.1 builds Linux 4.19 and earlier Eric Biggers 2023-03-08 6:17 ` Greg KH 2023-03-08 6:34 ` Eric Biggers 2023-03-08 13:12 ` Dmitry Goncharov 2023-03-08 13:27 ` Greg KH 2023-03-08 13:57 ` Paul Smith 2023-03-08 14:31 ` Greg KH 2023-03-08 14:39 ` Dmitry Goncharov 2023-03-08 15:53 ` David Laight 2023-03-08 17:50 ` Paul Smith
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.