Bug 212583

Summary: gcc generates warning due to use of -mcpu=i686 for i386 arch
Product: [Fedora] Fedora Reporter: Michael McLagan <mmclagan>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-10 11:34:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael McLagan 2006-10-27 16:13:12 UTC
Description of problem:
The /usr/lib/rpm/rpmrc file makes use of -mcpu= for the optflags on various
architectures.  gcc issues a warning that this is deprecated.

Version-Release number of selected component (if applicable):

gcc-4.1.1-30
rpm-4.4.2-32

How reproducible:

always

Steps to Reproduce:
1. use rpmbuild on a spec file with i386 architecture
2.
3.
  
Actual results:
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.


Expected results:
no warning is issued

Additional info:

Comment 1 Jeff Johnson 2006-10-27 16:15:50 UTC
The default optflags carried in rpm configuration have been updated
for modern gcc a couple of months ago.

    UPSTREAM

Comment 2 Paul Nasrat 2006-10-28 10:08:14 UTC
Do you have redhat-rpm-config installed - that contains the distribution optflags.

This should have been installed if you selected the Software Development group
or do yum install "Development Tools"

Comment 3 Panu Matilainen 2007-08-10 11:34:41 UTC
Rpm.org now has updated optflags, but in Fedora context you'll need to have
redhat-rpm-config installed if you intend to build packages for it like
explained in c#2.