Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195628 - [4.2/ICE] internal compiler error: in reference_to_unused, at dwarf2out.c
Summary: [4.2/ICE] internal compiler error: in reference_to_unused, at dwarf2out.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/bugzilla/show_bug....
Whiteboard:
Keywords:
: 195590 195841 196854 197371 198542 199424 201589 203248 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-12 16:19 UTC by Peter Alfredsen (RETIRED)
Modified: 2008-02-16 22:49 UTC (History)
18 users (show)

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


Attachments
ccxVyiZn.out (ccxVyiZn.out,744.40 KB, text/plain)
2007-10-12 21:02 UTC, Peter Alfredsen (RETIRED)
Details
the fix for gcc bug 31899 (gcc-4.2.2-ICE-fix.patch,1.08 KB, patch)
2007-10-14 11:33 UTC, Bo Ørsted Andresen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2007-10-12 16:19:40 UTC
After emerging gcc-4.2.2, htdig-3.2.0_beta6-r2 causes reproducible ICE:
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include -DDEFAULT_CONFIG_FILE=\"/etc/htdig/htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db -DCONFIG_DIR=\"/etc/htdig\" -I../htfuzzy     -O2 -march=athlon-xp -pipe -ggdb3 -Wall -fno-rtti -fno-exceptions -c -o qtest.o qtest.cc
qtest.cc: In function ‘int main(int, char**)’:
qtest.cc:126: warning: deprecated conversion from string constant to ‘char*’
/bin/bash ../libtool --tag=CXX   --mode=link i686-pc-linux-gnu-g++  -O2 -march=athlon-xp -pipe -ggdb3 -Wall -fno-rtti -fno-exceptions    -o htsearch Display.o DocMatch.o ResultList.o ResultMatch.o Template.o TemplateList.o WeightWord.o htsearch.o parser.o Collection.o SplitMatches.o HtURLSeedScore.o ../htfuzzy/libfuzzy.la ../htnet/libhtnet.la ../htlib/libht.la ../htcommon/libcommon.la ../htword/libhtword.la ../db/libhtdb.la  -lz  -lssl -lcrypto
mkdir .libs
VolatileCache.cc:75: internal compiler error: in reference_to_unused, at dwarf2out.c:10010
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/www-misc/htdig-3.2.0_beta6-r2/temp/ccxVyiZn.out file, please attach this to your bugreport.
make[1]: *** [VolatileCache.o] Error 1
make[1]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-g++ -O2 -march=athlon-xp -pipe -ggdb3 -Wall -fno-rtti -fno-exceptions -o .libs/htsearch Display.o DocMatch.o ResultList.o ResultMatch.o Template.o TemplateList.o WeightWord.o htsearch.o parser.o Collection.o SplitMatches.o HtURLSeedScore.o  ../htfuzzy/.libs/libfuzzy.so ../htnet/.libs/libhtnet.so ../htlib/.libs/libht.so ../htcommon/.libs/libcommon.so /var/tmp/portage/www-misc/htdig-3.2.0_beta6-r2/work/htdig-3.2.0b6/htword/.libs/libhtword.so ../htword/.libs/libhtword.so /var/tmp/portage/www-misc/htdig-3.2.0_beta6-r2/work/htdig-3.2.0b6/htlib/.libs/libht.so /var/tmp/portage/www-misc/htdig-3.2.0_beta6-r2/work/htdig-3.2.0b6/db/.libs/libhtdb.so ../db/.libs/libhtdb.so -lpthread -lz -lssl -lcrypto  -Wl,--rpath -Wl,/usr/lib/htdig -Wl,--rpath -Wl,/usr/lib/htdig_db
creating htsearch
make[1]: Leaving directory `/var/tmp/portage/www-misc/htdig-3.2.0_beta6-r2/work/htdig-3.2.0b6/htsearch'
make: *** [all-recursive] Error 1
 *
 * ERROR: www-misc/htdig-3.2.0_beta6-r2 failed.
 * Call stack:
 *                     ebuild.sh, line 1687:  Called dyn_compile
 *                     ebuild.sh, line 1025:  Called qa_call 'src_compile'
 *                     ebuild.sh, line   44:  Called src_compile
 *   htdig-3.2.0_beta6-r2.ebuild, line   47:  Called die
 * The specific snippet of code:
 *   #          --with-image-url-prefix=file:///var/www/localhost/htdocs/${PN} \
 *      emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/www-misc/htdig-3.2.0_beta6-r2/temp/build.log'.
 *


Reproducible: Always

Steps to Reproduce:




Emerge --info:
Portage 2.1.3.12 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 AMD Sempron(tm)
Timestamp of tree: Thu, 11 Oct 2007 21:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.5.1-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -ggdb3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -ggdb3"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirror.gentoo.no/ http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en da"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi aim alsa authdaemond bash-completion berkdb bitmap-fonts cairo cdr cjk cli cpudetection cracklib crypt css cups curl dbus djbfft dri dts dvd dvdr dvdread evdev fam ffmpeg firefox flac fortran g15 gadu gif glitz gnutls gpm hal hbci iconv icq idea imap isdnlog jabber java javascript jpeg kde kdeenablefinal lcd lm_sensors logitech-mouse logrotate lzo mad matroska mbox midi mikmod mime mmx mmxext mono moznopango mp3 mp4 mpeg mplayer msn mudflap musepack ncurses network-cron nls nocd nptl nptlonly offensive ogg openal opengl openmp oscar pam pcre pdf perl png pop ppds pppd python qt3 qt4 quicktime readline real reflection sasl sdl sensord session shorten slang smime sms speex spell spl sse ssl svg svga tcpd texteffect theora threads tiff translator truetype truetype-fonts type1-fonts unicode usb vcd vorbis win32codecs wmf wxwindows x264 x86 xanim xcb xface xine xml xorg xv xvid yahoo zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="en da" USERLAND="GNU" VIDEO_CARDS="fglrx vesa radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2007-10-12 16:24:17 UTC
The last time I emerged this was with gcc-4.2.0, so I know the error is not present in that version.
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2007-10-12 16:30:16 UTC
USE flags:
[ebuild   R   ] sys-devel/gcc-4.2.2  USE="fortran mudflap nls openmp (-altivec) -bootstrap -build -doc -gcj -gtk (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
[ebuild   R   ] www-misc/htdig-3.2.0_beta6-r2  USE="ssl" 0 kB
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-12 17:12:36 UTC
> Preprocessed source stored into
> /var/tmp/portage/www-misc/htdig-3.2.0_beta6-r2/temp/ccxVyiZn.out file, please
> attach this to your bugreport.

Please, do this.
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2007-10-12 21:02:07 UTC
Created attachment 133270 [details]
ccxVyiZn.out

ccxVyiZn.out
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2007-10-12 21:28:18 UTC
Reopened.
Comment 6 Peter Alfredsen (RETIRED) gentoo-dev 2007-10-13 07:47:45 UTC
I am fairly certain that this is GCC bug 31889:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31899
Patch available.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-10-13 13:45:39 UTC
*** Bug 195590 has been marked as a duplicate of this bug. ***
Comment 8 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-10-14 11:33:46 UTC
Created attachment 133427 [details, diff]
the fix for gcc bug 31899

I hit the same bug when trying to compile paludis-scm with gcc-4.2.2. I've applied this patch locally (extracted from gcc svn revision 129199 excluding the additions to changelogs). Hence I can confirm that both paludis-scm and htdig-3.2.0_beta6-r2 compile successfully after applying the fix to gcc-4.2.2. Thanks. :)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-10-14 14:06:21 UTC
*** Bug 195841 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2007-10-14 22:27:00 UTC
queued for next 4.2.2 patchset
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-10-24 08:54:44 UTC
*** Bug 196854 has been marked as a duplicate of this bug. ***
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-10-26 19:38:46 UTC
Can we mark it as FIXED when it's really fixed in tree? htdig is a dependency of KDE, xalan-c of virtualbox, while you can excuse the second, the first is quite common..
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-10-29 06:51:32 UTC
*** Bug 197371 has been marked as a duplicate of this bug. ***
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-11-09 10:23:15 UTC
*** Bug 198542 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2007-11-17 09:55:46 UTC
*** Bug 199424 has been marked as a duplicate of this bug. ***
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2007-12-07 15:14:28 UTC
*** Bug 201589 has been marked as a duplicate of this bug. ***
Comment 17 Priit Laes (IRC: plaes) 2007-12-17 08:59:40 UTC
(In reply to comment #10)
> queued for next 4.2.2 patchset
> 

Any ETA on this? It has been two months already ;)
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2007-12-24 18:37:32 UTC
*** Bug 203248 has been marked as a duplicate of this bug. ***
Comment 19 Andrei Slavoiu 2008-02-10 20:53:06 UTC
games-strategy/netpanzer-0.8.2 is also affected by this:
src/NetPanzer/Particles/Particle2D.cpp:352: internal compiler error: in reference_to_unused, at dwarf2out.c:10010
Comment 20 SpanKY gentoo-dev 2008-02-16 22:49:44 UTC
gcc-4.2.3 is in the tree