Bug 259119

Summary: clang-cl can't link WebCore.dll of Windows Release build
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: WebCore Misc.Assignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=191626
Bug Depends on:    
Bug Blocks: 171618    
Attachments:
Description Flags
PerformanceTestsResults.html (localPath needs to adjust)
none
perf test result (--repeat=2)
none
perf results of 4e68a14 (266055@main) and patched
none
perf results of 4e68a14 (266055@main) and patched none

Fujii Hironori
Reported 2023-07-11 13:43:34 PDT
clang-cl can't link WebCore.dll of Windows Release build. set CC=clang-cl set CXX=clang-cl perl .\Tools\Scripts\build-webkit --release --no-fatal-warnings FAILED: bin64/WebCore.dll lib64/WebCore.lib cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_dll --intdir=Source\WebCore\CMakeFiles\WebCore.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo @CMakeFiles\WebCore.rsp /out:bin64\WebCore.dll /implib:lib64\WebCore.lib /pdb:bin64\WebCore.pdb /dll /version:0.0 /machine:x64 /DEBUG /OPT:ICF /OPT:REF /INCREMENTAL:NO /INCREMENTAL:NO /DELAYLOAD:d3d9.dll /DELAYLOAD:dxva2.dll /DELAYLOAD:evr.dll /DELAYLOAD:mf.dll /DELAYLOAD:mfplat.dll && cd ." LINK: command "C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo @CMakeFiles\WebCore.rsp /out:bin64\WebCore.dll /implib:lib64\WebCore.lib /pdb:bin64\WebCore.pdb /dll /version:0.0 /machine:x64 /DEBUG /OPT:ICF /OPT:REF /INCREMENTAL:NO /INCREMENTAL:NO /DELAYLOAD:d3d9.dll /DELAYLOAD:dxva2.dll /DELAYLOAD:evr.dll /DELAYLOAD:mf.dll /DELAYLOAD:mfplat.dll /MANIFEST /MANIFESTFILE:bin64\WebCore.dll.manifest" failed (exit code 1) with the following output: lld-link: error: undefined symbol: public: static class JSC::Structure * __cdecl JSC::Structure::create(class JSC::VM &, class JSC::JSGlobalObject *, class JSC::JSValue, class JSC::TypeInfo const &, struct JSC::ClassInfo const *, unsigned char, unsigned int) >>> referenced by Source\WebCore\CMakeFiles\WebCore.dir\page\UserMessageHandlerDescriptor.cpp.obj >>> referenced by Source\WebCore\CMakeFiles\WebCore.dir\page\UserMessageHandlersNamespace.cpp.obj >>> referenced by Source\WebCore\CMakeFiles\WebCore.dir\__\__\WebCore\DerivedSources\unified-sources\UnifiedSource-f8afad56-19.cpp.obj
Attachments
PerformanceTestsResults.html (localPath needs to adjust) (1.13 MB, text/html)
2023-07-15 00:06 PDT, Fujii Hironori
no flags
perf test result (--repeat=2) (2.24 MB, text/html)
2023-07-17 00:23 PDT, Fujii Hironori
no flags
perf results of 4e68a14 (266055@main) and patched (2.24 MB, text/html)
2023-07-24 14:55 PDT, Fujii Hironori
no flags
perf results of 4e68a14 (266055@main) and patched (2.24 MB, text/html)
2023-07-27 12:56 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2023-07-11 18:56:42 PDT
Fujii Hironori
Comment 2 2023-07-12 21:58:36 PDT
I fixed this problem in 206542@main (bug#191626), but it was reverted by 213160@main (bug#196315).
Fujii Hironori
Comment 3 2023-07-13 17:51:57 PDT
Fujii Hironori
Comment 4 2023-07-13 17:54:09 PDT
Fujii Hironori
Comment 5 2023-07-15 00:06:44 PDT
Created attachment 467048 [details] PerformanceTestsResults.html (localPath needs to adjust) perf test results of 266055@main and the patched. https://github.com/WebKit/WebKit/commit/b452a308b06b3789c14e95adbd4045b056700b6a
Fujii Hironori
Comment 6 2023-07-17 00:23:36 PDT
Created attachment 467058 [details] perf test result (--repeat=2) The perf test is too flaky to say anything.
Radar WebKit Bug Importer
Comment 7 2023-07-18 13:44:26 PDT
Fujii Hironori
Comment 8 2023-07-18 23:24:42 PDT
Fujii Hironori
Comment 9 2023-07-24 14:55:32 PDT
Fujii Hironori
Comment 10 2023-07-26 18:25:47 PDT
Fujii Hironori
Comment 11 2023-07-27 12:56:25 PDT
EWS
Comment 12 2023-08-15 17:36:56 PDT
Committed 266932@main (5bd7a22a5bc3): <https://commits.webkit.org/266932@main> Reviewed commits have been landed. Closing PR #16124 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.