<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Moreover, <br><br> ../llvm-gcc4.2-2.6.source/configure --prefix=`pwd`/../install --program-prefix=llvm- --enable-llvm=/home/LLVM/llvm-2.6/ --enable-languages=c,c++  <br>--with-gnu-ld=/home/arm/bin/arm-elf-ld <br>--with-gnu-as=/home/arm/bin/arm-elf-as  <br>--with-arch=armv7  <br>--target=arm-elf<br><br>and then make target=arm-elf gives the following error:<br><br>Unknown arch used in --with-arch=armv7<br><br>Thanks.<br><br>--- On <b>Sun, 1/17/10, corina s <i><corina_fff@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: corina s <corina_fff@yahoo.com><br>Subject: Re: [LLVMdev] LLVM-gcc for ARM<br>To: "Anton Korobeynikov" <anton@korobeynikov.info>, llvmdev@cs.uiuc.edu<br>Date: Sunday, January 17, 2010, 1:00 AM<br><br><div
 id="yiv1553858758"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top"><div id="yiv881771016">Thanks for your tips.. But I'm still getting errors.<br><br>../llvm-gcc4.2-2.6.source/configure --prefix=`pwd`/../install --program-prefix=llvm- --enable-llvm=/home/LLVM/llvm-2.6/ --enable-languages=c,c++  --with-gnu-ld=/home/arm/bin/arm-elf-ld <br>--with-gnu-as=/home/arm/bin/arm-elf-as  <br>--with-cpu=cortex-a8  <br>--target=arm-elf<br><br><span style="font-weight: bold;">Errors:</span><br>>><br>checking for g++ that supports -ffunction-sections -fdata-sections... yes<br>configure: error: No support for this host/target combination..<br>make[1]: *** [configure-target-libstdc++-v3] Error 1<br>>><br><br>Thank you for your
 help,<br>Corina.<br><br>--- On <b>Sat, 1/16/10, Anton Korobeynikov <i><anton@korobeynikov.info></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Anton Korobeynikov <anton@korobeynikov.info><br>Subject: Re: [LLVMdev] LLVM-gcc for ARM<br>To: "corina s" <corina_fff@yahoo.com><br>Cc: llvmdev@cs.uiuc.edu<br>Date: Saturday, January 16, 2010, 6:09 PM<br><br><div class="plainMail">Hello<br><br>> /tmp/ccm99Neh.s:711: Error: selected
 processor does not support `sxtb r1,r1'<br>> make[3]: *** [libgcc/thumb/unwind-dw2-fde.o] Error 1<br>><br>> Any ideas?<br>Yes. LLVM defaults to ARMv5 in codegeneration and does not support<br>ARMv4. Without any extra option arm-elf-as assumes ARMv4 and thus<br>gives you these errors. So:<br><br>1. If your desired target platform is ARMv4 and not newer - then<br>you're out of luck<br>2. Otherwise - add --with-cpu or --with-arch to llvm-gcc configure to<br>select the processor / arch desired.<br><br>It seems that you're interested in Cortex CPUs<br>("/tmp/arm-cortex-toolchain"), then your desired arch is armv7,<br>configure with --with-arch=armv7 or e.g. --with-cpu=cortex-a8<br><br>--<br>With best regards, Anton Korobeynikov<br>Faculty of Mathematics and Mechanics, Saint Petersburg State University<br></div></blockquote></div></td></tr></tbody></table><br>



      </div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>LLVM Developers mailing list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="/mc/compose?to=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></div></blockquote></td></tr></table><br>