Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 140017

Summary: [4.1/ICE] ICE while building opensp with -O3 on alpha
Product: Gentoo Linux Reporter: Stefaan De Roeck (RETIRED) <stefaan>
Component: [OLD] GCC PortingAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: Alpha   
OS: Linux   
URL: http://gcc.gnu.org/PR28376
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Preprocessed source that triggers the ICE
ice.ii

Description Stefaan De Roeck (RETIRED) gentoo-dev 2006-07-11 11:45:45 UTC
while trying to emerge app-text/opensp-1.5.2.  
Reproducable by doing "gcc -O3 -pipe -mcpu=ev56 -o blah -c attached_file.ii"
(Attached file follows)

Portage 2.1.1_pre2-r4 (default-linux/alpha/2006.0, gcc-4.1.1/vanilla, glibc-2.3.6-r4, 2.6.17.1 alpha)
=================================================================
System uname: 2.6.17.1 alpha EV56
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="alpha ~alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O3 -mcpu=ev56"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-mieee -pipe -O3 -mcpu=ev56"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://michigan/gentoo-portage"
USE="alpha X alsa apache2 bash-completion berkdb bitmap-fonts cli crypt cups dlloader dri encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nis nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_glint"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stefaan De Roeck (RETIRED) gentoo-dev 2006-07-11 11:50:29 UTC
Created attachment 91492 [details]
Preprocessed source that triggers the ICE

I hope there's some way to reproduce this on a platform different then alpha :)
Comment 2 SpanKY gentoo-dev 2006-07-11 22:41:28 UTC
it'll take me some time to reproduce this

the .ii works fine on amd64/x86
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2006-07-11 23:55:06 UTC
Some more details:

stefaan@gourmet:/tmp$ gcc -o test.o -c test2.ii -O3 -mcpu=ev56
ArcEngine.cxx: In constructor 'OpenSP::ArcEngineImpl::ArcEngineImpl(OpenSP::Messenger&, const OpenSP::SgmlParser*, OpenSP::ArcDirector&, const volatile sig_atomic_t*, const OpenSP::StringC*, const OpenSP::Notation*, const OpenSP::Vector<OpenSP::String<unsigned int> >&, const OpenSP::SubstTable*)':
ArcEngine.cxx:203: error: unrecognizable insn:
(insn 114 113 115 3 (set (reg:DI 215)
        (leu:DI (const_int 0 [0x0])
            (const_int 80 [0x50]))) -1 (nil)
    (nil))
ArcEngine.cxx:203: internal compiler error: in extract_insn, at recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.

with -O2, it gives no error at all
Comment 4 SpanKY gentoo-dev 2006-07-13 19:41:39 UTC
Created attachment 91668 [details]
ice.ii
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2007-11-13 04:43:33 UTC
This seems to work with 4.1.2.  Could someone else please verify that though?

Thanks
Comment 6 Stefaan De Roeck (RETIRED) gentoo-dev 2007-11-28 16:46:27 UTC
Tested with gcc-4.2.2, seems to work now.