Bug 161791 - Package builds unconditionally as -march=pentium4
Package builds unconditionally as -march=pentium4
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gmp (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Woerner
Depends On:
  Show dependency treegraph
Reported: 2005-06-27 09:27 EDT by Steve Snyder
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-08-01 10:37:27 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 Steve Snyder 2005-06-27 09:27:57 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050520 Fedora/1.7.8-1.icc

Description of problem:
The gmp-4.1.4-3 package unconditionally builds with 'CFLAGS="-O2 -g -march=pentium4"'.  This creates the potential for the compiler to generate instruction that are not supported on the current system.  Seen on a fully-updated Pentium3 machine.

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

How reproducible:

Steps to Reproduce:
1.Rebuild binary packages or edit gmp.spec.
2.Notice compiler is building with Pentium4 instruction set.

Actual Results:  Rebuilt on P3 machine, saw -march=pentium4 on compiler command line.  Yikes!

Expected Results:  Build should respect RPM_OPT_FLAGS.

Additional info:
Comment 1 Steve Snyder 2006-01-26 11:24:57 EST
Seven months and this bug is still New?  I would have guessed that the
generation of potentially illegal instructions merited more attention.

Comment 2 Thomas Woerner 2006-01-26 11:46:45 EST
Please give an example, when it was built as pentium4?

BTW: Here is an excerpt of the spec file:

# Important for %{ix86}:
# This rpm has to be build on a CPU with sse2 support like Pentium 4 !

The sse2 DSOs gets built additionally to the i386 DSOs.

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