stage2/xgcc -Bstage2/ -B/usr/i586-pc-linux-gnu/bin/ -c -DIN_GCC -mcpu=k6 -Os -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -If -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/f -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/f/ste.c -o f/ste.o /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/f/ste.c: In function `ffeste_io_cilist_': /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/f/ste.c:1494: internal error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [f/ste.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' make[1]: *** [stage3_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 350, Exitcode 2 !!! (no error message) emerge info Portage 2.0.48-r1 (selinux-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-selinux-r5 i586 AMD-K6tm w/ multimedia extensions GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 libwww mmx nls xml2 zlib gdbm berkdb slang readline perl crypt selinux ncurses pam python tcpd ssl" COMPILER="gcc3" CHOST="i586-pc-linux-gnu" CFLAGS="-mcpu=k6 -mmmx -Os -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" Steps to Reproduce: 1) emerge -U gcc
For what its worth, your -mcpu in CXXFLAGS should be i586, NOT i686. Then, can you also rather try with CFLAGS="-mcpu=k6 -O2 -pipe" ? Thanks.
got no more info
The i586 vs i686 is EXACTLY what happened. The illegal instruction was probably a CMOV or something that the K6 can't handle. Can this get closed out?
wrong CFLAGS