<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It sounds like you’re using an incorrect version of binutils (one that targets x86 instead of ARM, for example).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You require an ARM-targetting assembler and linker.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>James<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> llvmdev-bounces@cs.uiuc.edu [mailto:llvmdev-bounces@cs.uiuc.edu] <b>On Behalf Of </b>raj raja<br><b>Sent:</b> 08 July 2011 05:24<br><b>To:</b> D S Khudia<br><b>Cc:</b> llvmdev@cs.uiuc.edu<br><b>Subject:</b> Re: [LLVMdev] as: unrecognized option '-meabi=4'<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><br><br>Hi <br><br><br>In my install directory under bin , I had<br><br>llvm-c++,llvm-g++,llvm-gconv<br><br>I tested one sample program<br><br><br>#llvm-c++ addu.c -o addu-arm<br><br>as: unrecognized option '-meabi=4'<br><br>How do i solve this issue<br><br><br>Thanks <br><br>Yuvi R<o:p></o:p></p><div><p class=MsoNormal>On Fri, Jul 8, 2011 at 9:21 AM, raj raja <<a href="mailto:yuvaraj.addu@gmail.com">yuvaraj.addu@gmail.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Thanks for your reply<br><br>I got error<br><br><b>/bin/sh: build/genmodes: not found</b><br><br>I am trying to resolve it<br><br><br>Thanks<br><br>Yuvi R<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Thu, Jul 7, 2011 at 8:10 PM, D S Khudia <<a href="mailto:daya.khudia@gmail.com" target="_blank">daya.khudia@gmail.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal><span style='font-family:"Verdana","sans-serif";color:black'>Here is how I do it on x86-64 machine running Ubuntu-11.04:</span><o:p></o:p></p><div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>1. install flex and bison</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>2. download arm-2011.03 from <a href="http://www.codesourcery.com" target="_blank">www.codesourcery.com</a> and add to path (setenv PATH ${PATH}:/home/dskhudia/projects/arm-2011.03/bin)</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>3. mkdir llvm-gcc-obj; cd llvm-gcc-obj</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>4. ../llvm-gcc-4.2-2.9.source/configure   --target=arm-none-linux-gnueabi --program-prefix=llvm- --enable-llvm=/home/dskhudia/projects/llvm-2.9/obj-arm --prefix=/home/dskhudia/projects/llvm-install-arm --with-sysroot=/home/dskhudia/projects/arm-2011.03/arm-none-linux-gnueabi/libc --with-gnu-ld=/home/dskhudia/projects/arm-2011.03/bin/arm-none-linux-gnueabi-ld --with-gnu-as=/home/dskhudia/projects/arm-2011.03/bin/arm-none-linux-gnueabi-as --with-gnu-ar=/home/dskhudia/projects/arm-2011.03/bin/arm-none-linux-gnueabi-ar --disable-bootstrap -disable-optimized --disable-multilib --enable-checking --disable-shared --enable-languages=c,c++</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>Hope that helps.</span><o:p></o:p></p></div><div><div><p class=MsoNormal>Daya<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><div><p class=MsoNormal>On Thu, Jul 7, 2011 at 7:38 AM, Yuvaraj Ragupathi <<a href="mailto:yuvaraj.addu@gmail.com" target="_blank">yuvaraj.addu@gmail.com</a>> wrote:<o:p></o:p></p></div></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Hi <br><br>I am trying to cross compile llvm-gcc front for ARM target<br><br>Followed below steps<br><br><br>#../llvm-gcc-4.2-2.9.source/configure --program-prefix=llvm- --enable-llvm=/home/yuvraj/llvm/llvm-2.9 --enable-languages=c,c++ --target=arm-none-linux-gnueabi <br><br># make<br><br>I am getting some kind of linker errors<br><br>/opt/arm-2010.09/bin/arm-none-linux-gnueabi-ld: cannot find crtn.o: No such file or directory <br><br><br><br>@ final stage.<br><br>I copied  crtn.o to current working directory. But getting same issue<br><br>How do i resolve this issue?<br><br><br>Thanks<br><br>Yuvi R<o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>