Bug 164063

Summary: rpm still uses deprecated "-mcpu="
Product: [Fedora] Fedora Reporter: Gene Czarcinski <gczarcinski>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
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: 2005-07-25 18:19:52 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 Gene Czarcinski 2005-07-23 19:55:24 UTC
Description of problem:

Fedora Core 4 has gcc-4 and gcc-4 has deprecated the "-mcpu=" parameter (you are
told to use "-mtune=" or "-march="

If rpmbuild is used with the default "i386" architecture then opflags specifies
    "-O2 -g -march=i386 -mcpu=i686"

I have at least one set of packages (nessus) which results in lots of errors if
"-mcpu=i686" is specified for the rpm build.  My current solution is to build
with --target i686

However, this should be fixed and "-mcpu=i686" whould be replaced with "-mtune=i686"

Comment 1 Paul Nasrat 2005-07-25 15:31:08 UTC
Do you have redhat-rpm-config installed?

Please install that for the Fedora specific optflags and confirm that using
march and mtune correctly.



Comment 2 Gene Czarcinski 2005-07-25 18:19:52 UTC
I ma closing this as not-a-bug.

Yes, I did have redhat-rpm-config installed BUT I am also using Mike Harris's
~/.rpmrc and ~/.rpmmacros so I can build packages as non-root and it appears
that the problem is with these two files (where exactly, I don't know yet).

With the files, I get -mcpu=i686 whereas without them I get -mtune=pentium4