Closed Bug 1665160 Opened 4 years ago Closed 4 years ago

"dom/base/nsDocumentEncoder.cpp(1739,48): error: expected unqualified-id" build bustage with --disable-accessibility

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- unaffected
firefox81 --- unaffected
firefox82 --- wontfix
firefox83 --- wontfix
firefox84 --- wontfix
firefox85 --- fixed

People

(Reporter: RyanVM, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 obsolete file)

The changes to nsDOMNavigationTiming.cpp from bug 1657188 are triggering local build bustage for me:
https://hg.mozilla.org/integration/autoland/diff/dc8d6a216ffa28165acaf67ddc2e88974d95a8e9/dom/base/nsDOMNavigationTiming.cpp

In file included from Unified_cpp_dom_base8.cpp:38:
C:/Users/Ryan/repos/mozilla/dom/base/nsDocumentEncoder.cpp(1739,48): error: expected unqualified-id
      nsGkAtoms::s, nsGkAtoms::big, nsGkAtoms::small, nsGkAtoms::strike,
                                               ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared/rpcndr.h(190,15): note: expanded from macro 'small'
#define small char
              ^

Talking to Barret about it on Slack, this is probably due to the newly-added includes bringing in windows.h somewhere it didn't used to be. While this is currently only affecting my local build, this can presumably strike in CI at some point in the future if/when the unified file boundaries change from where they currently are.

The attached patch works locally. We could also probably move nsDOMNavigationTiming.cpp out of UNIFIED_FILES to hack around this if the undef option isn't preferred.

Assignee: nobody → ryanvm
Status: NEW → ASSIGNED

Also, this is trivially-reproducible on Try by disabling a11y.
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=316081734&repo=try&lineNumber=19140

Summary: "dom/base/nsDocumentEncoder.cpp(1739,48): error: expected unqualified-id" build bustage → "dom/base/nsDocumentEncoder.cpp(1739,48): error: expected unqualified-id" build bustage with --disable-accessibility
Severity: -- → S3
Priority: -- → P2

This was "fixed" by way of bug 1679422 moving nsDocumentEncoder.cpp to a different directory and changing the unified build layout enough to avoid the problematic arrangement.

Assignee: ryanvm → nobody
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
Attachment #9175849 - Attachment is obsolete: true
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: