Closed Bug 1831086 Opened 3 years ago Closed 3 years ago

Windows build failure: winsock2.h(4150,5): error: unknown type name 'UBLAH_IGNORE_ME_PLEASE'

Categories

(Firefox Build System :: General, defect, P3)

Unspecified
Windows
defect

Tracking

(firefox-esr102 unaffected, firefox112 unaffected, firefox113 unaffected, firefox114 wontfix, firefox115 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox112 --- unaffected
firefox113 --- unaffected
firefox114 --- wontfix
firefox115 --- fixed

People

(Reporter: RyanVM, Assigned: sergesanspaille)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 external file)

This may require ac_add_options --enable-bootstrap=-vs to reproduce as it could be an issue with newer Windows SDKs only. Seems like maybe we should have an ifdef/undef for this define to avoid collisions from system headers?

In file included from Unified_cpp_transport_ipc0.cpp:11:
In file included from C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/ipc/StunAddrsRequestParent.cpp:19:
In file included from C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/third_party/nICEr/src/net\local_addr.h:39:
In file included from C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/third_party/nICEr/src/net/transport_addr.h:50:
C:/PROGRA~2/WI3CF2~1/10/Include/10.0.22621.0/um\winsock2.h(4149,5): error: unknown type name 'UBLAH_IGNORE_ME_PLEASE'
    UINT8 operation;
    ^
C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/third_party/nICEr/src/net/transport_addr.h(48,15): note:
 expanded from macro 'UINT8'
#define UINT8 UBLAH_IGNORE_ME_PLEASE
              ^

Set release status flags based on info from the regressing bug 1830038

:sergesanspaille, since you are the author of the regressor, bug 1830038, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Severity: -- → S3
Priority: -- → P3

It's on me... very strange that it didn't get caught by CI, I'll have a look, thanks for reporting!

Flags: needinfo?(sguelton)

Set release status flags based on info from the regressing bug 1830038

Ryan, do you also have the issue when building in non-unified build (i.e. through ac_add_options --disable-unified-build) ?

Flags: needinfo?(ryanvm)

Same failure with non-unified builds.

In file included from C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/ipc/StunAddrsRequestParent.cpp:19:
In file included from C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/third_party/nICEr/src/net\local_addr.h:39:
In file included from C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/third_party/nICEr/src/net/transport_addr.h:50:
C:/PROGRA~2/WI3CF2~1/10/Include/10.0.22621.0/um\winsock2.h(4150,5): error: unknown type name 'UBLAH_IGNORE_ME_PLEASE'
    UINT8 triggerFlags;
    ^
C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/third_party/nICEr/src/net/transport_addr.h(48,15): note:
 expanded from macro 'UINT8'
#define UINT8 UBLAH_IGNORE_ME_PLEASE
              ^
BUILDSTATUS OBJECT_FILE ScriptableContentIterator.obj
Flags: needinfo?(ryanvm)

ok... my udnerstanding is that some windows header are included before we hook in winsock2.h, and that depends on your particular system's header... could you share the preprocessed version of C:/Users/Ryan/repos/mozilla/dom/media/webrtc/transport/ipc/StunAddrsRequestParent.cpp ?

This issue also occurs when cross-compiling from Linux -> Windows, with the 10.0.22621.0 SDK.
I've attached the preprocessed unified build file, compressed as a zip as it's ~24MiB uncompressed.

Assignee: nobody → sguelton
Status: NEW → ASSIGNED
Attachment #9333284 - Attachment description: Bug 1831086 - Patch winsock2.h to include missing types r=RyanVM → Bug 1831086 - Patch winsock2.h usage in nICEr to include missing types r=RyanVM!
Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/552debecaf11 Patch winsock2.h usage in nICEr to include missing types r=RyanVM
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

The patch landed in nightly and beta is affected.
:sergesanspaille, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox114 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(sguelton)
Flags: needinfo?(sguelton)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: