[Webkit-unassigned] [Bug 238987] New: [AppleWin] WebKit WinCairo port failed to build due to error C1083 and fatal error LNK1181 on windows with MSVC

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 8 01:33:39 PDT 2022


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

            Bug ID: 238987
           Summary: [AppleWin] WebKit WinCairo port failed to build due to
                    error C1083 and fatal error LNK1181 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: v-apriltan at microsoft.com

Created attachment 457028

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

error.log

Issue description:
We tried to build WebKit using VS2019 on Windows Server 2016. WebKit AppleWin port failed to build due to ("PlatformImageCG.cpp(29,10): error C1083" and "CoreFoundation.lib : error LNK1181") on windows with MSVC. It can be reproduced on master branch latest commit https://github.com/WebKit/WebKit/commit/623fee9. Could you please help take a look at this? Thanks in advance!

Repro steps:
1. git clone https://github.com/WebKit/webkit F:\WebKit
2. open a VS 2019 x64 command prompt as admin and browse to F:\WebKit
3. download latest WebKitAuxiliaryLibrary.zip from 
   https://github.com/WebKitForWindows/WebKitRequirements/releases/download/v2022.03.05/WebKitRequirementsWin64.zip and unzip to F:\tools\WebKit
4. download latest WebKitAuxiliaryLibrary.zip from https://developer.apple.com/opensource/internet/WebKitAuxiliaryLibrary.zip and unzip to 
   F:\tools\WebKit
5. download latest WebKitSupportLibrary.zip from https://developer.apple.com/opensource/internet/webkit_sptlib_agree.html and unzip to 
   F:\tools\WebKit
6. git -C "F:\webkit" reset --hard 623fee9
7. set path=F:\tools\WebKit\tools;%path%
8. xcopy F:\tools\WebKit\WebKitRequirementsWin64 F:\WebKit\WebKitLibraries\win /k/r/e/i/s/c/h/f/y
9. xcopy F:\tools\WebKit\WebKitAuxiliaryLibrary\win F:\WebKit\WebKitLibraries\win /k/r/e/i/s/c/h/f/y
10. xcopy F:\tools\WebKit\WebKitSupportLibrary\win F:\WebKit\WebKitLibraries\win /k/r/e/i/s/c/h/f/y
11. set _CL_=/Zc:lambda
12. mkdir build_amd64_AppleWin
13. cd F:\WebKit\build_amd64_AppleWin
14. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release -DRUBY_LIBRARY=C:\tools\ruby26\lib - 
    DPORT="AppleWin" .. 2>&1
15. msbuild /p:Platform=x64 /p:Configuration=Release WebKit.sln /t:Rebuild 2>&1

Actual result:
LINK : fatal error LNK1181: cannot open input file 'CoreFoundation.lib' [F:\Webkit\build_amd64_AppleWin\Source\WTF\wtf\WTF.vcxproj]
Done Building Project "F:\Webkit\build_amd64_AppleWin\Source\WTF\wtf\WTF.vcxproj" (Rebuild target(s)) -- FAILED.
Done Building Project "F:\Webkit\build_amd64_AppleWin\Source\WTF\wtf\WTF.vcxproj.metaproj" (Rebuild target(s)) -- FAILED.
F:\Webkit\Tools\ImageDiff\cg\PlatformImageCG.cpp(29,10): fatal error C1083: Cannot open include file: 'CoreGraphics/CGBitmapContext.h': No such file or directory (d:\a01\_work\2\s\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1972) [F:\Webkit\build_amd64_AppleWin\Tools\ImageDiff\ImageDiffLib.vcxproj]
Done Building Project "F:\Webkit\build_amd64_AppleWin\Tools\ImageDiff\ImageDiffLib.vcxproj" (Rebuild target(s)) -- FAILED.
Done Building Project "F:\Webkit\build_amd64_AppleWin\Tools\ImageDiff\ImageDiffLib.vcxproj.metaproj" (Rebuild target(s)) -- FAILED.
Done Building Project "F:\Webkit\build_amd64_AppleWin\Tools\ImageDiff\ImageDiff.vcxproj.metaproj" (Rebuild target(s)) -- FAILED.

-- 
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/20220408/fba1e55e/attachment-0001.htm>


More information about the webkit-unassigned mailing list