Using GCC 4.4.x series, GCC can be compiled without any troubles. As soon as the current version is switched to 4.7.x with gcc-config, the compiler fails to be bootstrapped with an Internal Compiler Error (ICE): /var/tmp/portage/sys-devel/gcc-4.7.0/work/gcc-4.7.0/gcc/alias.c: In function ‘rtx_def* find_base_value(rtx)’: /var/tmp/portage/sys-devel/gcc-4.7.0/work/gcc-4.7.0/gcc/alias.c:1170:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [alias.o] Error 1 make[3]: *** Waiting for unfinished jobs.... /var/tmp/portage/sys-devel/gcc-4.7.0/work/gcc-4.7.0/gcc/bitmap.c: In function ‘void bitmap_print(FILE*, const_bitmap, const char*, const char*)’: /var/tmp/portage/sys-devel/gcc-4.7.0/work/gcc-4.7.0/gcc/bitmap.c:2101:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [bitmap.o] Error 1 /var/tmp/portage/sys-devel/gcc-4.7.0/work/gcc-4.7.0/gcc/c-parser.c: In function ‘void c_parser_compound_statement_nostart(c_parser*)’: /var/tmp/portage/sys-devel/gcc-4.7.0/work/gcc-4.7.0/gcc/c-parser.c:4239:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [c-parser.o] Error 1 Reproducible: Always Steps to Reproduce: Emerge gcc 4.6.x/4.7.0 when GCC 4.6.x or 4.7.0 is the current system compiler. Same issue with GCC 4.6 series: ICE when GCC 4.6.x is bootstrapped
1) Please attach the entire failing build log to this bug report. 2) Please post your `emerge --info' output in a comment.