Bug 249920 - [Win] WebKit failed to build due to error C2061 and C2065 on windows with MSVC ARM64EC Target
Summary: [Win] WebKit failed to build due to error C2061 and C2065 on windows with MSV...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Windows 10
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-27 22:36 PST by QuellaZhang
Modified: 2023-07-16 13:18 PDT (History)
2 users (show)

See Also:


Attachments
build_arm64ec_log (202.97 KB, text/plain)
2022-12-27 22:36 PST, QuellaZhang
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description QuellaZhang 2022-12-27 22:36:49 PST
Created attachment 464233 [details]
build_arm64ec_log

Issue description:

We tried to build WebKit using VS2019 on Windows Server 2016. WebKit AppleWin port failed to build due to error C2061: syntax error: identifier 'opeqneoneg' and error C2065: 'src': undeclared identifier on windows with MSVC ARM64EC Target. It can be reproduced on master branch 257fc87 commit. 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. git -C "F:\gitP\WebKit\webkit" reset --hard 257fc87
4."C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
5. set path=F:\tools\WebKit\tools;%path%
6. mkdir build_arm64ec_AppleWin && cd F:\gitP\WebKit\webkit\build_arm64ec_AppleWin
7. xcopy F:\tools\WebKit\WebKitAuxiliaryLibrary\win F:\gitP\WebKit\webkit\WebKitLibraries\win /k/r/e/i/s/c/h/f/y
8. xcopy F:\tools\WebKit\WebKitSupportLibrary\win F:\gitP\WebKit\webkit\WebKitLibraries\win /k/r/e/i/s/c/h/f/y
9. cmake -G "Visual Studio 16 2019" -A ARM64EC -DCMAKE_SYSTEM_VERSION=10.0.22618.0 -DCMAKE_BUILD_TYPE=Release -DRUBY_LIBRARY=C:\tools\ruby26\lib -DPORT="AppleWin" ..
10. set _CL_=/Zc:lambda /wd4003
11. msbuild /m /p:Platform=ARM64EC /p:Configuration=Release WebKit.sln /t:Rebuild

Actual result:
    65>F:\gitP\WebKit\webkit\Source\JavaScriptCore\assembler\MacroAssembler.h(534,10): error C2061: syntax error: identifier 'opeqneoneg' [F:\gitP\WebKit\webkit\build_arm64ec_AppleWin\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj]
    65>F:\gitP\WebKit\webkit\Source\JavaScriptCore\assembler\MacroAssembler.h(536,16): error C2065: 'src': undeclared identifier [F:\gitP\WebKit\webkit\build_arm64ec_AppleWin\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj]
    65>F:\gitP\WebKit\webkit\Source\JavaScriptCore\assembler\MacroAssembler.h(536,21): error C2065: 'scratch': undeclared identifier [F:\gitP\WebKit\webkit\build_arm64ec_AppleWin\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj]
    65>F:\gitP\WebKit\webkit\Source\JavaScriptCore\assembler\MacroAssembler.h(537,17): error C2065: 'scratch': undeclared identifier [F:\gitP\WebKit\webkit\build_arm64ec_AppleWin\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj]
    65>F:\gitP\WebKit\webkit\Source\JavaScriptCore\assembler\MacroAssembler.h(537,26): error C2065: 'dest': undeclared identifier [F:\gitP\WebKit\webkit\build_arm64ec_AppleWin\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj]
Comment 1 Fujii Hironori 2022-12-31 14:00:06 PST
WebKit doesn't have the plan to support ARM Windows now. Please propose patches if you want to maintain it.
Comment 2 Radar WebKit Bug Importer 2023-01-03 22:37:17 PST
<rdar://problem/103862052>