Closed Bug 468622 Opened 16 years ago Closed 15 years ago

Mac: generate breakpad .sym from dwarf symbols instead of stabs

Categories

(Thunderbird :: Build Config, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gozer, Assigned: gozer)

References

Details

Following Firefox bug 421534, we can now change

CFLAGS="-gstabs -gfull -save-temps"

to

CFLAGS="-gdwarf-2"

just like in attachemnt 351887
We have to wait for http://hg.mozilla.org/mozilla-central/rev/ede5b83266d3 to land on releases/mozilla-1.9.1 before we can do this.

Should have mentionned it.
Upadted our mozconfigs in:

changeset:   610:e8136d10509d
tag:         tip
user:        Philippe M. Chiasson <gozer@mozillamessaging.com>
date:        Mon Dec 22 13:56:11 2008 -0500
summary:     Bug 468622. Switch symbol generation to dwarf-2 on OS X. r=me
Great, this is failing with the following ld error:

ld: jslong.o r_address (0x10a9db) field of relocation entry 3 in section (__DWARFA,__debug_info) out of range
Backed out 610:e8136d10509d

changeset:   612:0c6c1dbcb10f
parent:      610:e8136d10509d
user:        Philippe M. Chiasson <gozer@mozillamessaging.com>
date:        Mon Dec 22 14:25:58 2008 -0500
summary:     Bug 468622. Backing out Dwarf-2 support on OS X, it's causing breakage. r=me
Weird, sounds like an Apple GCC bug. I'd look to see if there's a newer version of Xcode available for 10.4 that might fix this. (Alternately, you could try to spin up some 10.5 build machines.)
I've had some promising success with XCode 2.5, so that might be the only upgrade that's needed. Running a full build with XCode 2.5/dwarf-2 right now, I'll report how it went once it completes.
A full, universal build with XCode 2.5 worked just fine, so the next step is upgrading XCode on the osx builders.
bm-xserve07 has been upgraded to XCode 2.5
XCode 2.5 clobber build completed successfully:

Full log is here: http://tinderbox.mozilla.org/showlog.cgi?log=Thunderbird3.0/1230046312.1230052015.14767.gz&fulltext=1

It did have an impact on measured code size:

mZdiff:+73732 (+106364/-32632)

Full codesize log is here:

http://build.mozillamessaging.com/buildbot/production/builders/MacOSX%2010.4%20comm-central%20build/builds/4585/steps/shell_20/logs/stdio
Re-enabled dwarf-2 support for Thunderbird dep/nightlies only:

changeset:   615:c80750187b86
tag:         tip
user:        Philippe M. Chiasson <gozer@mozillamessaging.com>
date:        Tue Dec 23 12:03:38 2008 -0500
summary:     Bug 468622. Re-enable dwarf-2 debugging on OS X, now that we have XCode 2.5. r=me
Forced a nightly with the new dwarf-2 code, and it completed successfully, with what looks like good symbols:

http://symbols.mozilla.org/thunderbird/thunderbird-3.0b2pre-Darwin-20081223124603-symbols.txt
I've also had success with submitting a crash with the latest build (having not been able to for ages):

http://crash-stats.mozilla.com/report/index/676daf46-1c3a-440e-9ae3-60dd82081223
In that case, I think it's fair to call this bug closed!
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.