Bug 315551 - RPM_OPT_FLAGS is wrong on x86_64
Summary: RPM_OPT_FLAGS is wrong on x86_64
Keywords:
Status: CLOSED DUPLICATE of bug 305221
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 8
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-02 16:04 UTC by Andrew Haley
Modified: 2007-11-30 22:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-03 05:28:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrew Haley 2007-10-02 16:04:08 UTC
Description of problem:

When building an RPM, I get

aph jc1: error: unrecognized command line option "-fmtune=generic"

And this is because rpmrc copntains the illegal gcc option --mtune=generic.

It should be  -mtune=generic (one dash)

/usr/lib/rpm/ia32e-linux/macros:11:%optflags            -O2 -g -m64 --mtune=generic
/usr/lib/rpm/rpmrc:25:optflags: ia64 -O2 -g -m64 --mtune=generic
/usr/lib/rpm/rpmrc:26:optflags: x86_64 -O2 -g -m64 --mtune=generic
/usr/lib/rpm/rpmrc:28:optflags: ia32e -O2 -g -m64 --mtune=generic
/usr/lib/rpm/x86_64-linux/macros:11:%optflags           -O2 -g -m64 --mtune=generic

Comment 1 Panu Matilainen 2007-10-03 05:28:18 UTC
Install redhat-rpm-config for immediate fix (you'll want to have it installed
anyway if you're building packages), the rpm default is already fixed upstream
and will be in F8 final.

*** This bug has been marked as a duplicate of 305221 ***


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