RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1028710 - gcc arguments used on the build system result in errors that cannot be disabled.
Summary: gcc arguments used on the build system result in errors that cannot be disabled.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: redhat-rpm-config
Version: 6.4
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: pre-dev-freeze
: 6.6
Assignee: Panu Matilainen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1028609
TreeView+ depends on / blocked
 
Reported: 2013-11-09 20:33 UTC by Brian Lane
Modified: 2014-01-16 12:02 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-16 12:02:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Brian Lane 2013-11-09 20:33:59 UTC
Description of problem:
On the el6 branch gcc is being called with options that result in warnings that cannot be disabled being treated as errors.

eg. http://kojipkgs.fedoraproject.org//work/tasks/8032/6158032/build.log

-Wno-unused-result was apparently added in gcc 4.5 so it cannot be used to disable the warning/error.

This must have changed since the last build of bip since the line in question has been in the source tree since 2005.

Comment 1 Rex Dieter 2013-11-10 00:34:45 UTC
Better to just not build with -Werror (which is arguably silly for release builds)

Comment 2 Dennis Gilmore 2013-11-10 04:13:36 UTC
moving to redhat-rpm-config and rhel, which is where it is all defined.

Comment 4 Panu Matilainen 2014-01-16 12:02:23 UTC
-Werror can be useful for development work but its a terrible idea to use it for "release builds" because of issues like this: compilers can and do grow new warnings over time so code which at some point compiled free of any warnings might trip tonnes of warnings with a later compiler version.

NOTABUG, just eliminate the -Werror usage.


Note You need to log in before you can comment on or make changes to this bug.