We have had a script for a while that does this for you in <a href="http://llvm.org/svn/llvm-project/llvm/trunk/utils/crosstool/ARM/">http://llvm.org/svn/llvm-project/llvm/trunk/utils/crosstool/ARM/</a> .<div>It also uses the CodeSourcery toolchain so it saves you some effort.</div>
<div><br></div><div>Does that work for you?</div><div><br><div class="gmail_quote">On Mon, Jan 18, 2010 at 2:52 PM, Viktor Kutuzov <span dir="ltr"><<a href="mailto:vkutuzov@accesssoftek.com">vkutuzov@accesssoftek.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello Corina,<br>
<br>
I used a two-stage sequence to build the llvm and llvm-gcc with the codesourcery toolchain and my custom built arm toolchain. There is some scripted chunks for each step. I have attached them as a single file to this email. May be it will help you somehow.<br>
<br>
Viktor.<br>
<br>
---<br>
From: <a href="mailto:llvmdev-bounces@cs.uiuc.edu">llvmdev-bounces@cs.uiuc.edu</a> [<a href="mailto:llvmdev-bounces@cs.uiuc.edu">llvmdev-bounces@cs.uiuc.edu</a>] On Behalf Of corina s [<a href="mailto:corina_fff@yahoo.com">corina_fff@yahoo.com</a>]<br>
Sent: Friday, January 15, 2010 12:54 PM<br>
<div class="im">To: <a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a><br>
</div>Subject: [LLVMdev] LLVM-gcc for ARM<br>
<div><div></div><div class="h5"><br>
<br>
Hello,<br>
<br>
I am building llvm-gcc4.2-2.6 for ARM target.<br>
I used the next command line option:>>../configure --enable-languages=c,c++ --enable-checking --target=arm-eabi>> and then>> make target_alias=arm-eabi>>And then I obtain the following error:In file included from ../../gcc/config/arm/arm.c:59:./../../libcpp/internal.h: In function ‘ufputs’:./../../libcpp/internal.h:693: warning: implicit declaration of function ‘fputs_unlocked’../../gcc/config/arm/arm.c: At top level:../../gcc/config/arm/arm.c:514: error: ‘MASK_INTERWORK’ undeclared here (not in a function)../../gcc/config/arm/arm.c: In function ‘optimization_options’:../../gcc/config/arm/arm.c:23444: warning: unused parameter ‘level’What would be the problem?It is OK<br>
the configure line? Thanks,Corina</div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>