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

arning: .PHONY was already defined in condition TRUE, which includes condition AUTOCONF_CODE_COVER #766

Closed
kgold2 opened this issue Mar 8, 2021 · 4 comments

Comments

@kgold2
Copy link

kgold2 commented Mar 8, 2021

Ubuntu 16 xenial, x86

When following the instructions to get and install this as a work around, http://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2019.01.06.tar.xz, bootstrap now says

./bootstrap
aminclude_static.am:126: warning: .PHONY was already defined in condition TRUE, which includes condition AUTOCONF_CODE_COVERAGE_2019_01_06 ...
Makefile.am:175: 'aminclude_static.am' included from here
Makefile.am:6: ... '.PHONY' previously defined here
Makefile.am:182: warning: AM_DISTCHECK_CONFIGURE_FLAGS multiply defined in condition AUTOCONF_CODE_COVERAGE_2019_01_06 and CODE_COVERAGE_ENABLED ...
aminclude_static.am:100: ... 'AM_DISTCHECK_CONFIGURE_FLAGS' previously defined here
Makefile.am:175: 'aminclude_static.am' included from here

@williamcroberts
Copy link
Member

This is a harmless warning generated by working around a broken version of autoconf-archive. I wonder if we can just drop the workaround and say you need to have 2021-02-19. But Ubuntu 20.04 doesn't even have it, so it might be premature.

@kgold2
Copy link
Author

kgold2 commented Mar 8, 2021

Thanks for the quick response. The errors looked serious.

This issue seem like it's recurring. Could you ship the correct files in m4 directly?

@williamcroberts
Copy link
Member

Thanks for the quick response. The errors looked serious.

It says, "warning", not "error". Although I can see why the level of concern. We might want to bolster the install docs to say these warnings are harmless.

This issue seem like it's recurring. Could you ship the correct files in m4 directly?

The issue isn't recurring, If we just drop support for the outdated autoconf-archive versions, this would go away assuming something in autoconf-archive doesn't regress. But then when we ship the autoconf-archive files, then we need to make sure they stay up to date, just one more task to do. Especially when you consider the fixes around the various macros, I don't want to have to track and deal with that when package maintainers provide it.

@tstruk
Copy link
Contributor

tstruk commented Mar 15, 2021

As explained in tpm2-software/tpm2-tss#2020. This is because the code coverage macros from the autoconf-archive changed in a way that breaks backward compatibility and our workaround to make it work with both old and new version of aminclude_static.am can cause it to emit strange warnings.

@tstruk tstruk closed this as completed Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants