When I try to upgrade gcc 3.2.2 -> 3.2.3-r1 by 'emerge -u system', compilation causes a segfault. --clip-- stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -DIN_GCC -march=athlon-xp -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/. -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/../include /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/regrename.c -o regrename.o stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -DIN_GCC -march=athlon-xp -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/. -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/../include /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload.c -o reload.o stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -DIN_GCC -march=athlon-xp -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/. -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config -I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/../include /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload1.c -o reload1.o /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload.c: In function `find_reloads_address_1': /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload.c:5674: warning: comparison between signed and unsigned /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload1.c: In function `eliminate_regs': /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload1.c:2666: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [reload1.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.2.3-r1 failed. !!! Function src_compile, Line 371, Exitcode 2 !!! (no error message)
*** Bug 27639 has been marked as a duplicate of this bug. ***
Try without '-pipe' in C[XX]FLAGS, and please include info from 'emerge info'.
Thanks Martin. It compiled successfully without '-pipe'. I also dropped out '-fomit-frame-pointer' flag, thus I'm not sure which one caused the segfault. Anyway, this item can be marked as solved. Just for info: Failed flags: CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" Ok flags: CFLAGS="-march=athlon-xp -O3"
dropping CFLAGS