last couple lines of output before it died ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/var/tmp/portage/gcc-4.1.0_beta20050902/work/build/gcc/../ld -O2 -O2 -march=pentium2 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc -I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/. -I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/../include -I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/../libcpp/include -DL_popcountdi2 -fvisibility=hidden -DHIDE_EXPORTS -c /var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c -o libgcc/./_popcountdi2.o /var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c: In function
last couple lines of output before it died ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/var/tmp/portage/gcc-4.1.0_beta20050902/work/build/gcc/../ld -O2 -O2 -march=pentium2 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc -I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/. -I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/../include -I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/../libcpp/include -DL_popcountdi2 -fvisibility=hidden -DHIDE_EXPORTS -c /var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c -o libgcc/./_popcountdi2.o /var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c: In function __popcountdi2: /var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c:765: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. *** glibc detected *** corrupted double-linked list: 0x44500858 *** /var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c:765: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. command aaron@gentoo:: USE="-fortran" emerge -pv '>gcc-4' [~] These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild NS ] sys-devel/gcc-4.1.0_beta20050902 (-altivec) -bootstrap -build -fortran -gcj +gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64) +nls -nocxx -objc -static -vanilla 0 kB havent tried to reproduce it, recompiling it now. might not be serious at all. Reproducible: Didn't try Steps to Reproduce: 1. 2. 3.
You didn't post emerge info, but I'm going to say its probably a CFLAGS problem. gcc-4.1 is very beta still, and you should only use it if you know what you are doing. Please file any bugs you have with it upstream.
I'm getting the same error, but as far as I understand, the ICE is in the *old* compiler that I'm using right now - gcc 3.3.5 - not in the 4.1 which I'm trying to compile. So it's a bug in gcc 3.3.5.
well it seems to be bitching about glib, so i agree with Dima. re-tried it several times, and the error persists. i dont think its cflags, since mine are very loose. cant do much on a p2... aaron@gentoo:: emerge info Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r7 i686) ================================================================= System uname: 2.6.12-gentoo-r7 i686 Pentium II (Deschutes) Gentoo Base System version 1.12.0_pre8 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.isp.net.au/pub/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://gentoo.binarycompass.org http://www.gigaload.org/gentoo.org/" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm avi berkdb bitmap-fonts bzip2 cdr crypt cups curl dri emboss encode firefox foomaticdb fortran gd gdbm gif gimpprint gnome gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 jpeg libg++ libwww mad mikmod mp3 mpeg mysql ncurses nls ogg oggvorbis opengl pdflib perl php png ppds python quicktime readline samba sdl slang speex spell sqlite ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xml xml2 xprint xv zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
The mere presence of CFLAGS with gcc-4.1 is going to cause issues. Basically, anything more than -O1, which is even pushing it, is going to cause problems.