Closed Bug 770900 Opened 13 years ago Closed 13 years ago

No debugging symbols generated for Firefox on x86-64 Linux (with all relevant options on)

Categories

(Firefox :: Untriaged, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: shlomif, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1 Build ID: 20120616022601 Steps to reproduce: I've ran "make -f client.mk" and "make -f client.mk install" with this .mozconfig: <<< . $topsrcdir/browser/config/mozconfig export LDFLAGS="-Wl,--no-keep-memory" mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-dbg ac_add_options --disable-optimize ac_add_options --enable-debug ac_add_options --enable-tests ac_add_options --enable-debug-symbols ac_add_options --prefix="$HOME/apps/net/www/firefox-hg" >>> On Mageia Linux 2 x86-64 on my Acer laptop. I've based my build on the mozilla-central revision 98255:87db9617a885e7bac31d9e724facf9f0ad3a6c50 with a small patch to get the build to work here. Actual results: When running gdb against firefox or firefox-bin, the stack trace is full of question marks instead of symbols: #0 0x00007ffff1ad741d in ?? () from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/libxul.so #1 0x00007ffff1b593c3 in ?? () from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/libxul.so #2 0x00007ffff1b5932c in ?? () from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/libxul.so #3 0x00007ffff1b59151 in ?? () from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/libxul.so #4 0x00007ffff3444e3b in ?? () from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/libxul.so #5 0x00007ffff33d8c2f in ?? () from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/libxul.so #6 0x00007ffff3228a80 in ?? () from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/libxul.so #7 0x00007ffff3496577 in ?? () Expected results: There should be debug symbols.
The symbols are stripped when installing. You can either ask the build system not to strip when installing with make -f client.mk install PKG_SKIP_STRIP=1 Or point gdb to the symbols location (set debug-file-directory)
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
> Or point gdb to the symbols location (set debug-file-directory) (You can point it to objdir/dist/bin)
This is the patch I used to get the trunk to build. Part of it is based on the recommendation in: https://bugzilla.mozilla.org/show_bug.cgi?id=759320 I suggest adding the part with the " | xargs rm" ==> " | xargs rm -f".
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: