Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57839 - bootstrap failed while building gettext-0.12.1 with Segmentation Fault
Summary: bootstrap failed while building gettext-0.12.1 with Segmentation Fault
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-21 05:28 UTC by Eric Martin
Modified: 2005-03-25 11:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Martin 2004-07-21 05:28:50 UTC
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"
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-07-21 05:39:05 UTC
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.
Comment 2 Eric Martin 2004-07-21 06:23:45 UTC
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
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2004-07-21 07:10:02 UTC
Change -march to i586 and let me know...
Comment 4 Eric Martin 2004-07-21 07:45:35 UTC
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
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2004-07-21 09:51:16 UTC
Unfortunately, at this point it is beyond what I know to suggest... sending to the maintainers...
Comment 6 Stéphane Brunet 2004-09-21 08:05:45 UTC
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...
Comment 7 SpanKY gentoo-dev 2004-10-04 21:27:48 UTC
looks like bad toolchain/hardware/CFLAGS

try from a stage3
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-25 11:25:09 UTC
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.