| Summary: | REGRESSION(r288200): [GTK][WPE] Build broken on Ubuntu 18.04 and Debian 10 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Diego Pino <dpino> | ||||||
| Component: | New Bugs | Assignee: | Diego Pino <dpino> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aperez, benjamin, bugs-noreply, cdumez, cmarcelo, darin, ews-watchlist, keith_miller, mark.lam, mcatanzaro, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=235336 https://bugs.webkit.org/show_bug.cgi?id=236036 |
||||||||
| Attachments: |
|
||||||||
|
Description
Diego Pino
2022-01-20 06:37:54 PST
Created attachment 449570 [details]
Patch
Comment on attachment 449570 [details]
Patch
So RELEASE_ASSERT_UNDER_CONSTEXPR_CONTEXT doesn't actually work. Sigh.
Please use IGNORE_RETURN_TYPE_WARNINGS_BEGIN/END then, to avoid reintroducing -Wreturn-type.
Actually, maybe we can fix it. Created attachment 449574 [details]
Patch
I think this will work, but I haven't tested it on Ubuntu 18.04. If it doesn't work, then IGNORE_RETURN_TYPE_WARNINGS_BEGIN/END is the easy solution. CRASH_UNDER_CONSTEXPR_CONTEXT needs to be fixed to work on Ubuntu; if not to fix this bug, in the future. Note it's only a problem for old compiler versions. (Normal RELEASE_ASSERT() seems to work perfectly fine under constexpr already, so there doesn't seem to be a need for the _UNDER_CONSTEXPR_CONTEXT versions anymore with newer GCC, unless Clang doesn't like it.) I tested Michael's patch on Ubuntu 18.04 and it builds fine. It seems this build error is also happening in Debian 10. Debian 10 uses GCC8.3. https://build.webkit.org/#/builders/46 Since this is a build break, I will land it unreviewed. Actually... a change in fundamental macros like this should be approved by one other reviewer. I will ping some reviewers. Comment on attachment 449574 [details] Patch It looks like making the constexpr-crash version of the macros expand to the corresponding implementation (as done in your patch) should have been part of the fix for bug #186536 but we missed the change there =) Committed r288459 (246345@main): <https://commits.webkit.org/246345@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449574 [details]. |