You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user reported to me in IRC that he has a build failure with GCC 4.3.4 on Gentoo. The key line from the config.log file is cc1: error: unrecognized command line option "-Wunused-but-set-variable".
It appears that GCC 4.3.4 does not support -Wunused-but-set-variable. We can make this work either by checking for compiler support for -Wunused-but-set-variable and enabling it only when GCC supports it or by eliminating the need for it from tests.
Note that while he is using Gentoo Hardened, the hardening appears to be irrelevant here. I consider this to be a low priority issue, although I am opening an issue to track it anyway.
The text was updated successfully, but these errors were encountered:
Certain versions of gcc generate an 'unrecognized command
line option' error message when -Wunused-but-set-variable
is used unconditionally. This in turn can cause several
of the autoconf tests to misdetect an interface.
Now, the use of -Wunused-but-set-variable in the autoconf
tests was introduced by commit b9c59ec to address a gcc
4.6 compatibility problem. So we really only need to pass
this option for version of gcc which are known to support it.
Therefore, the tests have been updated to use the result of
the existing ZFS_AC_CONFIG_ALWAYS_NO_UNUSED_BUT_SET_VARIABLE
which determines if gcc supports this option.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closesopenzfs#1004
A user reported to me in IRC that he has a build failure with GCC 4.3.4 on Gentoo. The key line from the config.log file is
cc1: error: unrecognized command line option "-Wunused-but-set-variable"
.It appears that GCC 4.3.4 does not support -Wunused-but-set-variable. We can make this work either by checking for compiler support for -Wunused-but-set-variable and enabling it only when GCC supports it or by eliminating the need for it from tests.
Here are the pastes that he provided to me:
http://pastebin.com/A32WpxmB
http://pastebin.com/SiSkvmVZ
Note that while he is using Gentoo Hardened, the hardening appears to be irrelevant here. I consider this to be a low priority issue, although I am opening an issue to track it anyway.
The text was updated successfully, but these errors were encountered: