<div dir="ltr">Hi!<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 6:16 PM, Sandeep K Chaudhary <span dir="ltr"><<a href="mailto:babbusandy2006@gmail.com" target="_blank">babbusandy2006@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alexey !<div><br></div><div>Thanks for the reply ! </div><div><br></div><div>Below is the output of 'uname -a'</div>
<div><br></div><div><div>sandeep@ubuntu:/usr/include$ uname -a</div><div>Linux ubuntu 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux</div>
</div><div><br></div><div>I recently upgraded my Linux version (to Ubuntu 14.04). Could the issue be because of that?</div><div><br></div><div>So to drop compiler-rt, I can just delete the whole directory and do an incremental build? The reason I'm asking this is - it takes more than a couple of hours for the build on my system. It would be great if I can avoid it. Please let me know.</div>
</div></blockquote><div><br></div><div>No, I think you would need to re-configure your build after deleting compiler-rt.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div><br></div><div>Thanks and regards,<br>Sandeep.</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 8:38 PM, Alexey Samsonov <span dir="ltr"><<a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="gmail_extra">Hi,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Can you provide details about your system (uname -a)? It is weird that you don't have __NR_open defined in your system headers.</div>
<div class="gmail_extra">As a workaround, you may drop compiler-rt repository from your checkout, it's possible to build Clang without it.</div><div class="gmail_extra"><br><div class="gmail_quote"><div>On Mon, Jun 9, 2014 at 5:08 PM, Sandeep K Chaudhary <span dir="ltr"><<a href="mailto:babbusandy2006@gmail.com" target="_blank">babbusandy2006@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hi guys,<div><br>
</div><div>I am following this[1] tutorial to install clang. However, I have made a small change in the configure command, and I am running it with '--enable-optimized' option to avoid the debug build. </div>
<div><br></div><div>I am getting the errors (given at the end) related to <b>undeclared identifiers '__NR_*'</b>. Can someone please provide some input about how to tackle this issue? </div><div><br></div><div>On my other machine, I followed the same guide[1] (without the --enable-optimized option), and everything built successfully.</div>
<div><br></div><div>[1] <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a><br></div><div><br></div><div>====================</div><div>warning: <a href="http://clang_darwin.mk" target="_blank">clang_darwin.mk</a>: dropping arch 'x86_64h' from lib 'ubsan_osx' (ld does not support it)<br>
</div><div>
<div>make[5]: Entering directory `/home/sandeep/llvm_clang/llvm/projects/compiler-rt'</div><div> COMPILE: clang_linux/san-i386/i386: /home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc</div>
<div>/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:123:27: error: use of undeclared identifier '__NR_open'</div><div> return internal_syscall(SYSCALL(open), (uptr)filename, flags);</div>
<div> ^</div><div>/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_syscall_generic.inc:17:24: note: expanded from macro 'SYSCALL'</div><div># define SYSCALL(name) __NR_ ## name</div>
<div> ^</div><div><scratch space>:62:1: note: expanded from here</div><div>__NR_open</div><div>^</div><div>/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:132:27: error: use of undeclared identifier '__NR_open'</div>
<div> return internal_syscall(SYSCALL(open), (uptr)filename, flags, mode);</div><div> ^</div><div>--------------</div><div><br></div><div>/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:516:27: error: use of undeclared identifier '__NR_fork'</div>
<div> return internal_syscall(SYSCALL(fork));</div><div> ^</div><div>/home/sandeep/llvm_clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_syscall_generic.inc:17:24: note: expanded from macro 'SYSCALL'</div>
<div># define SYSCALL(name) __NR_ ## name</div><div> ^</div><div><scratch space>:62:1: note: expanded from here</div><div>__NR_fork</div><div>^</div><div>12 errors generated.</div><div>make[5]: *** [/home/sandeep/llvm_clang/build/tools/clang/runtime/compiler-rt/clang_linux/san-i386/i386/SubDir.lib__sanitizer_common/sanitizer_linux.o] Error 1</div>
<div>make[5]: Leaving directory `/home/sandeep/llvm_clang/llvm/projects/compiler-rt'</div><div>make[4]: *** [BuildRuntimeLibraries] Error 2</div><div>make[4]: Leaving directory `/home/sandeep/llvm_clang/build/tools/clang/runtime/compiler-rt'</div>
<div>make[3]: *** [compiler-rt/.makeall] Error 2</div><div>make[3]: Leaving directory `/home/sandeep/llvm_clang/build/tools/clang/runtime'</div><div>make[2]: *** [all] Error 1</div><div>make[2]: Leaving directory `/home/sandeep/llvm_clang/build/tools/clang'</div>
<div>make[1]: *** [clang/.makeall] Error 2</div><div>make[1]: Leaving directory `/home/sandeep/llvm_clang/build/tools'</div><div>make: *** [all] Error 1</div><div><br></div></div><div>Thanks and regards,<br>Sandeep.</div>
<div><br></div></div>
<br></div></div><div>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></div></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div>
</font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Thanks and regards,<br>Sandeep K Chaudhary.
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div>
</div></div>