<div dir="ltr">Thanks a lot  Renoto,<div><br></div><div>I really appreciate your help.</div><div><br></div><div>As you mentioned I have modified the command to include <span style="font-size:12.8px">gcc libs path(-L ) option in cmake command as below :</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">cmake -G Ninja /home/iiita/crossbuild/llvm -DLLVM_ENABLE_PIC=False -DLLVM_ENABLE_LIBCXX=ON -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=/home/iiita/crossbuild/build -DLLVM_TABLEGEN=/home/iiita/llvm-3.8/build/bin/llvm-tblgen -DCLANG_TABLEGEN=/home/iiita/llvm-3.8/build/bin/clang-tblgen -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target <font color="#ff0000"><b>arm-linux-gnueabihf-gcc</b></font> -mcpu=cortex-a9 -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/arm-linux-gnueabihf/ -I/usr/arm-linux-gnueabihf/include/ <font color="#ff0000"><b>-L/usr/lib/gcc/arm-linux-gnueabihf</b></font> -mfloat-abi=hard -ccc-gcc-name arm-linux-gnueabihf-gcc'</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">However, I am still facing the issue since <b>cmake not able to find header file path as per </b></span><font face="tahoma, sans-serif"><span style="font-size:12.8px"><b>CMakeError.log (attached for email for reference) error message</b></span></font><font face="tahoma, sans-serif"><span style="font-size:12.8px">. </span></font></div><div><span style="font-family:tahoma,sans-serif;font-size:12.8px"><br></span></div><div><span style="font-family:tahoma,sans-serif;font-size:12.8px">Do you have any idea about how to include header file path in cmake command line or is there any other thing I am missing?</span></div><div><span style="font-family:tahoma,sans-serif;font-size:12.8px"><br></span></div><div><span style="font-family:tahoma,sans-serif;font-size:12.8px"><br></span></div><div><span style="font-family:tahoma,sans-serif;font-size:12.8px">Thanks,</span></div><div><span style="font-family:tahoma,sans-serif;font-size:12.8px">Bala</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"> </span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 8, 2016 at 7:52 PM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 6 May 2016 at 18:28, Balasaheb Dabhade via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
</span><span class="">> -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target<br>
> armv7a-linux-gnueabihf -mcpu=cortex-a9<br>
> -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/arm-linux-gnueabihf/<br>
> -I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name<br>
> arm-linux-gnueabihf-gcc'<br>
<br>
</span>I can think of two things:<br>
<br>
1. You're using a triple that is different from your gcc name:<br>
<br>
'-target armv7a-linux-gnueabihf'<br>
<br>
vs<br>
<br>
'-ccc-gcc-name arm-linux-gnueabihf-gcc'<br>
<br>
You should use the target as "arm-linux-gnueabihf".<br>
<br>
2. You're not including the GCC headers or libraries.<br>
<br>
You need to find where GCC keeps its libraries (normally<br>
/usr/lib/gcc/arm-linux-gnueabihf) and headers (if necessary).<br>
<br>
In your case, just adding -L"where your gcc libs are" should be enough.<br>
<br>
cheers,<br>
--renato<br>
</blockquote></div><br></div>