<div dir="ltr"><div>It probably tries doing a standalone build of clang without LLVM.</div>clang/config.h doesn't seem to include the HAVE_PTHREAD_GETSPECIFIC used in Context.cpp.<div>We can either add the corresponding macro to clang's config.h or follow jyknight's suggestions and figure out if we can remove pthread-specific code and fix the buildbot in a different way.<br><div><div><br></div></div></div></div><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Feb 6, 2018 at 10:59 AM Mike Lothian via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">FireBurn added a comment.<br>
<br>
This breaks compilation for me on Gentoo's clang-9999.ebuild<br>
<br>
The following patch fixes things for me<br>
<br>
  commit a4c071b16bbbc84bbb960000d90b51bed8a12127 (HEAD -> master)<br>
  Author: Mike Lothian <<a href="mailto:mike@fireburn.co.uk" target="_blank">mike@fireburn.co.uk</a>><br>
  Date:   Tue Feb 6 09:55:41 2018 +0000<br>
<br>
      [clangd] Fix include to use Clang's config.h<br>
<br>
      This fixes:<br>
<br>
      [clangd] Use pthread instead of thread_local to support more runtimes.<br>
<br>
  diff --git a/clangd/Context.cpp b/clangd/Context.cpp<br>
  index 23006778..aed832f4 100644<br>
  --- a/clangd/Context.cpp<br>
  +++ b/clangd/Context.cpp<br>
  @@ -8,7 +8,7 @@<br>
   //===---------------------------------------------------------------------===//<br>
<br>
   #include "Context.h"<br>
  -#include "llvm/Config/config.h"<br>
  +#include "clang/Config/config.h"<br>
   #include <cassert><br>
<br>
   // The thread-local Context is scoped in a function to avoid init-order issues.<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D42742" rel="noreferrer" target="_blank">https://reviews.llvm.org/D42742</a><br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Regards,</div><div>Ilya Biryukov</div></div></div></div></div>