Red Hat Bugzilla – Bug 164063
rpm still uses deprecated "-mcpu="
Last modified: 2007-11-30 17:11:10 EST
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"
Do you have redhat-rpm-config installed?
Please install that for the Fedora specific optflags and confirm that using
march and mtune correctly.
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