Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 39243 - /usr/lib/rpm/rpmrc optflags i386 fails on RH 5.2 on i486 machine
/usr/lib/rpm/rpmrc optflags i386 fails on RH 5.2 on i486 machine
Product: Red Hat Linux
Classification: Retired
Component: rpm-build (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2001-05-06 00:50 EDT by Need Real Name
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-06 00:50:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-05-06 00:50:19 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19 i586; Nav)

Description of problem:
The /usr/lib/rpm/rpmrc file of rpm-build-4.02-5x contains the entry 
   optflags: i386 -O2 -march=i386 -mcpu-i686
This results in failure of configure scripts when compiling
(from www.openssh.com).  Gcc burps on the -march and -mcpu options.on a 
486 Red Hat 5.2 machine running gcg-, saying that the
are not found.  

The problem is solved by commenting out the optflags: i386 and uncommenting
the old
   optflags: i386 -O2 -m386 -fno-strength=reduce
which, thankfully, is still in the file. 

How reproducible:

Steps to Reproduce:
1. wget

2.rpm -ivh openssh*src.rpm
3.rpmbuild -ba openssh.spec

Actual Results:  rpm build reports an error from the /tmp script that is
used to configure and
compile openssh.

Expected Results:  rpm should build the rpm without 

Additional info:

Additional info seems unnecessary because the fix is provided above.
Comment 1 Jeff Johnson 2001-05-06 09:19:39 EDT
The other (and possibly better) alternative is to use egcs for compiling,
that's the compiler that was used for everything but the kernel in Red Hat 5.2.
Meanwhile, rpm tries to distribute a default configuration that is correct for

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