<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>183896</bug_id>
          
          <creation_ts>2018-03-22 05:30:44 -0700</creation_ts>
          <short_desc>[WPE][GTK] Build failure when ENABLE_VIDEO, ENABLE_WEB_AUDIO and ENABLE_XSLT are disabled</short_desc>
          <delta_ts>2018-03-22 06:48:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ysuzuki</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1408336</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-03-22 05:30:44 -0700</bug_when>
    <thetext>This can be reproduced with the following commands:

   % cd path/to/WebKit
   % mkdir build &amp;&amp; cd $_
   % cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEVELOPER_MODE=ON \
           -DCMAKE_INSTALL_PREFIX=$JHENV -DENABLE_VIDEO=OFF \
           -DENABLE_WEB_AUDIO=OFF -DENABLE_XSLT=OFF -DPORT=WPE \
           -G Ninja ..
   % ninja

The build error is as follows, I think that DEVELOPER_MODE is not really
the culprit:

In file included from /usr/include/c++/7.3.1/bits/move.h:54:0,
                 from /usr/include/c++/7.3.1/bits/nested_exception.h:40,
                 from /usr/include/c++/7.3.1/exception:143,
                 from /usr/include/c++/7.3.1/new:40,
                 from DerivedSources/ForwardingHeaders/wtf/FastMalloc.h:24,
                 from ../Source/WebCore/config.h:55,
                 from ../Source/WebCore/bindings/js/JSTextTrackListCustom.cpp:26,
                 from DerivedSources/WebCore/unified-sources/UnifiedSource169.cpp:1:
/usr/include/c++/7.3.1/type_traits: In instantiation of ‘struct std::is_base_of&lt;WebCore::ScriptExecutionContext, WebCore::Document&gt;’:
DerivedSources/ForwardingHeaders/wtf/TypeCasts.h:82:80:   required from ‘typename WTF::match_constness&lt;Source, Target&gt;::type&amp; WTF::downcast(Source&amp;) [with Target = WebCore::Document; Source = WebCore::ScriptExecutionContext; typename WTF::match_constness&lt;Source, Target&gt;::type = WebCore::Document]’
../Source/WebCore/bindings/js/JSWebAnimationCustom.cpp:63:49:   required from here
/usr/include/c++/7.3.1/type_traits:1512:12: error: invalid use of incomplete type ‘class WebCore::Document’
     struct is_base_of
            ^~~~~~~~~~
In file included from ../Source/WebCore/dom/Node.h:33:0,
                 from ../Source/WebCore/bindings/js/JSTreeWalkerCustom.cpp:23,
                 from DerivedSources/WebCore/unified-sources/UnifiedSource169.cpp:3:
../Source/WebCore/dom/TreeScope.h:38:7: note: forward declaration of ‘class WebCore::Document’
 class Document;
       ^~~~~~~~
In file included from DerivedSources/ForwardingHeaders/wtf/Ref.h:34:0,
                 from DerivedSources/ForwardingHeaders/wtf/VectorTraits.h:24,
                 from DerivedSources/ForwardingHeaders/wtf/Vector.h:38,
                 from DerivedSources/ForwardingHeaders/wtf/text/StringImpl.h:32,
                 from DerivedSources/ForwardingHeaders/wtf/text/UniquedStringImpl.h:29,
                 from DerivedSources/ForwardingHeaders/wtf/text/SymbolImpl.h:28,
                 from DerivedSources/ForwardingHeaders/JavaScriptCore/PrivateName.h:28,
                 from DerivedSources/ForwardingHeaders/JavaScriptCore/Identifier.h:23,
                 from DerivedSources/WebCore/JSDOMBindingInternalsBuiltins.h:34,
                 from DerivedSources/WebCore/WebCoreJSBuiltinInternals.h:39,
                 from ../Source/WebCore/bindings/js/JSDOMGlobalObject.h:29,
                 from ../Source/WebCore/bindings/js/JSDOMWrapper.h:24,
                 from DerivedSources/WebCore/JSTreeWalker.h:23,
                 from ../Source/WebCore/bindings/js/JSTreeWalkerCustom.cpp:21,
                 from DerivedSources/WebCore/unified-sources/UnifiedSource169.cpp:3:
DerivedSources/ForwardingHeaders/wtf/TypeCasts.h: In instantiation of ‘typename WTF::match_constness&lt;Source, Target&gt;::type&amp; WTF::downcast(Source&amp;) [with Target = WebCore::Document; Source = WebCore::ScriptExecutionContext; typename WTF::match_constness&lt;Source, Target&gt;::type = WebCore::Document]’:
../Source/WebCore/bindings/js/JSWebAnimationCustom.cpp:63:49:   required from here
DerivedSources/ForwardingHeaders/wtf/TypeCasts.h:82:80: error: ‘value’ is not a member of ‘std::is_base_of&lt;WebCore::ScriptExecutionContext, WebCore::Document&gt;’
     return static_cast&lt;typename match_constness&lt;Source, Target&gt;::type&amp;&gt;(source);
                                                                                ^
DerivedSources/ForwardingHeaders/wtf/TypeCasts.h:82:12: error: invalid static_cast from type ‘WebCore::ScriptExecutionContext’ to type ‘WTF::match_constness&lt;WebCore::ScriptExecutionContext, WebCore::Document&gt;::type&amp; {aka WebCore::Document&amp;}’
     return static_cast&lt;typename match_constness&lt;Source, Target&gt;::type&amp;&gt;(source);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1408337</commentid>
    <comment_count>1</comment_count>
      <attachid>336276</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-03-22 05:33:58 -0700</bug_when>
    <thetext>Created attachment 336276
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1408339</commentid>
    <comment_count>2</comment_count>
      <attachid>336276</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2018-03-22 06:23:42 -0700</bug_when>
    <thetext>Comment on attachment 336276
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1408340</commentid>
    <comment_count>3</comment_count>
      <attachid>336276</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-03-22 06:48:38 -0700</bug_when>
    <thetext>Comment on attachment 336276
Patch

Clearing flags on attachment: 336276

Committed r229848: &lt;https://trac.webkit.org/changeset/229848&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1408341</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-03-22 06:48:40 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>336276</attachid>
            <date>2018-03-22 05:33:58 -0700</date>
            <delta_ts>2018-03-22 06:48:38 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-183896-20180322123357.patch</filename>
            <type>text/plain</type>
            <size>1309</size>
            <attacher name="Adrian Perez">aperez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjI5ODQ3CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggOTY0ZmZlNDk5YTgwMzY0
N2VjMmQxNGNkOGVlNjg4YTU1NGNhMmNkZi4uNTY0MDkzYzhhMDViYWQ3MGViNjU5ZWI1Nzc5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