bug-make
[Top][All Lists]
Advanced

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

[bug #63439] [Regression] --no-builtin-variables with --warn-undefined-v


From: R. Diez
Subject: [bug #63439] [Regression] --no-builtin-variables with --warn-undefined-variables trigger warning on GNUMAKEFLAGS
Date: Mon, 16 Oct 2023 10:04:07 -0400 (EDT)

Follow-up Comment #10, bug #63439 (project make):


> Please be sure to post the output of *make --version*
> so we know what version of GNU Make you are using.

Sorry I forgot. I am using GNU Make 4.4.1, which I built from sources myself:

GNU Make 4.4.1
Built for x86_64-pc-linux-gnu


> Also please show a minimally reproducible example

If I somehow manage to do it, I will post it here.


> I looked at the Makefile in the directory on GitHub you pointed to and
> there is no reference to GNUMAKEFLAGS or the "help" target there
> [...]

Yes, that is what I said: The makefile does not reference GNUMAKEFLAGS at all.
That is why I was surprised to see that warning. I wrote the makefile myself
and I have never used variable GNUMAKEFLAGS as far as I can remember.

I am guessing that GNU Make 4.4.1 must internally query variable GNUMAKEFLAGS
as a side effect when the makefile tries to use some other rule or variable.
But I do not know enough to debug the exact position.

How about you try the command I posted with that makefile with GNU Make 4.3
and 4.4.1 ? You should see the warning only with 4.4.1. The makefile is
actually relatively straightforward and does not check the GNU Make version
itself. That is, it behaves exactly the same, no matter what GNU Make version
you are using.

Regards,
  rdiez



    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]