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