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

Build failure with GCC 4.3.4 #1004

Closed
ryao opened this issue Oct 3, 2012 · 0 comments
Closed

Build failure with GCC 4.3.4 #1004

ryao opened this issue Oct 3, 2012 · 0 comments
Labels
Type: Building Indicates an issue related to building binaries
Milestone

Comments

@ryao
Copy link
Contributor

ryao commented Oct 3, 2012

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.

unya pushed a commit to unya/zfs that referenced this issue Dec 13, 2013
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>
Closes openzfs#1004
pcd1193182 pushed a commit to pcd1193182/zfs that referenced this issue Sep 26, 2023
…zfs#1004)

Bumps [async-channel](https://github.com/smol-rs/async-channel) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/smol-rs/async-channel/releases)
- [Changelog](https://github.com/smol-rs/async-channel/blob/master/CHANGELOG.md)
- [Commits](smol-rs/async-channel@v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: async-channel
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Building Indicates an issue related to building binaries
Projects
None yet
Development

No branches or pull requests

2 participants