Bug 58873 - wrong $RPM_OPT_FLAGS on i586 systems
Summary: wrong $RPM_OPT_FLAGS on i586 systems
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
(Show other bugs)
Version: 7.2
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-26 06:38 UTC by Florin Andrei
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-01-26 06:38:33 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Florin Andrei 2002-01-26 06:38:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20020104

Description of problem:
On i586 systems (old Pentiums), rpm picks up wrong $RPM_OPT_FLAGS. It generates
"-O2 -march=i386 -mcpu=i686" when the right flags should be "-O2 -march=i386
-mcpu=i586".
I see that on my old Pentium 100 system; when i rebuild rpms that use
$RPM_OPT_FLAGS, the programs are always compiled with -mcpu=i686, instead of
-mcpu=i586

This is my system:
[root@weiqi root]# cat /proc/cpuinfo 
processor
: 0
vendor_id
: GenuineIntel
cpu family	: 5
model
	: 2
model name	: Pentium 75 - 200
stepping
: 6
cpu MHz		: 100.228
fdiv_bug
: no
hlt_bug
	: no
f00f_bug
: yes
coma_bug
: no
fpu
	: yes
fpu_exception
: yes
cpuid level	: 1
wp
	: yes
flags
	: fpu vme de pse tsc msr mce cx8
bogomips
: 199.88

[root@weiqi root]# uname -a
Linux weiqi.home.local 2.4.9-13 #1 Tue Oct 30 19:31:55 EST 2001 i586 unknown

This is what happens when i do a "rpm -ba" to the Pure-FTPd spec file:
[root@weiqi root]# cat /var/tmp/rpm-tmp.3705 
#!/bin/sh

  RPM_SOURCE_DIR="/usr/src/redhat/SOURCES"
  RPM_BUILD_DIR="/usr/src/redhat/BUILD"
  RPM_OPT_FLAGS="-O2 -march=i386 -mcpu=i686"
  RPM_ARCH="i386"
  RPM_OS="linux"


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install RH 7.2 on an old Pentium system
2. Try to rebuild a rpm from src.rpm
3. Watch the compile flags
	

Actual Results:  The compile flags picked by rpm are "-O2 -march=i386 -mcpu=i686"

Expected Results:  The compile flags should be "-O2 -march=i386 -mcpu=i586"

Additional info:

Comment 1 Jeff Johnson 2002-01-26 09:45:04 UTC
No, this is the correct default configuration. The -mcpu=i686
sez' optimize instruction scheduling for an i686. The produced
bits will run on an i586.


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