Bug 246447 - [GCC] Build error in Ubuntu 20.04 after 255095@main
Summary: [GCC] Build error in Ubuntu 20.04 after 255095@main
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-13 01:00 PDT by Diego Pino
Modified: 2022-10-13 17:24 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Pino 2022-10-13 01:00:43 PDT
The Ubuntu 20.04 bot is failing with the following error:

```
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/css/StyleColor.h:53:50: error: ‘bool WebCore::CurrentColor::operator==(const WebCore::CurrentColor&) const’ cannot be defaulted
   53 |     bool operator==(const CurrentColor&) const = default;
      |                                                  ^~~~~~~
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/css/StyleColor.h:78:48: error: ‘bool WebCore::StyleColor::operator==(const WebCore::StyleColor&) const’ cannot be defaulted
   78 |     bool operator==(const StyleColor&) const = default;
      |                                                ^~~~~~~
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/platform/text/TextFlags.h:166:65: error: ‘bool WebCore::FontVariantAlternatesNormal::operator==(const WebCore::FontVariantAlternatesNormal&) const’ cannot be defaulted
  166 |     bool operator==(const FontVariantAlternatesNormal&) const = default;
      |                                                                 ^~~~~~~
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/platform/text/TextFlags.h:170:65: error: ‘bool WebCore::FontVariantAlternatesValues::operator==(const WebCore::FontVariantAlternatesValues&) const’ cannot be defaulted
  170 |     bool operator==(const FontVariantAlternatesValues&) const = default;
      |                                                                 ^~~~~~~
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebCore/platform/text/TextFlags.h:187:59: error: ‘bool WebCore::FontVariantAlternates::operator==(const WebCore::FontVariantAlternates&) const’ cannot be defaulted
  187 |     bool operator==(const FontVariantAlternates&) const = default;
      |                                                           ^~~~~~~
```

Ubuntu 20.04 uses GCC9.3 It seems this version doesn't support default initialiaation of `operator==`. Also `operator!=` needs explicity definition.
Comment 1 Matthieu Dubet 2022-10-13 02:07:42 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5322
Comment 2 Alexey Proskuryakov 2022-10-13 17:23:40 PDT
This was fixed via a different PR:

Committed 255482@main (a994d17): https://commits.webkit.org/255482@main

Reviewed commits have been landed. Closing PR #5321 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-10-13 17:24:22 PDT
<rdar://problem/101151548>