<div dir="ltr">The patch "Update the docs for building libc++" gave me the info I needed to get over this hurdle. Thanks. :)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 2:01 PM Chris Palmer <<a href="mailto:palmer@google.com">palmer@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I've been seeing this failure for a couple weeks. I assume I am doing something wrong, but I can't tell what. :)</div><div><br></div><div>```</div><div>$ git pull --rebase</div><div>...</div><div>$ git checkout master</div><div>$ git diff origin/master</div><div>→ confirming no difference</div><div>$ cd build</div><div>$ ninja check-all</div><div>...</div><div>GNU C++17 (Debian 8.3.0-6) version 8.3.0 (x86_64-linux-gnu)<br> compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.2-rc1, MPC version 1.1.0, isl version isl-0.20-GMP<br><br>warning: MPFR header version 4.0.2-rc1 differs from library version 4.0.2.<br>GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072<br>Compiler executable checksum: 5e2cda5349948e2d3e86e3d9186f42cf<br>/usr/local/google/home/palmer/llvm-project/libcxx/test/std/language.support/support.dynamic/destroying_delete_t.pass.cpp:31:52: error: ‘operator delete’ takes type ‘void*’ as first parameter<br> void operator delete(A*, std::destroying_delete_t);<br> ^<br>/usr/local/google/home/palmer/llvm-project/libcxx/test/std/language.support/support.dynamic/destroying_delete_t.pass.cpp:50:55: error: ‘operator delete’ takes type ‘void*’ as first parameter<br> void A::operator delete(A* a, std::destroying_delete_t) {<br> ^<br>/usr/local/google/home/palmer/llvm-project/libcxx/test/std/language.support/support.dynamic/destroying_delete_t.pass.cpp: In function ‘int main()’:<br>/usr/local/google/home/palmer/llvm-project/libcxx/test/std/language.support/support.dynamic/destroying_delete_t.pass.cpp:74:10: error: no suitable ‘operator delete’ for ‘A’<br> delete ap;<br> ^~<br></div><div>```</div><div><br></div><div>I assume the problem is that I am using GNU C++17 to compile (as stated in the message), and the feature requires C++20 (as stated at the top of destroying_delete_t.pass.cpp</div><div><br></div><div>I tried setting my CXX environment variable to clang++, but that didn't change the outcome. Following <a href="https://llvm.org/docs/CMake.html" target="_blank">the docs</a>, I also tried that, plus:</div><div><br></div><div>```</div><div>$ cmake -G Ninja -DLLVM_CXX_STD=c++20 ../llvm<br></div><div>CMake Warning:<br> Manually-specified variables were not used by the project:<br><br> LLVM_CXX_STD<br></div><div>```</div><div><br></div><div>So I'm sure I'm doing something wrong, but I don't know what else to try. Any clues? Thanks. :)</div></div>
</blockquote></div>