problems building ARM compiler

Michael Eager
Sat Sep 30 02:40:00 GMT 2006

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
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

More information about the Gcc-help mailing list