Bug 212583 - gcc generates warning due to use of -mcpu=i686 for i386 arch
Summary: gcc generates warning due to use of -mcpu=i686 for i386 arch
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-27 16:13 UTC by Michael McLagan
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-10 11:34:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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