Bug 161592

Summary: [CMake] Duplicated IDL files in WebCore_IDL_FILES
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, lforschler
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 161433    
Attachments:
Description Flags
Patch
none
Patch none

Description Fujii Hironori 2016-09-04 22:27:03 PDT
[CMake] Duplicated IDL files in WebCore_IDL_FILES

Some IDL files are listed in WebCore_IDL_FILES doubly.

I've found this problem in the experiment of Bug 161433.
Ninja issues a lot of warnings.

> ninja: warning: multiple rules generate DerivedSources/WebCore/JSANGLEInstancedArrays.cpp. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
> ninja: warning: multiple rules generate DerivedSources/WebCore/JSANGLEInstancedArrays.h. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
> ninja: warning: multiple rules generate DerivedSources/WebCore/JSEXTBlendMinMax.cpp. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
> ninja: warning: multiple rules generate DerivedSources/WebCore/JSEXTBlendMinMax.h. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
> ninja: warning: multiple rules generate DerivedSources/WebCore/JSEXTFragDepth.cpp. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
> ninja: warning: multiple rules generate DerivedSources/WebCore/JSEXTFragDepth.h. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
> (...)
Comment 1 Fujii Hironori 2016-09-04 22:40:03 PDT
Created attachment 287929 [details]
Patch
Comment 2 Fujii Hironori 2016-09-04 23:25:02 PDT
EWS failed with two problems.

mac-debug-ews

> FAIL: (JS) JSTestClassWithJSBuiltinConstructor.cpp
> --- WebCore/bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp	2016-08-30 14:19:02.000000000 -0700
> +++ /var/folders/7n/s62c21h54p549lcpn5v012mc0000gn/T/tmpyL67Nh/JSTestClassWithJSBuiltinConstructor.cpp	2016-09-04 22:57:30.000000000 -0700
> @@ -201,7 +201,7 @@
>      // by adding the SkipVTableValidation attribute to the interface IDL definition
>      RELEASE_ASSERT(actualVTablePointer == expectedVTablePointer);
>  #endif
> -    return createWrapper<JSTestClassWithJSBuiltinConstructor, TestClassWithJSBuiltinConstructor>(globalObject, WTFMove(impl));
> +    return createWrapper<TestClassWithJSBuiltinConstructor>(globalObject, WTFMove(impl));
>  }
>  
>  JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestClassWithJSBuiltinConstructor& impl)

win-ews

> C:\cygwin\home\buildbot\WebKit\Source\WebCore\DerivedSources.cpp(633): fatal error C1083: Cannot open include file: 'JSUserMessageHandler.cpp': No such file or directory
Comment 3 Fujii Hironori 2016-09-05 00:07:27 PDT
(In reply to comment #2)
> mac-debug-ews
> 
> > FAIL: (JS) JSTestClassWithJSBuiltinConstructor.cpp

Filed as Bug 161595.
Comment 4 Fujii Hironori 2016-09-05 01:03:18 PDT
Created attachment 287940 [details]
Patch
Comment 5 Darin Adler 2016-09-05 10:01:03 PDT
Comment on attachment 287940 [details]
Patch

This is one reason we often sort things alphabetically rather than trying to organize them logically. Makes duplicates much easier to spot.
Comment 6 WebKit Commit Bot 2016-09-05 10:23:30 PDT
Comment on attachment 287940 [details]
Patch

Clearing flags on attachment: 287940

Committed r205457: <http://trac.webkit.org/changeset/205457>
Comment 7 WebKit Commit Bot 2016-09-05 10:23:34 PDT
All reviewed patches have been landed.  Closing bug.