This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems building ARM compiler


Jeff Rhyason wrote:
Hi,

I'm trying to build a native ARM compiler from an x86 machine.  I
get "/usr/lib/crt1.o: could not read symbols: File in wrong format"
while configuring the stage2 compiler.  What should I set to get
it to not use the host's libraries?  (Shouldn't the stage2 compiler
be using $PREFIX/lib/crt1.o?)

Thanks for any help,
Jeff

% uname -io
i386 GNU/Linux
% rm -fr * ;  ../gcc/configure --prefix=$ARMLINUX --host=arm-linux --enable-languages=c --with-float=softfp && make

Your host is x86, not arm. You don't need to specify --host= it will be recognized automatically.

Specify your target: --target=arm-linux

--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]