<div dir="ltr">Hi all,<div><br></div><div>I compiled the <b>llvm3.9</b> source code on the <b>Nvidia TX1</b> board. And now I am following the document in the docs/CompileCudaWithLLVM.rst to compile cuda program with clang++.</div><div><br></div><div>However, when I compile `<a href="http://axpy.cu">axpy.cu</a>` using `nvcc`, <b>nvcc</b> can generate the correct the binary; </div><div><br></div><div>while compiling `<a href="http://axpy.cu">axpy.cu</a>` using clang++, the detailed command is `clang++ <a href="http://axpy.cu">axpy.cu</a> -o axpy --cuda-gpu-arch=sm_53 -L/usr/local/cuda/lib64 -lcudart_static -ldl -lrt -pthread`, <b>clang++</b> generate the following error:`/usr/include/features.h:367:12: fatal error: 'sys/cdefs.h' file not found</div><div>#  include <sys/cdefs.h>`. </div><div><br></div><div>And I find that 'sys/cdefs.h' is included in the directory `/usr/include/aarch64-linux-gnu/sys`.</div><div><br></div><div>Anybody ever came accross the same problems? Thanks!</div><div><br></div></div>