Red Hat Bugzilla – Bug 39243
/usr/lib/rpm/rpmrc optflags i386 fails on RH 5.2 on i486 machine
Last modified: 2008-05-01 11:38:00 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-126.96.36.199-14.i386.rpm, saying that the
are not found.
The problem is solved by commenting out the optflags: i386 and uncommenting
optflags: i386 -O2 -m386 -fno-strength=reduce
which, thankfully, is still in the file.
Steps to Reproduce:
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
Expected Results: rpm should build the rpm without
Additional info seems unnecessary because the fix is provided above.
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