[LLVMdev] as: unrecognized option '-meabi=4'

James Molloy james.molloy at arm.com
Thu Jul 7 23:56:05 PDT 2011



It sounds like you're using an incorrect version of binutils (one that
targets x86 instead of ARM, for example).


You require an ARM-targetting assembler and linker.




From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of raj raja
Sent: 08 July 2011 05:24
To: D S Khudia
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] as: unrecognized option '-meabi=4'



In my install directory under bin , I had


I tested one sample program

#llvm-c++ addu.c -o addu-arm

as: unrecognized option '-meabi=4'

How do i solve this issue


Yuvi R

On Fri, Jul 8, 2011 at 9:21 AM, raj raja <yuvaraj.addu at gmail.com> wrote:

Thanks for your reply

I got error

/bin/sh: build/genmodes: not found

I am trying to resolve it


Yuvi R


On Thu, Jul 7, 2011 at 8:10 PM, D S Khudia <daya.khudia at gmail.com> wrote:

Here is how I do it on x86-64 machine running Ubuntu-11.04:


1. install flex and bison

2. download arm-2011.03 from www.codesourcery.com and add to path (setenv
PATH ${PATH}:/home/dskhudia/projects/arm-2011.03/bin)

3. mkdir llvm-gcc-obj; cd llvm-gcc-obj

4. ../llvm-gcc-4.2-2.9.source/configure   --target=arm-none-linux-gnueabi
-ar --disable-bootstrap -disable-optimized --disable-multilib
--enable-checking --disable-shared --enable-languages=c,c++


Hope that helps.




On Thu, Jul 7, 2011 at 7:38 AM, Yuvaraj Ragupathi <yuvaraj.addu at gmail.com>


I am trying to cross compile llvm-gcc front for ARM target

Followed below steps

#../llvm-gcc-4.2-2.9.source/configure --program-prefix=llvm-
--enable-llvm=/home/yuvraj/llvm/llvm-2.9 --enable-languages=c,c++

# make

I am getting some kind of linker errors

/opt/arm-2010.09/bin/arm-none-linux-gnueabi-ld: cannot find crtn.o: No such
file or directory 

@ final stage.

I copied  crtn.o to current working directory. But getting same issue

How do i resolve this issue?


Yuvi R

LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110708/a016d242/attachment.html>

More information about the llvm-dev mailing list