Bug 199515

Summary: [GTK][WPE] Fix building on Linux with Clang/libc++
Product: WebKit Reporter: Adrian Perez <aperez>
Component: bmallocAssignee: Adrian Perez <aperez>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ggaren
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Linux   

Description Adrian Perez 2019-07-05 06:31:25 PDT
Configuring with:

  CC=clang CXX=clang++ CXXFLAGS='-stdlib=libc++' LDFLAGS='-stdlib=libc++ -fuse-ld=lld' \
  cmake -GNinja -DPORT=GTK <…>

results in the following build error:

  Source/bmalloc/bmalloc/AvailableMemory.cpp:120:31: error: implicit instantiation of undefined template 'std::__1::array<char, 256>'
          std::array<char, 256> statmBuffer;
                                ^
  /usr/bin/../include/c++/v1/__tuple:223:64: note: template is declared here
  template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                                 ^
  Source/bmalloc/bmalloc/AvailableMemory.cpp:125:30: error: implicit instantiation of undefined template 'std::__1::array<char, 32>'
          std::array<char, 32> rssBuffer;                                                                                                                                   
                             ^
  /usr/bin/../include/c++/v1/__tuple:223:64: note: template is declared here
  template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                                 ^
  2 errors generated.
Comment 1 Adrian Perez 2019-07-05 06:34:13 PDT
This applied only to the stable webkit-2.24 branch, “trunk”
builds just fine.
Comment 2 Adrian Perez 2019-07-05 06:36:07 PDT
(In reply to Adrian Perez from comment #1)
> This applied only to the stable webkit-2.24 branch, “trunk”
> builds just fine.

Fixed in r244422

*** This bug has been marked as a duplicate of bug 195938 ***