Bug 162862 - RPM_OPT_FLAGS -m64 -mtune=nocona not valid for gcc32
RPM_OPT_FLAGS -m64 -mtune=nocona not valid for gcc32
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config (Show other bugs)
4
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-10 15:06 EDT by Adam Pribyl
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-13 14:04:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Adam Pribyl 2005-07-10 15:06:30 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050511

Description of problem:
File /usr/lib/rpm/redhat/rpmrc specifies RPM_OPT_FLAGS for x86_64 like:
optflags: x86_64 %{__global_cflags} -m64 -mtune=nocona

-mtune=nocona is however not valid for cc1 when gcc32 is used for compilation on this platform.

Version-Release number of selected component (if applicable):
redhat-rpm-config-8.0.34-1

How reproducible:
Always

Steps to Reproduce:
1. specify as compiler gcc32
2. try to rebuild rpm
3.
  

Actual Results:  configure will fail most times as gcc does not produces any valid result

Expected Results:  working rpm rebuild

Additional info:

I am not sure if this option is valid for x86_64 amd anyhow...
Comment 1 Elliot Lee 2005-07-13 14:04:31 EDT
Hi,

Unfortunately, the optflags are only intended to work with the main system
compiler (gcc). Using them with gcc32 is not supported. You may need to
customize any .spec files that use gcc32...

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