Bug 199515
| Summary: | [GTK][WPE] Fix building on Linux with Clang/libc++ | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> |
| Component: | bmalloc | Assignee: | Adrian Perez <aperez> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ggaren |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
Adrian Perez
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adrian Perez
This applied only to the stable webkit-2.24 branch, “trunk”
builds just fine.
Adrian Perez
(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 ***