<div dir="ltr">I see bogus boostrap build failures when we're trying to use just-built Clang to build libc++:<div><br></div><div><a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/22540/steps/bootstrap%20clang/logs/stdio">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/22540/steps/bootstrap%20clang/logs/stdio</a><br></div><div><br></div><div>Do you think it can be related to one of your changes? I'm pretty sure the contents of /usr/include/string.h wasn't changed for a while :)</div><div><br></div><div>In file included from /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/libcxxabi/src/cxa_demangle.cpp:15:<br></div><div><div>In file included from /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/libcxx/include/vector:265:</div><div>In file included from /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/libcxx/include/__bit_reference:15:</div><div>In file included from /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/libcxx/include/algorithm:626:</div><div>In file included from /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/libcxx/include/cstring:61:</div><div>In file included from /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/libcxx/include/string.h:65:</div><div>/usr/include/string.h:81:1: error: unknown type name '__extern_always_inline'</div><div>__extern_always_inline void *</div><div>^</div><div>/usr/include/string.h:81:24: error: expected unqualified-id</div><div>__extern_always_inline void *</div><div>                       ^</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 11, 2016 at 11:40 AM, Richard Smith via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rsmith<br>
Date: Thu Feb 11 13:40:06 2016<br>
New Revision: 260570<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=260570&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=260570&view=rev</a><br>
Log:<br>
Work around regression in glibc 2.22: request that glibc provides the correct<br>
prototypes for <string.h> functions that are converted into overload sets in<br>
C++. This matches the existing workaround in <wchar.h>.<br>
<br>
Modified:<br>
    libcxx/trunk/include/string.h<br>
<br>
Modified: libcxx/trunk/include/string.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string.h?rev=260570&r1=260569&r2=260570&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string.h?rev=260570&r1=260569&r2=260570&view=diff</a><br>
==============================================================================<br>
--- libcxx/trunk/include/string.h (original)<br>
+++ libcxx/trunk/include/string.h Thu Feb 11 13:40:06 2016<br>
@@ -58,6 +58,10 @@ size_t strlen(const char* s);<br>
 #pragma GCC system_header<br>
 #endif<br>
<br>
+#ifdef __cplusplus<br>
+#define __CORRECT_ISO_CPP_STRING_H_PROTO<br>
+#endif<br>
+<br>
 #include_next <string.h><br>
<br>
 // MSVCRT, GNU libc and its derivates already have the correct prototype in<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div>