[Webkit-unassigned] [Bug 195937] New: WebKit failed to build due to error C2220 and warning C4245 on windows with MSVC

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 19 01:19:29 PDT 2019


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

            Bug ID: 195937
           Summary: WebKit failed to build due to error C2220 and warning
                    C4245 on windows with MSVC
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Windows 10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: 1998zhangyi at gmail.com

Created attachment 365135

  --> https://bugs.webkit.org/attachment.cgi?id=365135&action=review

log_x86_build

Environment:
VS 2017 + Windows Server 2016

Issue description:
We tried to build WebKit using VS2017 on Windows Server 2016. WebKit failed to build with error error C2220:static constexpr uint32_t s_refCountMask = ~0x1 and warning C4245:'initializing': conversion from 'int' to 'const uint32_t' on windows with MSVC.It should be source issue.Could you please help take a look at this? Thanks in advance!


Repro steps:
1. git clone https://github.com/WebKit/webkit d:\WebKit\src
2. open a VS 2017 x86 command prompt as admin and browse to D:\Webkit
3. extra WebKitSupportLibrary\win to D:\WebKit\src\WebKitLibraries\win
4. extra WebKitAuxiliaryLibrary\win to D:\WebKit\src\WebKitLibraries\win
5. set path=C:\gnuwin32\bin;%path%
6. cmake -G "Visual Studio 15 2017" -DCMAKE_SYSTEM_VERSION=10.0.17134.0 -DCMAKE_BUILD_TYPE=Release -DRUBY_LIBRARY=C:\Ruby25-x64\lib -DPORT="AppleWin" ..\src
7. msbuild /p:Configuration=Release;Platform=Win32 WebKit.sln /t:Rebuild

Actual result:
D:\WebKit\src\Source\WebCore\dom\Node.h(622,52): error C2220:  warning treated as error - no 'object' file generated
D:\WebKit\src\Source\WebCore\dom\Node.h(622,52): error C2220:  static constexpr uint32_t s_refCountMask = ~0x1;
D:\WebKit\src\Source\WebCore\dom\Node.h(622,52): error C2220:  ^ (compiling source file D:\WebKit\src\Source\WebCore\html\track\InbandGenericTextTrack.cpp)
warning C4245:'initializing': conversion from 'int' to 'const uint32_t', signed/unsigned mismatch
warning C4245:static constexpr uint32_t s_refCountMask = ~0x1;
warning C4245:^ (compiling source file D:\WebKit\src\Source\WebCore\html\track\InbandGenericTextTrack.cpp)

-- 
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/20190319/62a8657c/attachment-0001.html>


More information about the webkit-unassigned mailing list