<?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>199515</bug_id>
          
          <creation_ts>2019-07-05 06:31:25 -0700</creation_ts>
          <short_desc>[GTK][WPE] Fix building on Linux with Clang/libc++</short_desc>
          <delta_ts>2019-07-05 06:36:07 -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>bmalloc</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>195938</dup_id>
          
          <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>ggaren</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1550345</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-07-05 06:31:25 -0700</bug_when>
    <thetext>Configuring with:

  CC=clang CXX=clang++ CXXFLAGS=&apos;-stdlib=libc++&apos; LDFLAGS=&apos;-stdlib=libc++ -fuse-ld=lld&apos; \
  cmake -GNinja -DPORT=GTK &lt;…&gt;

results in the following build error:

  Source/bmalloc/bmalloc/AvailableMemory.cpp:120:31: error: implicit instantiation of undefined template &apos;std::__1::array&lt;char, 256&gt;&apos;
          std::array&lt;char, 256&gt; statmBuffer;
                                ^
  /usr/bin/../include/c++/v1/__tuple:223:64: note: template is declared here
  template &lt;class _Tp, size_t _Size&gt; struct _LIBCPP_TEMPLATE_VIS array;
                                                                 ^
  Source/bmalloc/bmalloc/AvailableMemory.cpp:125:30: error: implicit instantiation of undefined template &apos;std::__1::array&lt;char, 32&gt;&apos;
          std::array&lt;char, 32&gt; rssBuffer;                                                                                                                                   
                             ^
  /usr/bin/../include/c++/v1/__tuple:223:64: note: template is declared here
  template &lt;class _Tp, size_t _Size&gt; struct _LIBCPP_TEMPLATE_VIS array;
                                                                 ^
  2 errors generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550346</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-07-05 06:34:13 -0700</bug_when>
    <thetext>This applied only to the stable webkit-2.24 branch, “trunk”
builds just fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550347</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-07-05 06:36:07 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #1)
&gt; This applied only to the stable webkit-2.24 branch, “trunk”
&gt; builds just fine.

Fixed in r244422

*** This bug has been marked as a duplicate of bug 195938 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>