<div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Prasanth J wrote:<br>
> Hi,<br>
><br>
> I can able to compile LLVM using armgcc_4.3.3 (codesourcery2009q1..)..<br>
> but when i tried to run it on target it shows GCC 4.3.0 version not<br>
> found. So i copied the runtime libraries (libc.so and libgcc_s.so)<br>
> from the toolchain to the target and exported its path in<br>
> LD_LIBRARY_PATH. But when i tried to run any llvm tools on target its<br>
> crashing with Segmentation fault. What could be the problem for this.<br>
</div>Impossible to know without debugging. whats the backtrace when running<br>
the program from inside the gnu debugger gdb?<br>
and what tools did you run.<br>
<br>
What command did you run that caused the crash?<br>
<br>
What are the output from<br>
llc -version<br>
and<br>
lli -version<br>
?<br>
<div class="im"><br></div></blockquote><div><br><br>when i tried to run this command (lli -version)i got the following error<br><br>../../llvm-with-gcc433/bin/lli: /lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found (required by ../../llvm-with-gcc433/bin/lli)<br>

../../llvm-with-gcc433/bin/lli: /lib/libgcc_s.so.1: version `GCC_4.3.0' not found (required by ../../llvm-with-gcc433/bin/lli)<br><br>so i exported the path to libstdc++ and libgcc_s in LD_LIBRARY_PATH. after exporting when i tried to run lli ( or any llvm tools) i am getting a crash saying Segmentation fault.<br>

<br>i could not post the backtrace as even running gdb creates a crash.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">


><br>
> My target kernel and rootfs are compiled with armgcc-4.2.1... so<br>
> should i need to compile the kernel and rootfs with armgcc-4.3.3?<br>
</div>Probably not needed.<br>
<div class="im">><br>
> If i want to use arm-toolchain-4.2.1 , what should i do for clearing<br>
> the instruction cache call in lib/System/Memory.cpp?<br>
</div>You have to implement it using inline assembler for GCC 4.2.1 and below<br>
to work.<br>
You can check the gcc sources to see how __clear_cache got implemeted in<br>
gcc 4.3.3 or check the arm reference manual (ARM ARM):<br>
<a href="http://www.arm.com/miscPDFs/14128.pdf" target="_blank">http://www.arm.com/miscPDFs/14128.pdf</a><br>
<br>
Cheers<br>
<font color="#888888">Xerxes<br>
<br>
<br>
</font></blockquote></div><br>