Bug 741637

Summary: debuginfo: Forced -gdwarf-X is not compliant with the rest of the system
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: xulrunnerAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 14CC: gecko-bugs-nobody, jhorak, johnp, jrb, mcepl, mcepl, stransky, walters
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-30 11:57:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Kratochvil 2011-09-27 13:34:17 UTC
Description of problem:
It is built with -gdwarf-2 while Fedora already uses -gdwarf-3 or -gdwarf-4.

Version-Release number of selected component (if applicable):
xulrunner-debuginfo-1.9.2.22-1.fc14.x86_64
It affects also F15, F16 and Rawhide.

How reproducible:
Always.

Steps to Reproduce:
readelf -wi /usr/lib/debug/usr/lib64/xulrunner-1.9.2/libxul.so.debug
readelf -wi /usr/lib/debug/bin/bash.debug

Actual results:
   Version:       2
   Version:       3

Expected results:
   Version:       3
   Version:       3

Additional info:
It probably affects also the firefox package etc.

xulrunner-mozconfig-debuginfo:export CFLAGS="$CFLAGS -gdwarf-2"
xulrunner-mozconfig-debuginfo:export CXXFLAGS="$CXXFLAGS -gdwarf-2"
 - this is wrong, you should use %optflags.

Comment 1 Matěj Cepl 2011-09-27 14:22:19 UTC
This bug has been triaged

Comment 2 Jan Horak 2012-03-30 11:57:50 UTC
Sorry, we can't fix that. We are using Mozilla's crash reporter and Mozilla still use -gdwarf-2 so we have to keep that. 
See:
http://hg.mozilla.org/build/buildbot-configs/file/63811c8bd2e8/mozilla2/linux/mozilla-release/release/mozconfig