I update portage with: emerge -u portage. After compiling and installing i get this: Recalculating the counter... Counter updated successfully. /usr/sbin/ebuild.sh: line 1109: 28950 Segmentation fault python -O -c "import py_compile; py_compile.compile('${ROOT}usr/lib/python2.2/site-packages/portage.py')" !!! ERROR: sys-apps/portage-2.0.46-r11 failed. !!! Function pkg_postinst, Line 216, Exitcode 139 !!! (no error message) >>> Regenerating /etc/ld.so.cache... >>> sys-apps/portage-2.0.46-r11 merged. Tried 'emerge portage' after this to reproduce the bug, and yes it segfaulted again. Then I tried to update portage on a K6-2 and on a p4 box, and they did not segfault... Go figure. The affected box was a P3 450MHz. Emerge info of the affected box below... Reproducible: Always Steps to Reproduce: 1. emerge portage
Portage 2.0.46-r11 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-openmosix-r2 i686 Pentium III (Katmai) GENTOO_MIRRORS="http://www.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="/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 apm crypt libg++ mmx ncurses zlib gdbm berkdb readline tcpd pam ssl -3dnow -arts -avi -cups -encode -gif -gnome -gpm -gtk -gtk2 -imlib innodb -java -jpeg -kde ldap -libwww -mikmod -motif -mpeg mysql -nls odbc -oggvorbis -opengl -oss -pdflib perl -png postgres -python -qt -qtmt -quicktime sasl -sdl -slang -spell sse -svga -truetype -X -xml2 -xmms -xv" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Try it without -march=pentium3 try pentium2 There is a bug in p3 code generation.
inherit flag-o-matic replace-flags "-march=pentium3" "-march=pentium2" And yes. It works great like this :)
gcc bug