My last "emerge -DUuvp world" updated python to 2.3.4-rc1 on two machines which both had different CFLAGS settings. On one machine it worked perfectly, on the other one python segfaultet immediately, making emerge useless. On the machine where it worked, the CFLAGS are set to "-march=pentium3 -mcpu=pentium3 -O2 -pipe -fomit-frame-pointer" while on the other one they were: "-march=pentium3 -mcpu=pentium3 -O3 -pipe -fomit-frame-pointer -mmmx -msse". Reproducible: Always Steps to Reproduce: Actual Results: I worked around emerge no longer working by changin the /usr/bin/python link to point to python2.2, changed my CFLAGS to the less aggressive version from the other machine and re-emerged python 2.3.4-rc1. After that, the problem was gone. I would suggest to filter out -mmmx and/or -msse from CFLAGS for this package.
The problem is an -O3 option. Not sure which one though. This isn't really the sort of thing I'd like to test! Anyway, -O3 should be replaced by -O2 for this ebuild, and the -O3 options filtered out (all of them, until someone fancies working which one it is). Can you please post the output of "emerge info"? It would be helpful to know, for example, what your GCC version is, amongst other things, in order to diagnose this problem.
I can't reproduce with my P4. # emerge info Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz Gentoo Base System version 1.4.12 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -mmmx -msse -mcpu=pentium4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe -mmmx -msse -mcpu=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 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="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
Here's my "emerge info" output: Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.6) ================================================================= System uname: 2.6.6 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.10 distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium3 -march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=pentium3 -march=pentium3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/gentootmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage_overlays/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d acl alsa apache2 apm arts artswrappersuid avi berkdb bluetooth caps cdr crypt cups curl dnd emacs emacs-w3 encode evms2 foomaticdb gdbm gif gimpprint gphoto2 gpm hbci imagemagick imap imlib imlib2 irda java javascript jpeg kde lcms libg++ libwww linguas_de mad maildir mbox mmx motif mpeg mule ncurses nls nptl ofx oggvorbis opengl pam pcmcia pdflib perl pg-vacuumdelay pic png pnp postgres ppds pwdb python qt quicktime readline sasl savedconfig sdl serial slang slp socks5 spell sse ssl tcltk tcpd tetex threads tiff truetype trusted usb vim-with-x wmf x86 xemacs xml2 xmms xv zlib"
unless someone can conclusively prove which CFLAG it is that is causing problems, i can't do anything about this. i can't reproduce this behaviour either, using -Os on pentium3. CFLAGS essentially is the user's responsibility.