Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89320 - sys-devel/gcc-3.3.5.20050130-r1 fails to compile during bootstrap/stage1 building on i686, 2005.0
Summary: sys-devel/gcc-3.3.5.20050130-r1 fails to compile during bootstrap/stage1 buil...
Status: RESOLVED DUPLICATE of bug 20600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-16 07:11 UTC by Manuel
Modified: 2005-12-11 20:42 UTC (History)
1 user (show)

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 Manuel 2005-04-16 07:11:41 UTC
I was bootstrapping a brand new machine and choose stage1, I followed directions on the handbook and..

[long, long compilation output]
...
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/    -O2 -mcpu=i686 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H  -o cc1 \
        c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o libcpp.a  main.o libbackend.a   ../libiberty/libiberty.a
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/    -O2 -mcpu=i686 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H  -o cc1plus \
      cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parse.o cp/ptree.o cp/rtti.o cp/spew.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-lang.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o  c-pretty-print.o c-opts.o main.o libbackend.a libcpp.a   ../libiberty/libiberty.a
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -fno-stack-protector-all -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/../include  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-omit-frame-pointer \
   -c /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -fno-stack-protector-all -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/../include  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-omit-frame-pointer -fPIC \
   -c /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \
  -o crtbeginS.o
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/crtstuff.c: In function `__do_global_dtors_aux':
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/crtstuff.c:285: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/crtstuff.c: In function `__do_global_dtors_aux':
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/crtstuff.c:285: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/gcc-3.3.5.20050130-r1/temp/cc3dBCaZ.out file, please attach this to your bugreport.
make[2]: *** [crtbegin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Preprocessed source stored into /var/tmp/portage/gcc-3.3.5.20050130-r1/temp/cc1vUvIR.out file, please attach this to your bugreport.
make[2]: *** [crtbeginS.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.5.20050130-r1 failed.
!!! Function gcc_do_make, Line 1133, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Didn't try
Steps to Reproduce:
The fact is I got a similar error in a different place, the first time:

/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc/xgcc -shared-libgcc -B/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/gcc/ -nostdinc++ -L/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -nostdinc++ -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/libstdc++-v3/libsupc++ -I/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/libstdc++-v3/libmath -O2 -mcpu=i686 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/libstdc++-v3/src/bitset.cc -o bitset.o >/dev/null 2>&1
/usr/i686-pc-linux-gnu/bin/as: symbol lookup error: /usr/lib/binutils/i686-pc-linux-gnu/2.15.92.0.2/libbfd-2.15.92.0.2.so: undefined symbol: bfd_abs_sectIon
make[4]: *** [codecvt.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [bitset.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130-r1/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.5.20050130-r1 failed.
!!! Function gcc_do_make, Line 1133, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.

so I tried to reproduce it but I couldn't really
Actual Results:  
bootstrap stops.

Expected Results:  
bootstrap shouldn't stop.

This is a brand new installation, I used a 2005.0 minimal isocd.


livecd portage # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 10 2005, 18:18:11)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
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="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/
http://trumpetti.atm.tut.fi/gentoo/
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://ftp.easynet.nl/mirror/gentoo/ http://mirror.switch.ch/mirror/gentoo/
http://mir.zyrianes.net/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth crypt dvd
emacs emboss encode foomaticdb fortran gd gdbm geoip gif gpm gtk2 imagemagick
imap imlib ipv6 jpeg kde libg++ libwww mad mikmod mime motif mp3 mpeg mysql
ncurses nls oggvorbis opengl oss pam pdflib perl php png postgres python qt
quicktime readline samba sdl sharedext smartcard sockets spell ssl svga tcpd
tiff truetype truetype-fonts type1-fonts unicode usb xml xml2 xmlrpc xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY




livecd portage # uname -a
Linux livecd 2.6.11-gentoo-r3 #1 SMP Fri Mar 18 17:53:40 UTC 2005 i686 Celeron
(Mendocino) GenuineIntel GNU/Linux


livecd portage # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 6
model name      : Celeron (Mendocino)
stepping        : 5
cpu MHz         : 501.235
cache size      : 128 KB
physical id     : 0
siblings        : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr
bogomips        : 989.18




livecd portage # cat /proc/meminfo
MemTotal:       118008 kB
MemFree:         56684 kB
Buffers:          1544 kB
Cached:          42996 kB
SwapCached:          0 kB
Active:          34052 kB
Inactive:        15024 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       118008 kB
LowFree:         56684 kB
SwapTotal:     2008116 kB
SwapFree:      2001768 kB
Dirty:              48 kB
Writeback:           0 kB
Mapped:           8200 kB
Slab:             7840 kB
CommitLimit:   2067120 kB
Committed_AS:    23108 kB
PageTables:        348 kB
VmallocTotal:   909304 kB
VmallocUsed:      6844 kB
VmallocChunk:   902080 kB


I don't know if you need anything else. Thanks for your attention.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-04-16 07:35:37 UTC
If you cannot reproduce this and it fails at different places, then it looks like a flaky hardware. Did you run memtest? 
Comment 2 Michal Tuszowski 2005-04-16 11:47:29 UTC
I've got the same bug today, in the same place. What more: i've got same "similar" bug before it. Before bootstrap i was running memtest for an hour, and it didn't show any problems. And on the third try the whole process had hang up so i have'nt got any logs.... Installation options were quite similar (minimal livecd 2005.0. only difference was that i've set march flag to athlon-xp)Please help.
Comment 3 Manuel 2005-04-16 11:50:04 UTC
As suggested, I run memtest86 for 3 hours, no errors appeared. Chipset says SiS 630.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-04-16 11:55:51 UTC
OK. Assigned to the gurus. ;-)
Comment 5 David S. Brown 2005-05-30 13:43:20 UTC
I have similar error when tying to bootstrap; fails with profiledbootstrap.

I can reproduce it everytime with the same error at the same spot.  Ran memtest
with no errors and have tried several use opimazition flags.  cpu is AMD athlon
750, 256mb ram
Comment 6 Davide Andrea 2005-08-12 04:20:10 UTC
Same here. Retried emerge -e system 5 times and got 3 different errors. Run 
memtest, passed succesfully 3 times. 
 
Here is the last one: 
 
[...]/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/stdlib/mbstowcs.og 
{standard input}: Assembler messages: 
{standard input}:2440: Error: junk at end of line, first unrecognized character 
is `:' 
make[2]: *** 
[/var/tmp/portage/glibc-2.3.5/work/build-default-i686-pc-linux-gnu-nptl/stdlib/mbstowcs.og] 
Error 1 
make[2]: *** Waiting for unfinished jobs.... 
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/stdlib' 
make[1]: *** [stdlib/subdir_lib] Error 2 
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5' 
make: *** [all] Error 2 
 
!!! ERROR: sys-libs/glibc-2.3.5 failed. 
!!! Function toolchain-glibc_src_compile, Line 244, Exitcode 2 
!!! (no error message) 
!!! If you need support, post the topmost build error, NOT this status message. 
 
 
infos: 
 
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, 
glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 1800+ 
Gentoo Base System version 1.6.13 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.11 
sys-devel/autoconf:  [Not Present] 
sys-devel/automake:  [Not Present] 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   [Not Present] 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx 
-m3dnow -msse" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx 
-m3dnow -msse" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow 3dnowex X aac acpi alsa apm audiofile avi berkdb bitmap-fonts cdr 
crypt cups dga divx4linux eds emboss encode fbcon ffmpeg fftw flash foomaticdb 
fortran gdbm ggi gif gimpprint gpm gstreamer gtk2 hal ieee1394 imap imlib ipv6 
jikes jpeg jpeg2k kde libg++ libwww live logitech-mouse lzo mad mcalmikmod mmx 
mng motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mpi ncurses 
nls nptl nptlonly ogg oggvorbis openexr opengl oss pam pcre pdflib perl png 
ppds python qt quicktime rdesktop readline real samba scanner sdl slp speex 
spell sse ssl svg tcpd tga theora tidy tiff truetype truetype-fonts type1-fonts 
unicode usb userlocales vorbis win32codecs wmf x86 xine xinerama xml2 xmms 
xprint xv xvid zeroconf zlib userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY 
 
Comment 7 Davide Andrea 2005-08-12 08:53:44 UTC
I'm sorry, my fault.  
I wasn't that convinced about memtest (instinct?) so i downloaded latest and  
rerun it twice. Showed me buggy memory. Nuked the bad bank, wiped out the  
distfiles dir and now i'm re-emerging the whole system. Seems going flawlessy  
for now, gcc and glibc passed. 
 
For me this is solved. 
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2005-12-11 20:42:58 UTC

*** This bug has been marked as a duplicate of 20600 ***