Red Hat Bugzilla – Bug 144035
gcc BuildRequires needs to be updated in srpm
Last modified: 2015-01-04 17:14:40 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3)
Description of problem:
The "-mtune=pentium4" inserted by patch 212 requires a newer version
of gcc, 3.4. Gcc 3.3 and older do not support the -mtune for i386
processors. The "buildrequires" should be updated to make it clear
which compiler is needed to build the source rpm.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install the srpm on a RHEL 3
2. attempt a "rpmbuild --target=i686 kernel-2.6.spec"
Actual Results: Will see the following error during the build
cc1: invalid option `tune=pentium4'
make: *** [scripts/mod/empty.o] Error 1
make: *** [scripts/mod] Error 2
make: *** [scripts] Error
Expected Results: Binary rpms built without error for i686.
Created attachment 109295 [details]
check for appropriate compiler, 3.4
dropped for the fc3 kernel. buildreq updated for fc4. thanks.