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: Problem building stage 1 ARM C compiler



On Aug 31, 2007, at 11:44 AM, Rick Mann wrote:


Hi. I just built binutils, and am trying to build a stage 1 C compiler, targeting ARM (actually -mcpu=xscale -march=armv5te). Make results in an error (see below). xgcc is passing -m to the as it built, it seems, and as doesn't like that. Any suggestions?

TIA,
Rick


../configure --prefix=/usr/local/arm-elf --target=arm-elf --with- cpu=xscale --with-arch=armv5te --with-float=soft --with-newlib -- disable-nls --enable-threads=no --enable-symvers=gnu --enable- __cxa_atexit --enable-languages=c --disable-shared



/Users/rmann/Desktop/gcc/gcc-4.2.1/arm-elf-build/./gcc/xgcc -B/ Users/rmann/Desktop/gcc/gcc-4.2.1/arm-elf-build/./gcc/ -B/usr/local/ arm-elf/arm-elf/bin/ -B/usr/local/arm-elf/arm-elf/lib/ -isystem / usr/local/arm-elf/arm-elf/include -isystem /usr/local/arm-elf/arm- elf/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold- style-definition -isystem ./include -I. -I. -I../../gcc -I../../ gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../ gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss - fno-toplevel-reorder -Dinhibit_libc \
-c ../../gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
/Users/rmann/Desktop/gcc/gcc-4.2.1/arm-elf-build/./gcc/as: line 2: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
make[3]: *** [crtbegin.o] Error 1
make[2]: *** [extra] Error 2
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2





A little more info. xgcc is calling as like this:


$ /Users/rmann/Desktop/gcc/gcc-4.2.1/arm-elf-build/./gcc/as - march=armv5te -mfloat-abi=soft -o crtbegin.o /var/tmp//ccL30WwD.s
/Users/rmann/Desktop/gcc/gcc-4.2.1/arm-elf-build/./gcc/as: line 2: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]



It seems a stage 1 build doesn't use the binutils as? What did I do wrong here?


TIA,
Rick


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