<div dir="ltr"><div>Hi,</div><div><br></div><div>I am facing the following issue when trying to build compiler-rt:</div><div><br></div><div>In file included from /llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:115:0:</div><div>/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc: In function ▒__sanitizer::uptr __sanitizer::internal_open(const char*, int)▒:</div><div>/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_syscall_generic.inc:17:24: error: ▒__NR_open▒ was not declared in this scope</div><div> # define SYSCALL(name) __NR_ ## name</div><div>                        ^</div><div>/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:150:27: note: in expansion of macro ▒SYSCALL▒</div><div>   return internal_syscall(SYSCALL(open), (uptr)filename, flags);</div><div><br></div><div>When I checked, I can see the __NR_open call is defined in the following headers in my system:</div><div><br></div><div>$ grep -rni __NR_open /usr/include/</div><div>...</div><div>> /usr/include/asm-generic/unistd.h:716:#define __NR_open 1024</div><div>> /usr/include/asm/unistd.h:716:#define __NR_open 1024</div><div><br></div><div><br></div><div>Machine details:</div><div>Linux jctli20 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux</div><div><br></div><div>Ubuntu 14.04</div><div><br></div><div>Does anyone know what is going wrong and is there any workaround for this?</div><div><br></div><div>-- <br></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thanx & Regards <br></div>
<div><b>Mayur Pandey </b><br></div>
<div style="color:rgb(0,0,0)"><span style="font-size:12.8px;color:rgb(34,34,34)">+91-9742959541</span><br></div><div><font color="#3333ff"></font><font color="#3333ff"> <br></font></div>
<div> </div>
<div> </div></div></div></div></div>
</div>