Bug 159760

Summary: Build failed with ENABLE_STREAMS_API=OFF & ENABLE_WEB_RTC=OFF
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Sergio Villar Senin
Reported 2016-07-14 05:43:09 PDT
I'm getting this error: DerivedSources/WebCore/WebCoreJSBuiltinInternals.cpp: In member function ‘void WebCore::JSBuiltinInternalFunctions::initialize(WebCore::JSDOMGlobalObject&)’: DerivedSources/WebCore/WebCoreJSBuiltinInternals.cpp:125:103: error: no matching function for call to ‘ArrayLengthHelperFunction(JSC::JSGlobalObject::GlobalPropertyInfo [0])’ globalObject.addStaticGlobals(staticGlobals, WTF_ARRAY_LENGTH(staticGlobals)); ^ DerivedSources/WebCore/WebCoreJSBuiltinInternals.cpp:125:103: note: candidates are: In file included from ../../Source/WTF/wtf/FastMalloc.h:26:0, from ../../Source/WebCore/config.h:75, from DerivedSources/WebCore/WebCoreJSBuiltinInternals.cpp:36: ../../Source/WTF/wtf/StdLibExtras.h:172:42: note: template<class T, long unsigned int Size> char (& WTF::ArrayLengthHelperFunction(T (&)[Size]))[Size] template<typename T, size_t Size> char (&ArrayLengthHelperFunction(T (&)[Size]))[Size]; ^ ../../Source/WTF/wtf/StdLibExtras.h:172:42: note: template argument deduction/substitution failed: ../../Source/WTF/wtf/StdLibExtras.h:175:29: note: template<class T> char (& WTF::ArrayLengthHelperFunction(T (&)[0]))[0] template<typename T> char (&ArrayLengthHelperFunction(T (&)[0]))[0]; ^ ../../Source/WTF/wtf/StdLibExtras.h:175:29: note: template argument deduction/substitution failed: DerivedSources/WebCore/WebCoreJSBuiltinInternals.cpp:125:103: note: template argument ‘-1’ does not match ‘#‘integer_cst’ not supported by dump_decl#<declaration error>’ globalObject.addStaticGlobals(staticGlobals, WTF_ARRAY_LENGTH(staticGlobals)); Looks like (in the generated code) that the array is empty when disabling both build flags. By enabling either of them the build goes on smoothly.
Attachments
Note You need to log in before you can comment on or make changes to this bug.