<div dir="ltr">Hi Bala,<div><br></div><div>Without more information it'll be difficult to debug. What I would do is look at the CMake error log file. That will tell you the exact program it tried to run to determine if the host compiler could find libstdc++, and the  error it got. From there, it should be easier to determine what the actual problem was.</div><div><br></div><div>Cheers,</div><div><br></div><div>James</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 5 May 2016 at 11:20 Balasaheb Dabhade 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><span style="font-family:georgia,serif">Hello All,<br></span></div><div><span style="font-family:georgia,serif"><br></span></div><div><span style="font-family:georgia,serif">I am building llvm-clang tool chain for <b>arm target</b> by following the steps from <br></span></div><span style="font-family:georgia,serif"><a href="http://clang.llvm.org/docs/CrossCompilation.html" target="_blank">http://clang.llvm.org/docs/CrossCompilation.html</a><br></span></div><div><span style="font-family:georgia,serif"><br></span></div><span style="font-family:georgia,serif"><b>However when I tried following cmake command for build tool chain it gives the error message :</b><br><br>#CC='clang' CXX='clang++' cmake -G Ninja /home/iiita/llvm-exp/llvm -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=/home/iiita/llvm-exp/llvm/build -DLLVM_TABLEGEN=/usr/bin/host/llvm-tblgen -DCLANG_TABLEGEN=/usr/bin/host/clang-tblgen -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target armv7a-linux-gnueabihf -mcpu=cortex-a9 -I/usr/arm-linux-gnueabihf/include/c++/4.7.1/arm-linux-gnueabihf/ -I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name arm-linux-gnueabihf-gcc' <br><br><br></span><div><div><span style="font-family:georgia,serif"><b>error :</b><br><br>CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message):<br>  Host Clang must be able to find libstdc++4.7 or newer!<br>Call Stack (most recent call first):<br>  cmake/config-ix.cmake:14 (include)<br>  CMakeLists.txt:412 (include)<br><br></span></div><div><span style="font-family:georgia,serif">I have installed </span><span style="font-family:georgia,serif">libstdc++4.7-dev library but still same issue is coming.<br><br></span></div><div><span style="font-family:georgia,serif">Does anyone know how to resolve this issue?<br><br></span></div><div><span style="font-family:georgia,serif">Thanks,<br></span></div><div><span style="font-family:georgia,serif">Bala</span><span style="font-family:monospace,monospace"><br></span></div><div><br><br></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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>