<div dir="ltr"><div dir="ltr">The main reason is that GLIBC uses non-standards compliant extensions for programmers convenience and LLVM want's to stick to the standards as much as possible.</div><div><br>LLVM also uses some non-standard extensions. For example asm goto; the last time I checked Clang did not support ASM GOTO and so later linux kernels cannot be compiled. </div><div><br></div><div>The general answer comes down to standards compliance; that's my understanding.</div><div><br></div><div>Best,</div><div>Owen</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 10, 2019 at 11:23 AM Md Salman Ahmed via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</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 style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;">Hi All,<div><br></div><div>I was trying to build GNU C Library (glibc implementation) using the clang compiler in a x86_64 Linux system. However, whenever I try to set the clang compiler as the compiler in the configure script of glibc, I am getting the following error.</div><div><br></div><div><span style="color:rgb(36,39,41);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;font-variant-ligatures:normal;white-space:pre-wrap;background-color:rgb(239,240,241)">checking if clang is sufficient to build libc... no</span></div><div><br></div><div><br></div><div>I did a quick research to see why does clang compiler is not sufficient to build the glibc implementation and found that the glibc implementation may have some target specific features that GCC only can support. But I am not getting what are the exact reasons behind this insufficiency.</div><div><br></div><div>Can anybody please point me what are the exact reason behind this insufficiency. Some examples would also help. Any kind of help would be greatly appreciated. Thank you!</div></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>