Closed Bug 1448378 Opened 7 years ago Closed 7 years ago

win64-asan builds broken with: crashinject.pdb has an unexpected dependency on ../../dist/bin/crashinject.exe which breaks INSTALL_TARGETS.

Categories

(Firefox Build System :: General, defect)

3 Branch
defect
Not set
normal

Tracking

(firefox61 fixed)

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: away, Assigned: away)

References

Details

Attachments

(1 file)

No description provided.
Blocks: winasan
Specifically I think this is a bad interaction between bug 1360650 and bug 1255485. I probably wrote the patches for the latter before the former landed and forgot to update them accordingly. This is the code that's causing the issue: https://dxr.mozilla.org/mozilla-central/rev/6ff60a083701d08c52702daf50f28e8f46ae3a1c/config/rules.mk#822 I think the issue here is the `$(call syms_template,$(file),$(addsuffix .pdb,$(basename $(file)))`, which now winds up expanding to something like: ``` syms:: crashinject.pdb crashinject.pdb: ../../dist/bin/crashinject.exe ifdef MOZ_CRASHREPORTER $$(call py_action,dumpsymbols,$$(abspath $$<) $$(abspath $$@)) endif ``` I wonder if we can fix this by simply removing that line and instead changing the target to `syms`, like `PDB_TARGET = syms`? That way when we build the `syms` target in automation we'd wind up copying the .pdb files, but we wouldn't otherwise introduce the pdb: exe dependency.
Assignee: nobody → dmajor
Attachment #8962454 - Flags: review?(core-build-config-reviews)
Forgot to mention: IIUC, with this change, we'll stop generating symbols packages for st-an and friends who have MOZ_AUTOMATION_BUILD_SYMBOLS=0 -- which I think is actually the desired behavior anyway.
Comment on attachment 8962454 [details] [diff] [review] Fix build and symbols for Windows ASan Review of attachment 8962454 [details] [diff] [review]: ----------------------------------------------------------------- I think Ted has previously OK'd the rules.mk change (or at least said it was sensible), and the recurse.mk change seems obvious in retrospect.
Attachment #8962454 - Flags: review?(core-build-config-reviews) → review+
Pushed by dmajor@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4aa4e013ab72 Fix build and symbols on Windows ASan. r=froydnj
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Version: Version 3 → 3 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: