When upgrading to gcc 4.1.1, python refused to build, resulting in no end of misery. Guess what, if python is not compiled with the new compiler, it won't play ball with the rest of the system and you are scrod. Anyway I copied by hand the python installation off a 2006.1 tarball, and all is well, sort of. At least emerge no longer immediately segfaults. But I still can't compile python. Here is the build error: [code] LD_LIBRARY_PATH=/var/tmp/portage/python-2.4.3-r1/work/Python-2.4.3: ./python -E ./setup.py install \ --prefix=/usr \ --install-scripts=/usr/bin \ --install-platlib=/usr/lib/python2.4/lib-dynload \ --root=//var/tmp/portage/python-2.4.3-r1/image/ running install running build running build_ext db.h: found (4, 2) in /usr/include db lib: using (4, 2) db-4.2 make: *** [sharedinstall] Segmentation fault !!! ERROR: dev-lang/python-2.4.3-r1 failed. Call stack: ebuild.sh, line 1539: Called dyn_install ebuild.sh, line 1013: Called src_install python-2.4.3-r1.ebuild, line 187: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. [/code] Any ideas here? I don't see any likely candidates for other versions of python to install. What should I do? Emerge --info: Lemond ~ # emerge --info Portage 2.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r9 i686) ================================================================= System uname: 2.6.16-gentoo-r9 i686 VIA Nehemiah Gentoo Base System version 1.12.4 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] 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.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=i686 -msse -mmmx -mfpmath=sse,387 -ffast-math -finline-functions -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-Os -march=i686 -msse -mmmx -mfpmath=sse,387 -ffast-math -finline-functions -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ ftp://130.207.108.136/pub/gentoo" LINGUAS="en de fr" MAKEOPTS="-j2" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 aac aalib acpi alsa apm arts artswrapersuid avinptl berkdb bitmap-fonts bzlib cdrom cle266 cli crypt cups dbus dga directfb divx4linux dlloader dri dts dvb dvd dvdread esd fbcon ffmpeg flash foomaticdb fortran freetype gdbm gif gimp gimprint gpm gutenprint hal idga ipv6 isdnlog kde libg++ mad mmx mp3 mpeg4 mplayer ncurses nls nptl nptlonly pam pcre perl png ppds pppd python quicktime readline reflection rtc samba scanner sdl session spl sse ssl svg svga tcpd theora tiff truetype truetype-fonts type1 type1-fonts udev unichrome unicode usb v4l vidix vorbis win32codecs xine xmms xorg xrandr xscreensaver xv xvid xvmc zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_en linguas_de linguas_fr userland_GNU video_cards_via" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This might be a duplicate of bug 138265. Can you try the python merge with very basic CFLAGS (try CFLAGS="-O2 -march=c3 -pipe" for example) and see if it is reproducable? Also, is there some website recommending the flags you have for a nehemiah/c3 cpu? I have seen flags like this before from people with a c3, and if there is some website/wiki/whatever recommending this set of flags I think it would be a good idea to "fix" it to recommend less agressive flags.
strip down your CFLAGS and then try again.
Just removing -ffastmath did the trick. I didn't realize that was a dodgy one. I will check the EpiaWiki, where I think I got the CFLAGS from. Thank you