Closed Bug 623183 Opened 14 years ago Closed 9 years ago

Build dump_syms locally if possible on Windows

Categories

(Toolkit :: Crash Reporting, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: ted, Assigned: poiru)

References

Details

Attachments

(1 file, 2 obsolete files)

bug 575519 is a band-aid for an annoying situation. We have a checked-in binary of dump_syms.exe on Windows, because it requires VC++ Pro to build it (but it will run with VC++ Express). However, it depends on the specific version of the DIA DLLs installed with the compiler, so the VC8 binary that's checked in won't work if you don't have VC8 installed. The band-aid is just to add a VC9 copy, but then we're still broken if someone has only VC10 installed. We should just add a configure test to see if we can build it, and if so, build a local copy instead of relying on the checked-in binary. That way, if a user has VC++ Pro, they don't have to worry about what binaries we have in-tree.
Attached patch win host dump_syms.exe (obsolete) (deleted) — Splinter Review
Attached patch Build dump_syms on Windows when using VS2015 (obsolete) (deleted) — Splinter Review
This will compile with any version of VS2015 (even the free Community version has the DIA SDK and ATL). Note that mozilla-build does not add the DIA SDK to INCLUDE/LIB at the moment. I won't land that until we release a fixed mozilla-build.
Assignee: nobody → birunthan
Attachment #657524 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8703424 - Flags: review?(ted)
Blocks: 1198374, VC14
Comment on attachment 8703424 [details] [diff] [review] Build dump_syms on Windows when using VS2015 Review of attachment 8703424 [details] [diff] [review]: ----------------------------------------------------------------- Cool, this has always bothered me! This might conflict slightly with my patches in bug 1069556, but I don't think it'll be too bad. ::: Makefile.in @@ +193,5 @@ > MAKE_SYM_STORE_ARGS := -c --vcs-info > ifdef PDBSTR_PATH > MAKE_SYM_STORE_ARGS += -i > endif > +ifeq ($(shell test $(_MSC_VER) -ge 1900; echo $$?),0) Put this test in configure somewhere and AC_SUBST a special var for it. (Alternately, just set DUMP_SYMS_BIN completely in configure and AC_SUBST it).
Attachment #8703424 - Flags: review?(ted)
Attachment #8726830 - Flags: review?(ted)
Attachment #8703424 - Attachment is obsolete: true
Comment on attachment 8726830 [details] [diff] [review] Build dump_syms on Windows when using VS2015 Review of attachment 8726830 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks! Presumably we can remove all the conditionals if we drop support for MSVC 2013 in the future?
Attachment #8726830 - Flags: review?(ted) → review+
Comment on attachment 8726830 [details] [diff] [review] Build dump_syms on Windows when using VS2015 Review of attachment 8726830 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/crashreporter/google-breakpad/src/tools/windows/dump_syms/moz.build @@ +6,5 @@ > + > +HostProgram('dump_syms') > + > +HOST_SOURCES += [ > + '../../../common/windows/guid_string.cc', '../../../common/windows/omap.cc' needs to be added.
Comment on attachment 8726830 [details] [diff] [review] Build dump_syms on Windows when using VS2015 Review of attachment 8726830 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/crashreporter/google-breakpad/src/tools/windows/dump_syms/moz.build @@ +6,5 @@ > + > +HostProgram('dump_syms') > + > +HOST_SOURCES += [ > + '../../../common/windows/guid_string.cc', We also need dia_util.cc from the same directory as everything else. I can confirm dump_syms builds with dia_util.cc and omap.cc added.
Since I had made the changes to add the 2 missing source files, I just figured I'd land those.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Depends on: 1254967
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: