Bug 199515 - [GTK][WPE] Fix building on Linux with Clang/libc++
Summary: [GTK][WPE] Fix building on Linux with Clang/libc++
Status: RESOLVED DUPLICATE of bug 195938
Alias: None
Product: WebKit
Classification: Unclassified
Component: bmalloc (show other bugs)
Version: Other
Hardware: Unspecified Linux
: P2 Normal
Assignee: Adrian Perez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-05 06:31 PDT by Adrian Perez
Modified: 2019-07-05 06:36 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***