This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Problem building powerpc cross - array too large?


I'm trying to build gcc-3.2.1 as a powerpc cross compiler for an embedded powerpc (no OS). The build is failing with
gcc/config/rs6000/rs6000.h:2517: size of array `rs6000_reg_names'
is too large

I assume it's a headers problem, but I can't figure out how to set things up right. I've tried '--without-headers', '--with-headers' pointing to the newlib headers, and anything else I could think of, but it still fails. I've searched the archives and couldn't see anyone else complaining about it, so I imagine it's some stupidity on my part.

Any suggestions?

Here are the gritty details:

---------------------------

Error:
/data/ecad_libs/gcc-3.2.1-obj-ppc/gcc/gcc/xgcc -B/data/ecad_libs/gcc-3.2.1-obj-ppc/gcc/gcc/ -nostdinc -B/data/ecad_libs/gcc-3.2.1-obj-ppc/gcc/powerpc-elf-eabi/newlib/ -isystem /data/ecad_libs/gcc-3.2.1-obj-ppc/gcc/powerpc-elf-eabi/newlib/targ-include -isystem /data/ecad_libs/gcc-3.2.1/newlib/libc/include -B/data/ecad_libs/gcc-3.2.1-powerpc-elf-eabi/powerpc-elf-eabi/bin/ -B/data/ecad_libs/gcc-3.2.1-powerpc-elf-eabi/powerpc-elf-eabi/lib/ -isystem /data/ecad_libs/gcc-3.2.1-powerpc-elf-eabi/powerpc-elf-eabi/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../gcc-3.2.1/gcc -I../../../gcc-3.2.1/gcc/. -I../../../gcc-3.2.1/gcc/config -I../../../gcc-3.2.1/gcc/../include -mrelocatable-lib -mno-eabi -mstrict-align -DL_muldi3 -c ../../../gcc-3.2.1/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:15,
from ../../../gcc-3.2.1/gcc/libgcc2.c:36:
../../../gcc-3.2.1/gcc/config/rs6000/rs6000.h:2517: size of array `rs6000_reg_names' is too large

---------------------------

./config.guess: hppa2.0-hp-hpux10.20

---------------------------

xgcc -v (as far as it got):
Using built-in specs.
Configured with: ../../gcc-3.2.1/configure --prefix=/data/ecad_libs/gcc-3.2.1-powerpc-elf-eabi --target=powerpc-elf-eabi --with-gnu-as --with-as=/data/ecad_libs/gcc-3.2.1-powerpc-elf-eabi/bin/powerpc-elf-eabi-as --with-gnu-ld --with-ld=/data/ecad_libs/gcc-3.2.1-powerpc-elf-eabi/bin/powerpc-elf-eabi-ld --with-stabs --enable-altivec --enable-languages=c,c++ --without-headers --with-newlib
Thread model: single
gcc version 3.2.1

Thanks.
--
John Breen


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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