Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89031 - gcc-3.4.3-20050110-r2 broken
Summary: gcc-3.4.3-20050110-r2 broken
Status: RESOLVED DUPLICATE of bug 79852
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-13 21:07 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
ccZvlAAt.out -- example preprocessed source file (ccZvlAAt.out,480 bytes, text/plain)
2005-04-13 21:11 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2005-04-13 21:07:33 UTC
gcc-3.4.3-20050110-r2 gives me internal compiler exceptions all over the place; it's pretty bad. Example:

double bar() {
        return 42;
}

double foo(int i) {
        double a = 0;
        if(!i)
                return 0;
        double b = bar();
        if(b == 0.)
                return 0.;

        return a;
}

gcc -O2 try.c
try.c: In function `foo':
try.c:14: 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.
Preprocessed source stored into /tmp/ccUheKJF.out file, please attach this to your bugreport.

The above code ICEs for me with CFLAGS="O" and "O1" on "vanilla" profile, and for "O", "O1" and "O2" on "hardened" profile. The same error occurs on both athlon-xp and pentium4 machines -- those are the only two architectures I have handy.

A list of packages that I cannot compile (due to ICE in in try_split, at emit-rtl.c:3343) includes : abiword-2.2.5, gimp-2.2.6, openoffice-ximian-1.3.9-r1, and a bunch of other stuff.

gcc was compiled with USE="(-altivec) -bootstrap -boundschecking -build -debug +fortran -gcj +gtk +hardened (-ip28) (-multilib) -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc)"

Reproducible: Always
Steps to Reproduce:
1. emerge gcc-3.4.3-20050110-r2
2. put the above code listing into file try.c
3. gcc -O1 try.c

Actual Results:  
internal compiler error: in try_split, at emit-rtl.c:3343

Expected Results:  
undefined reference to `main'

(for the athlon-xp system)
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r2 i686)
=================================================================
System uname: 2.6.11-gentoo-r2 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 19 2005, 01:01:54)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -frename-registers -fomit-frame-pointer "
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
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -frename-registers -fomit-frame-pointer "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp-mirror.internap.com/pub/gentoo/
http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.osuosl.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
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="x86 3dnow X aac aalib acl acpi adns aim alsa apache2 apm arts avi
bash-completion berkdb bitmap-fonts bonobo cdr cjk cmucl crypt cscope cups curl
dga dnd doc dumb-allegro dvd dvdr editor emacs emboss encode erandom esd
ethereal evo faad fam fbcon ffmpeg fftw flac foomaticdb fortran gd gdbm ggi gif
gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hardened imagemagick
imlib ipv6 ithreads jack java jce jpeg junit kde kerberos lcms ldap libg++
libwww mad mbox mikmod mmx mng mono motif mozdevelop mozilla moznocompose
moznoirc moznomail mozxmlterm mp3 mpeg mule mysql nas ncurses nls nntp nptl oav
odbc ogg oggvorbis opengl opie oss pam pcre pda pdflib perl pic plotutils png
postgres python qt quicktime readline samba scanner sdl slang slp snmp speex
spell sse ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts
type1-fonts unicode usb vorbis wmf xface xinerama xml xml2 xmms xprint xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS


(for the pentium4 system)
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110-vanilla,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r2 i686)
=================================================================
System uname: 2.6.11-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 23 2005, 02:20:56)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -frename-registers -fomit-frame-pointer"
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
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -frename-registers -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
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="x86 X aalib acl adns alsa apache2 apm arts avi bash-completion berkdb
bitmap-fonts cdr cjk crypt cscope cups curl doc emacs emboss encode erandom esd
fam flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2
guile hal hardened imagemagick imlib ipv6 ithreads jack java jpeg junit kde ldap
libg++ libwww mad mikmod mmx motif mozdevelop mozilla mozxmlterm mp3 mpeg mysql
nas ncurses nls nptl odbc ogg oggvorbis opengl oss pam pcre pdflib perl pic png
postgres python qt quicktime readline samba scanner sdl silc slang snmp speex
spell sse ssl tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts
unicode vorbis xface xine xinerama xml xml2 xmms xprint xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2005-04-13 21:11:04 UTC
Created attachment 56222 [details]
ccZvlAAt.out -- example preprocessed source file
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2005-04-14 12:29:00 UTC
Hm... on both machines, gcc-3.4.3-20050110-r2 was so broken that it couldn't even compile itself. So I used an old gcc-3.3.5 binary to recompile gcc-3.4.3-20050110-r2, and now it seems to work perfectly. 

I have no idea how this bug came about -- especially on two different machines. My guess is that the bug must have originated in whatever compiler I had used to originally compile gcc-3.4.3-20050110-r2 (presumably, an earlier version of gcc-3.4.3).

Has anyone else who is using 3.4.3-20050110-r2 experienced anything like this?
Comment 3 SpanKY gentoo-dev 2005-04-15 15:59:04 UTC

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