Closed
Bug 1497583
Opened 6 years ago
Closed 6 years ago
build dump_syms for the host in aarch64 windows builds
Categories
(Firefox Build System :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: froydnj, Assigned: gsvelto)
References
(Blocks 1 open bug)
Details
We check for Microsoft's DIA toolkit:
https://dxr.mozilla.org/mozilla-central/source/old-configure.in#189
and then we use that information to control whether dump_syms is built on the host or not:
https://dxr.mozilla.org/mozilla-central/source/toolkit/crashreporter/moz.build#38
The only problem here is that the first check is a *target* check, not a *host* check, so when we're cross-compiling and the target doesn't have support, we don't build dump_syms, even if the host might have support.
This affects our ability to dump symbols for AArch64 Windows builds.
Comment 1•6 years ago
|
||
We could probably just move that check to windows.configure and handle it properly.
Assignee | ||
Comment 3•6 years ago
|
||
Sure, I'll take it.
Assignee: nobody → gsvelto
Flags: needinfo?(gsvelto)
Comment 4•6 years ago
|
||
Theoretically, there's a problem, but in practice, there isn't one. All that's missing is the DIA SDK path in INCLUDE for the aarch64 builds, which bug 1514209 adds.
Assignee | ||
Comment 5•6 years ago
|
||
I managed to build dump_syms but I also had to add "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\lib\amd64" to the HOST_LDFLAGS otherwise it would try to link the binary with the ARM64 version of diaguids.lib.
Comment 6•6 years ago
|
||
Ah yeah, we definitely don't have host vs. target DIA SDK bits AFAIK, although we only ever need it for the host so it shouldn't be hard to fix.
Reporter | ||
Comment 7•6 years ago
|
||
My understanding from bug 1513284 comment 10 is that this already works, assuming you have the correct flags in HOST_LDFLAGS. So there's nothing to fix here, correct, Gabriele?
Flags: needinfo?(gsvelto)
Assignee | ||
Comment 8•6 years ago
|
||
Yes, you only need the "lib/amd64" folder of the DIA SDK in HOST_LDFLAGS and the "include" folder in the CPPFLAGS.
Flags: needinfo?(gsvelto)
Reporter | ||
Comment 9•6 years ago
|
||
OK, marking this bug as such then.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•