[Webkit-unassigned] [Bug 222480] New: [GTK] Fails to build in i386: static assertion failed: divisor must be a power of two

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 26 09:44:03 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=222480

            Bug ID: 222480
           Summary: [GTK] Fails to build in i386: static assertion failed:
                    divisor must be a power of two
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: berto at igalia.com
                CC: bugs-noreply at webkitgtk.org

I can reproduce this with WebKitGTK 2.31.90:

In file included from DerivedSources/ForwardingHeaders/wtf/FastMalloc.h:26,
                 from ../Source/WebKit/config.h:42,
                 from DerivedSources/WebKit/WebPageProxyMessageReceiver.cpp:25:
DerivedSources/ForwardingHeaders/wtf/StdLibExtras.h: In instantiation of ‘constexpr size_t WTF::roundUpToMultipleOf(size_t) [with unsigned int divisor = 48; size_t = unsigned int]’:
../Source/WebKit/Platform/IPC/StreamConnectionBuffer.h:117:96:   required from here
DerivedSources/ForwardingHeaders/wtf/StdLibExtras.h:187:27: error: static assertion failed: divisor must be a power of two!
  187 |     static_assert(divisor && !(divisor & (divisor - 1)), "divisor must be a power of two!");
      |                   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

As you can see 'divisor' is 48, I suspect that the problem is in sizeof(Header) due to the differences in size_t between 32-bit and 64-bit platforms:

https://trac.webkit.org/browser/webkit/trunk/Source/WebKit/Platform/IPC/StreamConnectionBuffer.h?rev=273204#L117

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210226/37cc10b9/attachment-0001.htm>


More information about the webkit-unassigned mailing list