Hello, I am experiencing the error below while building gcc 4.2.2 for the mips64vr-elf target. I have confirmed the same happens with gcc-4.2-20080116.
Versioning: binutils 2.18 newlib-1.16.0 GCC configured this way: $ CFLAGS=-O2 $DEPACK_DIR/gcc-4.2.2/configure --target=mips64vrel-elf \ --prefix=$PREFIX_DIR --enable-languages=c,c++ --disable-__cxa_atexit \ --with-gnu-as --with-gnu-ld --with-newlib \ --with-gxx-include-dir=$PREFIX_DIR/mips64vrel-elf/include -v \ 2>&1 | tee configure.log With the same configuration and binutils/newlib, I succeeded building GCC 4.1.2. I saved all log for configure and make. Please let me know if they may help. Thanks in advance. //-------------------------------------------------------------------------- make[4]: Entering directory `/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/mips16/libiberty' if [ x"" != x ] && [ ! -d pic ]; then \ mkdir pic; \ else true; fi touch stamp-picdir CONFIG_FILES= CONFIG_HEADERS=config.h:/ecostools/src/gcc-4.2.2/libiberty/config.in /bin/sh ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands if [ x"" != x ]; then \ /tmp/build-mips64vrel-elf-20080115/gcc/./gcc/xgcc -B/tmp/build-mips64vrel-elf-20080115/gcc/./gcc/ -nostdinc -B/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/newlib/ -isystem /tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/newlib/targ-include -isystem /ecostools/src/gcc-4.2.2/newlib/libc/include -B/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/bin/ -B/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/lib/ -isystem /ecostools/mips64vrel-elf-20080115/mips64vrel-elf/include -isystem /ecostools/mips64vrel-elf-20080115/mips64vrel-elf/sys-include -c -DHAVE_CONFIG_H -O2 -O2 -mips16 -I. -I/ecostools/src/gcc-4.2.2/libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes -Wc++-compat /ecostools/src/gcc-4.2.2/libiberty/regex.c -o pic/regex.o; \ else true; fi /tmp/build-mips64vrel-elf-20080115/gcc/./gcc/xgcc -B/tmp/build-mips64vrel-elf-20080115/gcc/./gcc/ -nostdinc -B/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/newlib/ -isystem /tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/newlib/targ-include -isystem /ecostools/src/gcc-4.2.2/newlib/libc/include -B/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/bin/ -B/ecostools/mips64vrel-elf-20080115/mips64vrel-elf/lib/ -isystem /ecostools/mips64vrel-elf-20080115/mips64vrel-elf/include -isystem /ecostools/mips64vrel-elf-20080115/mips64vrel-elf/sys-include -c -DHAVE_CONFIG_H -O2 -O2 -mips16 -I. -I/ecostools/src/gcc-4.2.2/libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes -Wc++-compat /ecostools/src/gcc-4.2.2/libiberty/regex.c -o regex.o /ecostools/src/gcc-4.2.2/libiberty/regex.c: In function 'byte_re_match_2_internal': /ecostools/src/gcc-4.2.2/libiberty/regex.c:7481: error: insn does not satisfy its constraints: (insn 5298 1670 1672 171 (set (reg:SI 4 $4) (lo_sum:SI (reg/f:SI 1080) (symbol_ref:SI ("byte_reg_unset_dummy") [flags 0x6] <var_decl 0x7fe24fa0 byte_reg_unset_dummy>))) 205 {*lowsi_mips16} (nil) (expr_list:REG_EQUAL (symbol_ref:SI ("byte_reg_unset_dummy") [flags 0x6] <var_decl 0x7fe24fa0 byte_reg_unset_dummy>) (nil))) /ecostools/src/gcc-4.2.2/libiberty/regex.c:7481: internal compiler error: in reload_cse_simplify_operands, at postreload.c:392 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[4]: *** [regex.o] Error 1 make[4]: Leaving directory `/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/mips16/libiberty' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory `/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/libiberty' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/build-mips64vrel-elf-20080115/gcc/mips64vrel-elf/libiberty' make[1]: *** [all-target-libiberty] Error 2 make[1]: Leaving directory `/tmp/build-mips64vrel-elf-20080115/gcc' make: *** [all] Error 2 -- Summary: target mips64vrel-elf. Internal compiler error (in reload_cse_simplify_operands, at postreload.c:392) while building libiberty Product: gcc Version: 4.2.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: marco at sitek dot it http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34900