Hi,<br><br>I can able to compile LLVM using armgcc_4.3.3 (codesourcery2009q1..).. but when i tried to run it on target it shows GCC 4.3.0 version not found. So i copied the runtime libraries (libc.so and libgcc_s.so) from the toolchain to the target and exported its path in LD_LIBRARY_PATH. But when i tried to run any llvm tools on target its crashing with Segmentation fault. What could be the problem for this. <br>
<br>My target kernel and rootfs are compiled with armgcc-4.2.1... so should i need to compile the kernel and rootfs with armgcc-4.3.3? <br><br>If i want to use arm-toolchain-4.2.1 , what should i do for clearing the instruction cache call in lib/System/Memory.cpp?<br>
<br>Thanks and Regards,<br clear="all">Prasanth J<br>
<br><br><div class="gmail_quote">On Mon, Nov 16, 2009 at 4:12 PM, Xerxes Rånby <span dir="ltr"><<a href="mailto:xerxes@zafena.se">xerxes@zafena.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Prasanth J wrote:<br>
> Hi,<br>
><br>
> As you said i downloaded arm toolchain from codesourcery(2009q3 with<br>
> gcc 4.4.1 version).. if i use this toolchain i am getting the<br>
> following error..<br>
><br>
> make[2]: Entering directory<br>
> `/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis'<br>
> llvm[2]: Compiling LoopPass.cpp for Release build<br>
> if arm-none-linux-gnueabi-g++<br>
> -I/home/prasanth/LLVM_ARM/llvm-with-armgcc433/llvm/include<br>
> -I/home/prasanth/LLVM_ARM/llvm-with-armgcc433/llvm/lib/Analysis<br>
> -I/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/include<br>
> -I/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis<br>
> -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS<br>
> -O2 -fomit-frame-pointer -fno-exceptions -fPIC -Woverloaded-virtual<br>
> -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter<br>
> -Wwrite-strings -c -MMD -MP -MF<br>
> "/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.d.tmp"<br>
> -MT<br>
> "/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.o"<br>
> -MT<br>
> "/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.d"<br>
> /home/prasanth/LLVM_ARM/llvm-with-armgcc433/llvm/lib/Analysis/LoopPass.cpp<br>
> -o<br>
> /home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.o<br>
> ; \<br>
> then /bin/mv -f<br>
> "/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.d.tmp"<br>
> "/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.d";<br>
> else /bin/rm<br>
> "/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.d.tmp";<br>
> exit 1; fi<br>
> /home/prasanth/LLVM_ARM/llvm-with-armgcc433/llvm/lib/Analysis/LoopPass.cpp:<br>
> In member function 'void<br>
> llvm::LPPassManager::deleteLoopFromQueue(llvm::Loop*)':<br>
> /home/prasanth/LLVM_ARM/llvm-with-armgcc433/llvm/lib/Analysis/LoopPass.cpp:100:<br>
> internal compiler error: Segmentation fault<br>
> Please submit a full bug report,<br>
> with preprocessed source if appropriate.<br>
> See <<a href="https://support.codesourcery.com/GNUToolchain/" target="_blank">https://support.codesourcery.com/GNUToolchain/</a>> for instructions.<br>
> /bin/rm: cannot remove<br>
> `/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.d.tmp':<br>
> No such file or directory<br>
> make[2]: ***<br>
> [/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis/Release/LoopPass.o]<br>
> Error 1<br>
> make[2]: Leaving directory<br>
> `/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib/Analysis'<br>
> make[1]: *** [Analysis/.makeall] Error 2<br>
> make[1]: Leaving directory<br>
> `/home/prasanth/LLVM_ARM/llvm-with-armgcc441/llvm-obj/lib'<br>
> make: *** [all] Error 1<br>
><br>
> please let me know how should i resolve this error...<br>
><br>
> Thanks and Regards,<br>
> Prasanth J<br>
><br>
<br>
Make sure you are running a clean build.<br>
If you are then follow the suggested instructions in the error message<br>
and file a bugreport for your toolchain to codesourcery.<br>
<br>
/home/prasanth/LLVM_ARM/llvm-with-armgcc433/llvm/lib/Analysis/LoopPass.cpp:100:<br>
internal compiler error: Segmentation fault<br>
Please submit a full bug report,<br>
with preprocessed source if appropriate.<br>
See <<a href="https://support.codesourcery.com/GNUToolchain/" target="_blank">https://support.codesourcery.com/GNUToolchain/</a>> for instructions.<br>
<br>
Cheers<br>
<font color="#888888">Xerxes<br>
<br>
</font></blockquote></div><br>