Bug 203483
Summary: | [Windows][Clang] error LNK2001: unresolved external symbol "void * __cdecl JSC::allocateCell<class JSC::JSGenericTypedArrayView<struct JSC::Float32Adaptor> >(class JSC::Heap &,unsigned __int64)" | ||
---|---|---|---|
Product: | WebKit | Reporter: | Fujii Hironori <fujii.hironori> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Fujii Hironori
[Windows][Clang] error LNK2001: unresolved external symbol "void * __cdecl JSC::allocateCell<class JSC::JSGenericTypedArrayView<struct JSC::Float32Adaptor> >(class JSC::Heap &,unsigned __int64)"
clang-cl can't build WinCairo since r251584 (Bug 203391).
[4648/5085] Linking CXX shared library bin64\WebKit.dll
FAILED: bin64/WebKit.dll lib64/WebKit.lib
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=Source\WebKitLegacy\CMakeFiles\WebKitLegacy.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\mt.exe --manifests -- C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1423~1.281\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\WebKitLegacy.rsp /out:bin64\WebKit.dll /implib:lib64\WebKit.lib /pdb:bin64\WebKit.pdb /dll /version:0.0 /machine:x64 /DEBUG /OPT:ICF /OPT:REF /INCREMENTAL:NO /SUBSYSTEM:WINDOWS /INCREMENTAL:NO && cmd.exe /C "cd /D C:\webkit\gb\WebKitBuild\Release\Source\WebKitLegacy && C:\Perl64\bin\perl.exe C:/webkit/gb/WebKitLibraries/win/tools/scripts/version-stamp.pl C:/webkit/gb/WebKitBuild/Release/WebKitLegacy/DerivedSources C:/webkit/gb/WebKitBuild/Release/bin64/WebKit.dll""
LINK: command "C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1423~1.281\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\WebKitLegacy.rsp /out:bin64\WebKit.dll /implib:lib64\WebKit.lib /pdb:bin64\WebKit.pdb /dll /version:0.0 /machine:x64 /DEBUG /OPT:ICF /OPT:REF /INCREMENTAL:NO /SUBSYSTEM:WINDOWS /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:bin64\WebKit.dll.manifest" failed (exit code 1120) with the following output:
Creating library lib64\WebKit.lib and object lib64\WebKit.exp
WebCore.lib(UnifiedSource-2f84417a-10.cpp.obj) : error LNK2019: unresolved external symbol "void * __cdecl JSC::allocateCell<class JSC::JSGenericTypedArrayView<struct JSC::Float32Adaptor> >(class JSC::Heap &,unsigned __int64)" (??$allocateCell@V?$JSGenericTypedArrayView@UFloat32Adaptor@JSC@@@JSC@@@JSC@@YAPEAXAEAVHeap@0@_K@Z) referenced in function "public: static class JSC::JSGenericTypedArrayView<struct JSC::Float32Adaptor> * __cdecl JSC::JSGenericTypedArrayView<struct JSC::Float32Adaptor>::create(class JSC::VM &,class JSC::Structure *,class WTF::RefPtr<class JSC::GenericTypedArrayView<struct JSC::Float32Adaptor>,struct WTF::DumbPtrTraits<class JSC::GenericTypedArrayView<struct JSC::Float32Adaptor> > > &&)" (?create@?$JSGenericTypedArrayView@UFloat32Adaptor@JSC@@@JSC@@SAPEAV12@AEAVVM@2@PEAVStructure@2@$$QEAV?$RefPtr@V?$GenericTypedArrayView@UFloat32Adaptor@JSC@@@JSC@@U?$DumbPtrTraits@V?$GenericTypedArrayView@UFloat32Adaptor@JSC@@@JSC@@@WTF@@@WTF@@@Z)
WebCore.lib(UnifiedSource-4babe430-44.cpp.obj) : error LNK2001: unresolved external symbol "void * __cdecl JSC::allocateCell<class JSC::JSGenericTypedArrayView<struct JSC::Float32Adaptor> >(class JSC::Heap &,unsigned __int64)" (??$allocateCell@V?$JSGenericTypedArrayView@UFloat32Adaptor@JSC@@@JSC@@@JSC@@YAPEAXAEAVHeap@0@_K@Z)
WebCore.lib(UnifiedSource-2f84417a-10.cpp.obj) : error LNK2019: unresolved external symbol "void * __cdecl JSC::allocateCell<class JSC::JSGenericTypedArrayView<struct JSC::Float64Adaptor> >(class JSC::Heap &,unsigned __int64)" (??$allocateCell@V?$JSGenericTypedArrayView@UFloat64Adaptor@JSC@@@JSC@@@JSC@@YAPEAXAEAVHeap@0@_K@Z) referenced in function "public: static class JSC::JSGenericTypedArrayView<struct JSC::Float64Adaptor> * __cdecl JSC::JSGenericTypedArrayView<struct JSC::Float64Adaptor>::create(class JSC::VM &,class JSC::Structure *,class WTF::RefPtr<class JSC::GenericTypedArrayView<struct JSC::Float64Adaptor>,struct WTF::DumbPtrTraits<class JSC::GenericTypedArrayView<struct JSC::Float64Adaptor> > > &&)" (?create@?$JSGenericTypedArrayView@UFloat64Adaptor@JSC@@@JSC@@SAPEAV12@AEAVVM@2@PEAVStructure@2@$$QEAV?$RefPtr@V?$GenericTypedArrayView@UFloat64Adaptor@JSC@@@JSC@@U?$DumbPtrTraits@V?$GenericTypedArrayView@UFloat64Adaptor@JSC@@@JSC@@@WTF@@@WTF@@@Z)
bin64\WebKit.dll : fatal error LNK1120: 2 unresolved externals
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Fujii Hironori
Here is the content of UnifiedSource-2f84417a-10.cpp
#include "css/CSSValuePool.cpp"
#include "css/CSSVariableData.cpp"
#include "css/CSSVariableReferenceValue.cpp"
#include "css/DOMCSSNamespace.cpp"
#include "css/DOMCSSPaintWorklet.cpp"
#include "css/DOMCSSRegisterCustomProperty.cpp"
#include "css/DOMMatrix.cpp"
#include "css/DOMMatrixReadOnly.cpp"
Fujii Hironori
This is a similar issue with Bug 193481.
Bug 193481 – Add 'inline' specifier for declarations for its definitions are defined in separate headers (…Inlines.h)
Fujii Hironori
runtime/JSGenericTypedArrayViewInlines.h is using allocateCell without including JSCellInlines.h.
Fujii Hironori
Committed r251652: <https://trac.webkit.org/changeset/251652>
Radar WebKit Bug Importer
<rdar://problem/56665319>