Having upgraded to gcc 4.1.1, and set my make.profile to 2006.1/desktop I tried to emerge -eav system as suggested in the gcc upgrade guide. It goes OK until it tries to re-emerge xorg-server-1.0.2-r7, and then fails with this error: --- i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I../include -I../include -I../include -I../mfb -DHAVE_DIX_CONFIG_H -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../include -I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -I../lbx -march=athlon-xp -O3 -pipe -fomit-frame-pointer -ftracer -MT miarc.lo -MD -MP -MF .deps/miarc.Tpo -c miarc.c -fPIC -DPIC -o .libs/miarc.o miarc.c:116: warning: type qualifiers ignored on function return type miarc.c:121: warning: type qualifiers ignored on function return type miarc.c: In function 'miComputeArcs': miarc.c:1923: warning: 'dashRemaining' may be used uninitialized in this function miarc.c:1918: warning: 'xarc.angle1' may be used uninitialized in this function miarc.c:1918: warning: 'xarc.y' may be used uninitialized in this function miarc.c:1918: warning: 'xarc.height' may be used uninitialized in this function miarc.c:1918: warning: 'xarc.x' may be used uninitialized in this function miarc.c:1918: warning: 'xarc.width' may be used uninitialized in this function miarc.c:1918: warning: 'xarc.angle2' may be used uninitialized in this function *** glibc detected *** /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1: free(): invalid next size (fast): 0x086ab068 *** ======= Backtrace: ========= /lib/libc.so.6[0xb7e80122] /lib/libc.so.6(__libc_free+0x82)[0xb7e81762] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x838aa89] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x838d5d7] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x832ec7e] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x832edc7] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x832ede7] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x80a9e43] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x8052152] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x836affe] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x836b76c] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x8056197] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x8311c34] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x809c522] /lib/libc.so.6(__libc_start_main+0xdc)[0xb7e3387c] /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1[0x8049d21] ======= Memory map: ======== 08048000-084c4000 r-xp 00000000 03:06 703252 /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1 084c4000-084c9000 rw-p 0047c000 03:06 703252 /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1 084c9000-087d9000 rw-p 084c9000 00:00 0 [heap] b7100000-b7121000 rw-p b7100000 00:00 0 b7121000-b7200000 ---p b7121000 00:00 0 b729c000-b72a5000 r-xp 00000000 03:06 266070 /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1 b72a5000-b72a6000 rw-p 00009000 03:06 266070 /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1 b72c3000-b7e1a000 rw-p b72c3000 00:00 0 b7e1a000-b7e1c000 r-xp 00000000 03:07 14953 /lib/libdl-2.4.so b7e1c000-b7e1e000 rw-p 00001000 03:07 14953 /lib/libdl-2.4.so b7e1e000-b7f33000 r-xp 00000000 03:07 15059 /lib/libc-2.4.so b7f33000-b7f35000 r--p 00114000 03:07 15059 /lib/libc-2.4.so b7f35000-b7f37000 rw-p 00116000 03:07 15059 /lib/libc-2.4.so b7f37000-b7f3a000 rw-p b7f37000 00:00 0 b7f3b000-b7f57000 rw-p b7f3b000 00:00 0 b7f57000-b7f5e000 r-xp 00000000 03:06 451034 /usr/lib/libsandbox.so.0.0.0 b7f5e000-b7f5f000 rw-p 00006000 03:06 451034 /usr/lib/libsandbox.so.0.0.0 b7f5f000-b7f62000 rw-p b7f5f000 00:00 0 b7f62000-b7f7c000 r-xp 00000000 03:07 15049 /lib/ld-2.4.so b7f7c000-b7f7d000 r--p 00019000 03:07 15049 /lib/ld-2.4.so b7f7d000-b7f7e000 rw-p 0001a000 03:07 15049 /lib/ld-2.4.so bfa7f000-bfa96000 rw-p bfa7f000 00:00 0 [stack] ffffe000-fffff000 ---p 00000000 00:00 0 [vdso] miarc.c: In function 'arcSpan': miarc.c:2969: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. sandbox: Caught signal 2 in pid 23025 --- I've never seen an error like this. This is happens each time I try the emerge -eav system. emerge --info follows: Portage 2.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686) ================================================================= System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.12.4 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.8.1-r1, 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LINGUAS="en_GB" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X a52 aac aalib acpi alsa apache2 asf avi berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr dvdread eds emboss encode esd f77 fam fame firefox flac fortran gcj gdbm gif gimpprint ginac glitz glut gnome gpm gstreamer gtk gtk2 hal imap isdnlog jpeg ldap libcaca libg++ lzo mad mikmod mjpeg mmx mmx2 mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia objc offensive ogg openal opengl oss pam pcre pdflib perl plotutils png ppds pppd python qhull quicktime readline real reflection sdl session spell spl sse ssl tcpd theora tiff timidity truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs xml xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en_GB userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Can you reproduce the issue, i.e. - does it fail again at *exactly* the same place? If so, we need the preprocessed source attached, as the message told you.
works if you just emerge xorg-server
OK, thanks for reporting back.
*** This bug has been marked as a duplicate of 20600 ***