<?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>218799</bug_id>
          
          <creation_ts>2020-11-11 06:04:19 -0800</creation_ts>
          <short_desc>REGRESSION(r269662): [GTK][WPE] Build broken on Ubuntu-18.04 bots</short_desc>
          <delta_ts>2020-11-11 21:54:47 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=218726</see_also>
          <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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>darin</cc>
    
    <cc>dpino</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1706432</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-11-11 06:04:19 -0800</bug_when>
    <thetext>After r269662 the build is broken in the bots that currently run in Ubuntu-18.04:

https://build.webkit.org/builders/GTK-Linux-64-bit-Release-Ubuntu-LTS-Build
https://build.webkit.org/builders/GTK-Linux-64bit-Release-Packaging-Nightly-Ubuntu1804
https://build.webkit.org/builders/WPE-Linux-64bit-Release-Packaging-Nightly-Ubuntu1804


The build failure is:

lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource-be65d27a-16.cpp.o):UnifiedSource-be65d27a-16.cpp:function WebCore::Range::compareNode(WebCore::Node&amp;) const: error: undefined reference to &apos;WebCore::PartialOrdering WebCore::treeOrder&lt;(WebCore::TreeType)0&gt;(WebCore::BoundaryPoint const&amp;, WebCore::BoundaryPoint const&amp;)&apos;
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource-be65d27a-16.cpp.o):UnifiedSource-be65d27a-16.cpp:function WebCore::Range::compareNode(WebCore::Node&amp;) const: error: undefined reference to &apos;WebCore::PartialOrdering WebCore::treeOrder&lt;(WebCore::TreeType)0&gt;(WebCore::BoundaryPoint const&amp;, WebCore::BoundaryPoint const&amp;)&apos;
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource-be65d27a-16.cpp.o):UnifiedSource-be65d27a-16.cpp:function WebCore::Range::compareBoundaryPoints(unsigned short, WebCore::Range const&amp;) const: error: undefined reference to &apos;WebCore::PartialOrdering WebCore::treeOrder&lt;(WebCore::TreeType)0&gt;(WebCore::BoundaryPoint const&amp;, WebCore::BoundaryPoint const&amp;)&apos;
lib/libWebCoreGTK.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/__/__/DerivedSources/WebCore/unified-sources/UnifiedSource-be65d27a-16.cpp.o):UnifiedSource-be65d27a-16.cpp:function WebCore::Range::setStart(WTF::Ref&lt;WebCore::Node, WTF::RawPtrTraits&lt;WebCore::Node&gt; &gt;&amp;&amp;, unsigned int): error: undefined reference to &apos;WebCore::PartialOrdering WebCore::treeOrder&lt;(WebCore::TreeType)0&gt;(WebCore::BoundaryPoint const&amp;, WebCore::BoundaryPoint const&amp;)&apos;
collect2: error: ld returned 1 exit status


I&apos;m unsure at this point if its a problem with the toolchain or is caused because of a different including ordering due to unified builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706730</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2020-11-11 18:53:52 -0800</bug_when>
    <thetext>Hm... Maybe we need to explicitly instantiate all variants of treeOrder.

Try adding the following lines to BoundaryPoints.cpp?

template PartialOrdering treeOrder&lt;Tree&gt;(const BoundaryPoint&amp;, const BoundaryPoint&amp;);
template PartialOrdering treeOrder&lt; ShadowIncludingTree &gt;(const BoundaryPoint&amp;, const BoundaryPoint&amp;);
template PartialOrdering treeOrder&lt;ComposedTree&gt;(const BoundaryPoint&amp;, const BoundaryPoint&amp;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706755</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-11-11 20:56:54 -0800</bug_when>
    <thetext>Yes that should work; this is a non-unified build failure.

We might not need all three of those. Just the &lt;Tree&gt; one would fix all the errors above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1706763</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-11-11 21:54:47 -0800</bug_when>
    <thetext>(In reply to Darin Adler from comment #2)
&gt; Yes that should work; this is a non-unified build failure.
&gt; 
&gt; We might not need all three of those. Just the &lt;Tree&gt; one would fix all the
&gt; errors above.

Right, the patch fixed the issue (I tested it in the affected bot). I landed the patch as it was originally suggested in r269715, just a few minutes ago.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>