Red Hat Bugzilla – Bug 183161
Fails to properly set '-mtune' and '-march' parameters during tests
Last modified: 2007-11-30 17:11:25 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux 2.6.15-1.1831_FC4; X11; i686; en_US) KHTML/3.5.1 (like Gecko)
Description of problem:
The test portion of gmp-4.1.4-6.src.rpm fails to properly set the '-mtune' and
'-march' parameters regardless of the '--target' command line option.
During the build of the program itself, both '-mtune' and '-march' are set
properly. However, during the build of the tests, '-march' is set to
'pentium4' and '-mtune' does not exist. Since '-mtune' is not specified, gcc
assumes the value for '-mtune' is the same as '-march'.
If the architecture on which the package is being compiled does not support
some of the more advanced instructions of the pentium4, like sse2, the tests
will fail, resulting in an inability to build the package.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Simply execute the following command on architectures that do not support the
more advanced instructions:
rpmbuild --rebuild gmp-4.1.4-6.src.rpm
Actual Results: make attempted to execute instructions not supported by the compiling
architecture during the tests, which resulted in the tests failing.
Expected Results: make should have never built the tests with instruction not supported by the
architecture, which would have resulted in successful test, and subsequently,
a successful build.
I tried it both with the '--target=i686' and without the '--target' command
line option. Results were the same both times.
Since the package won't build regardless of the '--target' command line option
on architectures that don't support the test, I set the priority to normal.
Created attachment 125297 [details]
Attempted build of gmp-4.1.4-6.src.rpm
Which architecture has the machine, where you are building this packages?
Unfortunately there's not enough information here, therefore closing this
bugzilla. Please re-open if needed.