Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"warning: ignoring prerequisites on suffix rule definition" with GNU make 4.3 #1651

Conversation

ikedas
Copy link
Member

@ikedas ikedas commented Mar 28, 2023

Version

Maybe any, with GNU make 4.3

Installation method

Source.

Expected behavior

No warnings during make is running.

Actual behavior

Warnings are shown:

...

Making all in libexec
make[2]: Entering directory '/.../.../src/libexec'
Makefile:961: warning: ignoring prerequisites on suffix rule definition

...

Making all in service
make[1]: Entering directory '/.../.../service'
Makefile:613: warning: ignoring prerequisites on suffix rule definition
Makefile:597: warning: ignoring prerequisites on suffix rule definition
Makefile:607: warning: ignoring prerequisites on suffix rule definition

...

Steps to reproduce

Extract the source, and then run:

$ autoreconf -i
$ ./configure
$ make

Additional information

The documentation of GNU make says:

warning: ignoring prerequisites on suffix rule definition

According to POSIX, a suffix rule cannot contain prerequisites. If a rule that could be a suffix rule has prerequisites it is interpreted as a simple explicit rule, with an odd target name. (...) In versions of GNU make prior to 4.3, no warning was emitted and a suffix rule was created, however all prerequisites were ignored and were not part of the suffix rule. Starting with GNU make 4.3 the behavior is the same, and in addition this warning is generated. In a future version the POSIX-conforming behavior will be the only behavior: no rule with a prerequisite can be suffix rule and this warning will be removed.

@ikedas ikedas added bug ready A PR is waiting to be merged. Close to be solved labels Mar 28, 2023
@racke racke added this to the 6.2.74 milestone Dec 7, 2023
@racke racke merged commit 933f436 into sympa-community:main Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ready A PR is waiting to be merged. Close to be solved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants