This is the mail archive of the gcc-bugs@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]

Internal compiler error when trying to cross-compile MIPS


Hello.  I'm seeing an internal compiler error in the latest egcs/gcc
when trying to build a MIPS cross-compiler under FreeBSD x86.

Here's the config.status file from my configure command:

    #!/bin/sh
    # This file was generated automatically by configure.  Do not edit.
    # This directory was configured as follows:
    ../egcs/configure --with-gcc-version-trigger=/u/src/gnu/egcs/gcc/version.c --host=i386-unknown-freebsdelf4.0 --target=mips-unknown-elf --with-gnu-as --with-gnu-ld --with-newlib --norecursion 
    # 

The build dies with an internal error when trying to build part of the
libgcc2 library, specifically something to do with the exception
handling code that's built with "_eh" in the Makefile.

I only need the C compiler and not the C++, but making it build just C
instead of using the "cross" target didn't work around this problem.

The output from the crash is attached below as text.  The files x.c,
x.i, and x.s (really just gcc's libgcc2.c) are also attached below as
bzip2-ed source.

Please feel free to contact me for any more details.


	-- Parag Patel
	    <parag@codegen.com>
	    1.408.370.7976

+ name=_eh
+ /u/src/gnu/obj-mips/gcc/xgcc -B/u/src/gnu/obj-mips/gcc/ -B/usr/local/mips-unknown-elf/bin/ -I/usr/local/mips-unknown-elf/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -I./include -G 0 -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -fexceptions -I. -I../../egcs/gcc -I../../egcs/gcc/config -I../../egcs/gcc/../include -DL_eh -v --save-temps x.out x.c
xgcc: x.out: No such file or directory
Reading specs from /u/src/gnu/obj-mips/gcc/specs
gcc version 2.96 20000415 (experimental)
 /u/src/gnu/obj-mips/gcc/cpp -lang-c -v -I/usr/local/mips-unknown-elf/include -I./include -I. -I../../egcs/gcc -I../../egcs/gcc/config -I../../egcs/gcc/../include -iprefix /u/src/gnu/obj-mips/gcc/../lib/gcc-lib/mips-unknown-elf/2.96/ -isystem /usr/local/mips-unknown-elf/bin/include -isystem /u/src/gnu/obj-mips/gcc/include -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -Dmips -DMIPSEB -DR3000 -D_mips -D_MIPSEB -D_R3000 -D__mips__ -D__MIPSEB__ -D__R3000__ -D__mips__ -D_MIPSEB -D_R3000 -D__mips -D__MIPSEB -D__R3000 -D__mips -D__OPTIMIZE__ -g -g1 -D__LANGUAGE_C -D_LANGUAGE_C -DLANGUAGE_C -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -DCROSS_COMPILE -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -DL_eh x.c x.i
GNU CPP version 2.96 20000415 (experimental) (cpplib)
 [AL 1.1, MM 40] BSD Mips
ignoring nonexistent directory `/usr/local/mips-unknown-elf/bin/include'
ignoring nonexistent directory `/u/src/gnu/obj-mips/lib/gcc-lib/mips-unknown-elf/2.96/include'
ignoring nonexistent directory `/u/src/gnu/obj-mips/mips-unknown-elf/sys-include'
ignoring nonexistent directory `/u/src/gnu/obj-mips/mips-unknown-elf/include'
ignoring nonexistent directory `/usr/local/lib/gcc-lib/mips-unknown-elf/2.96/include'
ignoring nonexistent directory `/usr/local/mips-unknown-elf/sys-include'
ignoring duplicate directory `/u/src/gnu/obj-mips/gcc/include'
ignoring duplicate directory `/usr/local/mips-unknown-elf/include'
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/mips-unknown-elf/include
 include
 .
 ../../egcs/gcc
 ../../egcs/gcc/config
 ../../egcs/include
End of search list.
 /u/src/gnu/obj-mips/gcc/cc1 x.i -G 0 -quiet -dumpbase x.c -g -g1 -O2 -O2 -version -fexceptions -o x.s
GNU C version 2.96 20000415 (experimental) (mips-unknown-elf) compiled by GNU C version 2.95.2 19991024 (release).
x.c: In function `throw_helper':
x.c:3838: Insn does not satisfy its constraints:
(insn 61 707 63 (parallel[ 
            (set (mem/s:BLK (reg:SI 4 a0) 0)
                (mem/s:BLK (reg:SI 5 a1) 0))
            (clobber (reg:SI 6 a2))
            (clobber (reg:SI 7 a3))
            (clobber (reg:SI 8 t0))
            (clobber (reg:SI 9 t1))
            (use (const_int 16 [0x10]))
            (use (const_int 4 [0x4]))
            (use (const_int 0 [0x0]))
        ] ) 276 {movstrsi_internal} (nil)
    (nil))
x.c:3838: Internal compiler error in `reload_cse_simplify_operands', at reload1.c:8133
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

BZip2 compressed data

BZip2 compressed data

BZip2 compressed data


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