Bug 164063 - rpm still uses deprecated "-mcpu="
Summary: rpm still uses deprecated "-mcpu="
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-23 19:55 UTC by Gene Czarcinski
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-07-25 18:19:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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