Bug 994274

Summary: please remove -grecord-gcc-switches in "macros"
Product: [Fedora] Fedora Reporter: Mr-4 <mr.dash.four>
Component: redhat-rpm-configAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jonathan, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-07 06:43:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mr-4 2013-08-06 23:30:56 UTC
Description of problem:
When using rpmbuild with older gcc versions (4.4.x, 4.5.x etc) the compiler cannot produce executables.

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

How reproducible:
always

Steps to Reproduce:
1. rpmbuild -bb <spec_file>
2.
3.

Actual results:
An error is produced during configure/compile state due to the wrong option used as indicated above.

Expected results:
No errors to be produced.

Additional info:
This is produced as a result of the inclusion of "-grecord-gcc-switches" option in the %__global_cflags macro included in "macros", which is NOT a valid gcc option on older version of the compiler. Please remove it.

Comment 1 Panu Matilainen 2013-08-07 06:43:44 UTC
The default compilation flags in redhat-rpm-config are strictly for the gcc shipped with the distro only. If you want to compile with something else you need to set your own defaults.