Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82400 - gcc-3.4.3.20050110 can't build gcc - dies in gcc/hashtable.c
Summary: gcc-3.4.3.20050110 can't build gcc - dies in gcc/hashtable.c
Status: RESOLVED DUPLICATE of bug 79852
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 13:37 UTC by Michael Hill
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
Preprocessed source file, from gcc (cc5iNar0.out,197.10 KB, text/plain)
2005-02-17 13:40 UTC, Michael Hill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hill 2005-02-17 13:37:42 UTC
I've been having problems emerge-ing various packages, so I thought I'd try to emerge gcc-3.4.3-r1 and try with that.  It died.  I tried

# CFLAGS= emerge -u gcc

(with the 3.4.3.20050110 version masked to force it to 3.4.3-r1).  I tried with an empty CFLAGS because the problems I've had have involved optimization flags.  Anyway, that failed too.

So I tried to build 3.3.5.20050130; no dice.  Each of these has failed with the same error in the same source file; I've copied the last few lines from the most recent build below.

gcc -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/../include \
-DPREFIX=\"/usr\" \
  -c /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/prefix.c -o prefix.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/../include /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/mbchar.c -o mbchar.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/../include /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/main.c -o main.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/../include /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/alias.c -o alias.o
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/hashtable.c: In function `approx_sqrt':
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/hashtable.c:328: internal compiler error: in try_split, at emit-rtl.c:3343
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
In file included from /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/alias.c:25:
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/rtl.h:132: warning: type of bit-field `code' is a GCC extension
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/rtl.h:135: warning: type of bit-field `mode' is a GCC extension
In file included from /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/alias.c:26:
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/tree.h:130: warning: type of bit-field `code' is a GCC extension
In file included from /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/alias.c:26:
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/tree.h:1249: warning: type of bit-field `mode' is a GCC extension
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/tree.h:1804: warning: type of bit-field `mode' is a GCC extension
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/tree.h:1829: warning: type of bit-field `built_in_class' is a GCC extension
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/../include /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/bb-reorder.c -o bb-reorder.o
In file included from /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/bb-reorder.c:85:
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/tree.h:130: warning: type of bit-field `code' is a GCC extension
In file included from /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/bb-reorder.c:85:
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/tree.h:1249: warning: type of bit-field `mode' is a GCC extension
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/tree.h:1804: warning: type of bit-field `mode' is a GCC extension
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/tree.h:1829: warning: type of bit-field `built_in_class' is a GCC extension
In file included from /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/bb-reorder.c:86:
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/rtl.h:132: warning: type of bit-field `code' is a GCC extension
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/rtl.h:135: warning: type of bit-field `mode' is a GCC extension
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/../include /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/caller-save.c -o caller-save.o
Preprocessed source stored into /var/tmp/portage/gcc-3.3.5.20050130/temp/cc5iNar0.out file, please attach this to your bugreport.
make[2]: *** [hashtable.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/caller-save.c:24:
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/rtl.h:132: warning: type of bit-field `code' is a GCC extension
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/rtl.h:135: warning: type of bit-field `mode' is a GCC extension
In file included from /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/caller-save.c:29:
/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/recog.h:227: warning: type of bit-field `mode' is a GCC extension
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130/work/build/gcc'
make: *** [bootstrap-lean] Error 2

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

I will attach the preprocessed source file shortly.

# emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 i686)
=================================================================
System uname: 2.6.10-gentoo-r7 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 07:05:50)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.4, 1.5, 1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -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/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache digest distlocks sandbox sfperms"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo/ http://www.gtlib.cc.gatech.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d acpi alsa apache2 apm audiofile avi bcmath berkdb bitmap-fonts bonobo bzlib calendar caps cdb cdr crypt cscope ctype cups curl dba dbase dbx dedicated dga doc dvd dvdr encode esd exif f77 fbcon fftw flac flatfile font-server foomaticdb freetds ftp gd gif ginac gmp gnome gnutls gpm gtk gtk2 hardened hardenedphp imagemagick imlib inifile jack jpeg kde libwww mad mbox memlimit mhash mikmod milter mime mmap mmx mng motif mozilla mpeg mpi mysql ncurses nocardbus nocd odbc oggvorbis opengl oss pam pcntl pcre pda pdflib perl php pic pie plotutils png posix ppds python qt quicktime readline samba sdl shared sharedmem simplexml sndfile sockets speex spell spl sse ssl svg sysvipc tcltk tcpd tidy tiff tokenizer truetype truetype-fonts type1-fonts usb vhosts videos wmf xine xml xml2 xmlrpc xmms xpm xsl xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Michael Hill 2005-02-17 13:40:43 UTC
Created attachment 51469 [details]
Preprocessed source file, from gcc
Comment 2 Michael Hill 2005-02-19 13:30:15 UTC
My gcc build apparently had problems from being built with certain optimizations.  I had to copy over and install the i686-built gcc-3.4.3-r1 package.  That worked, and gcc versions 3.4.3-r1 and 3.4.3.20050110 are able to build each other again.  Mea culpa.
Comment 3 SpanKY gentoo-dev 2005-04-15 16:01:36 UTC
dupe
Comment 4 SpanKY gentoo-dev 2005-04-15 16:02:00 UTC

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