------- Additional Comments From k dot ponting at aurix dot com 2005-01-12 12:39 ------- I have an apparently similar problem attempting to build a gcc 3.4.3 cross- compiler for tms320c30 (target c4x).
I have built and installed binutils 2.15 then get ICE when building gcc. Cross-compiler build sequence: 1) Build binutils 2.15: mkdir tms320 cd tms320 ../binutils-2.15/configure --prefix=/usr/local/tms320 --program-prefix=tms320- - -target=c4x > ../configure.binutils.log make -s > ../make.binutils.log 2>&1 make install rm -rf * 2) Create directory which seems to be wanted by build mkdir /usr/local/tms320/lib/gcc/c4x/3.4.3/../../../../c4x/sys-include 3) Update path to reference installed tms320 tools (first build attempt failed at this point) PATH=/usr/local/tms320/bin:$PATH export PATH 4) Attempt to build which ended in failure ../gcc-3.4.3/configure --prefix=/usr/local/tms320 --program-prefix=tms320- -- target=c4x --enable-languages=c,c++ > ../configure.gcc.log nice make -s > ../build.gcc.log 2>&1 Output of gcc -v from host: ~~~~~~~~~~~~~~~~~~~~~~~~~~ Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld --with-gnu- as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib -- libexecdir=/usr/sbin --mandir=/usr/share/man --infodir=/usr/share/info --enable- languages=c,ada,c++,f77,pascal,java,objc --enable-libgcj --enable- threads=posix --with-system-zlib --enable-nls --without-included-gettext -- enable-interpreter --enable-sjlj-exceptions --disable-version-specific-runtime- libs --enable-shared --disable-win32-registry --enable-java-gc=boehm --disable- hash-synchronization --verbose --target=i686-pc-cygwin --host=i686-pc-cygwin -- build=i686-pc-cygwin Thread model: posix gcc version 3.3.1 (cygming special) Command which failed ~~~~~~~~~~~~~~~~~~~~ cd gcc /cygdrive/c/cygnus/gcc/tms320/gcc/xgcc -save-temps - B/cygdrive/c/cygnus/gcc/tms320/gcc/ -B/usr/local/tms320/c4x/bin/ - B/usr/local/tms320/c4x/lib/ -isystem /usr/local/tms320/c4x/include - isystem /usr/local/tms320/c4x/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W - Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style- definition -isystem ./include -Dexit=unused_exit -g -DIN_LIBGCC2 - D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-3.4.3/gcc - I../../gcc-3.4.3/gcc/. -I../../gcc-3.4.3/gcc/../include -msmall -DL__main - c ../../gcc-3.4.3/gcc/libgcc2.c -o libgcc/small/__main.o Output of xgcc -v ~~~~~~~~~~~~~~~~~ Using built-in specs. Configured with: ../gcc-3.4.3/configure --prefix=/usr/local/tms320 --program- prefix=tms320- --target=c4x --enable-languages=c,c++ Thread model: single gcc version 3.4.3 Output of failed command ~~~~~~~~~~~~~~~~~~~~~~~~ ../../gcc-3.4.3/gcc/libgcc2.c: In function `__do_global_dtors': ../../gcc-3.4.3/gcc/libgcc2.c:1607: error: insn does not satisfy its constraints: (insn:HI 44 53 45 0 ../../gcc-3.4.3/gcc/libgcc2.c:1594 (set (reg/s/f:QI 8 ar0 [orig:37 p ] [37]) (mem/f:QI (symbol_ref:QI ("*p$1") [flags 0x2] <var_decl 0x10110d20 p>) [5 p+0 S1 A32])) 8 {movqi_noclobber} (nil) (nil)) ../../gcc-3.4.3/gcc/libgcc2.c:1607: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. mkdir tms320 cd tms320 ../binutils-2.15/configure --prefix=/usr/local/tms320 --program-prefix=tms320- - -target=c4x > configure.binutils.log -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6689