Tried re-emerging emacs and revdep-rebuild, multiple times, after reboots, w/ or w/o X running (trying to scramble the memory allocations to ensure its not a memory error). Always the same outcome as indicated below: Making all in projects make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/projects' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/projects' Making all in misc make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/misc' WARNING: Warnings can be ignored. :-) if test "emacs" != no; then \ set x; \ list='start-po.el po-mode.el po-compat.el'; for p in $list; do \ if test -f "$p"; then d=; else d="./"; fi; \ set x "$@" "$d$p"; shift; \ done; \ shift; \ EMACS="emacs" /bin/sh ../../build-aux/elisp-comp "$@" || exit 1; \ else : ; fi Loading /usr/share/emacs/site-lisp/site-gentoo (source)... Loading gtk-doc (source)... Fatal error (11).../../build-aux/elisp-comp: line 78: 30005 Segmentation fault $EMACS -batch -q -l script -f batch-byte-compile *.el make[3]: *** [elc-stamp] Error 1 make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/misc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.14.5 failed. Call stack: ebuild.sh, line 1557: Called dyn_compile ebuild.sh, line 966: Called src_compile ----------------------------------------------------- # emerge --info Portage 2.1_pre6-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r0, 2.6.15-gentoo-r7 i686) ================================================================= System uname: 2.6.15-gentoo-r7 i686 AMD Athlon(tm) processor Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 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-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ 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.namerica.gentoo.org/gentoo-portage" USE="3dnow X acpi aim alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts browserplugin bzip2 calendar cdr clamav cli cpdflib crypt cscope ctype cups dba dbx dio dlloader dmx doc dri eds emacs emacs-w3 emboss encode esd examples expat fastbuild flac foomaticdb force-cgi-redirect fortran ftp gcj gd gdbm gif gnutls gpm gstreamer gtk gtk2 hpoj icq imap imlib innodb ipv6 ithreads java jpeg junit kde kdeenablefinal kdexdeltas kerberos ldap libg++ libwww mad maildir memlimit mikmod mmx motif mozilla mp3 mpeg mysql mysqli ncurses nls nptl nptlonly nsplugin oav odbc offensive ofx ogg opengl oscar oss pam pam-mysql pcntl pcre pdflib pdo-external pear perl php pic plotutils png posix postgres ppds python qt quicktime readline ruby sasl scanner sdk sdl session sharedext simplexml slp soap sockets spell spl sqlite sse ssl svg svga symlink tcltk tcpd threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev usb usepackagedmakefiles vhosts vorbis x86 xine xml xml2 xmms xsl xv yahoo zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_vga" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
# emacs -version GNU Emacs 21.4.1
What happens if you set CFLAGS to -O2?
# CFLAGS="-march=athlon-tbird -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args" emerge --ask '>=gettext-0.14.5' results in: i686-pc-linux-gnu-gcc -march=athlon-tbird -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -o .libs/msguniq msguniq-msguniq.o ./.libs/libgettextsrc.so /var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/lib/.libs/libgettextlib.so -lc creating msguniq creating msginit make[4]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/src' make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/src' Making all in po make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/po' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/po' Making all in projects make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/projects' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/projects' Making all in misc make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/misc' WARNING: Warnings can be ignored. :-) if test "emacs" != no; then \ set x; \ list='start-po.el po-mode.el po-compat.el'; for p in $list; do \ if test -f "$p"; then d=; else d="./"; fi; \ set x "$@" "$d$p"; shift; \ done; \ shift; \ EMACS="emacs" /bin/sh ../../build-aux/elisp-comp "$@" || exit 1; \ else : ; fi Loading /usr/share/emacs/site-lisp/site-gentoo (source)... Loading gtk-doc (source)... Fatal error (11).../../build-aux/elisp-comp: line 78: 20990 Segmentation fault $EMACS -batch -q -l script -f batch-byte-compile *.el make[3]: *** [elc-stamp] Error 1 make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/misc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.14.5 failed. Call stack: ebuild.sh, line 1565: Called dyn_compile ebuild.sh, line 974: Called src_compile
Please try with CFLAGS='-O2 -march=athlon-xp -pipe', if that fails too, try rebuilding glibc too with those CFLAGS. I think it could be a CFLAGS problem and unfortunately, I dont have enough time to explore that.