Machine has been having this problem with ebuilds. The hard drive just crashed so I thought it was that, went to rebuild system and it crashes with Segmentation Fault. Reproducible: Always Steps to Reproduce: 1. in live cd, follow all steps prior to bootstrapping 2. cd /usr/portage 3. scripts/bootstrap.sh Actual Results: Compiles Portage fine, dump of gettext crash to follow: gcc -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/usr/lib/gettext\" -DGETTEXTJAR=\"/usr/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/lib\" -DGETTEXTDATADIR=\"/usr/share/gettext\" -DPROJECTSDIR=\"/usr/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I.. -I../libuniname -I../lib -I../lib -I../intl -I../../gettext-runtime/intl -march=k6-2 -O3 -fomit-frame-pointer -pipe -c format-lisp.c -o format-lisp.o format-lisp.c: In function `parse_upto': format-lisp.c:3042: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. The bug is not reproduceable, so it is likely a hardware or OS problem make[4]: *** [format-lisp.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools/src' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.12.1 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! (no error message) Expected Results: Compiled Gettext and contiued bootstrapping Machine Specs: AMD k6-2 500MHz, 1 x 128MB PC133, Cirrus Logic Video, dlink 21140 (de4x5) 10/100, Maxtor 30GB (hda) Maxtor 200 GB (hdc) LiteOn CD (hdd). Suspected memory, ran memcheck86 kernel for 50 hours with no errors. livecd / # emerge --info Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo) ================================================================= System uname: 2.4.25-gentoo i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.4.3.13 Autoconf: Automake: ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=k6-2 -O3 -fomit-frame-pointer -pipe" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/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="-march=k6-2 -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu x/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow acpi apm berkdb crypt cups dedicated encode fbcon foomaticdb gdbm gpm imlib libg++ libwww mad mikmod motif mpeg ncurses nls pam pdflib png python rea dline samba sdl slang spell ssl svga tcpd truetype x86 xml2 xv zlib"
Which LiveCD are you using, exactly? Also, have you tried lowering your optimizations? Are you sure that heat is not an issue? This really isn't a LiveCD bug, since the "LiveCD" responsibility stops at your machine being booted, but I'm going to try to at least figure out what's going on before passing this on.
Changed The Optimiziations from -O3 to -O2, new error: esac ./configure: line 1: 7846 Segmentation fault /bin/sh './configure' --prefix=/usr '--prefix=/usr' '--host=i586-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-shared' '--with-included-gettext' 'CC=gcc' 'CFLAGS=-march=k6-2 -O2 -fomit-frame-pointer -pipe' 'CXXFLAGS=-march=k6-2 -O2 -fomit-frame-pointer -pipe' 'CXX=gcc' 'host_alias=i586-pc-linux-gnu' --cache-file=/dev/null --srcdir=. configure: error: /bin/sh './configure' failed for gettext-runtime Inconsistency detected by ld.so: dl-fini.c: 66: _dl_fini: Assertion `i == _rtld_local._dl_nloaded' failed! ./configure: line 70: 13486 Done ( set ) 2>&1 13487 Segmentation fault | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) sed -n "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac ./configure: line 70: 13499 Segmentation fault for ac_var in $ac_subst_vars; do eval ac_val=$`echo $ac_var`; echo "$ac_var='$ac_val'"; done 13500 | sort ./configure: line 70: 13501 Segmentation fault cat <<'_ASBOX' ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX /usr/sbin/ebuild.sh: line 1430: 4424 Segmentation fault ./configure --prefix=/usr --host=${CHOST} --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib ${EXTRA_ECONF} "$@" !!! ERROR: sys-devel/gettext-0.12.1 failed. !!! Function econf, Line 362, Exitcode 139 !!! econf failed
Change -march to i586 and let me know...
Still getting a Segmentation fault: gcc -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DUSEJEXE=0 -DGETTEXTJE XEDIR=\"/usr/lib/gettext\" -DGETTEXTJAR=\"/usr/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/lib\" -DGETTE XTDATADIR=\"/usr/share/gettext\" -DPROJECTSDIR=\"/usr/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I. - I.. -I. -I. -I.. -I../libuniname -I../lib -I../lib -I../intl -I../../gettext-runtime/intl -march=i586 -O 2 -fomit-frame-pointer -pipe -c msgl-iconv.c -o msgl-iconv.o msgl-iconv.c: In function `iconv_message_list': msgl-iconv.c:355: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. The bug is not reproduceable, so it is likely a hardware or OS problem make[4]: *** [msgl-iconv.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools/src' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/gettext-tools' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.12.1 failed. !!! Function src_compile, Line 49, Exitcode 2 !!! (no error message) Weird thing is it always crashes in the same place given a certain configuration
Unfortunately, at this point it is beyond what I know to suggest... sending to the maintainers...
I had the same problem using minimal LiveCD 2004.2 when doing an "emerge sync" *before* the bootstrap operation. I tried afterwards using the default packages portage-20040828.tar.bz2 and stage1-x86-2004.2.tar.bz2 without updating anything and it worked. Something gets broken in the bootstrap toolchain when using "emerge sync", I guess...
looks like bad toolchain/hardware/CFLAGS try from a stage3
Moving these so we can remove the "Install CD" component from "Gentoo Linux". I apologize to everyone for this spam, but according to the bugzilla developers, this is the only reasonable way to do this.