Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142137 - gcc has internal error when compiling qt
Summary: gcc has internal error when compiling qt
Status: RESOLVED DUPLICATE of bug 20600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-29 18:01 UTC by Sumit Khanna
Modified: 2006-07-30 03:44 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 Sumit Khanna 2006-07-29 18:01:52 UTC
I was trying to recompile packages with the "xinerama" use flag and qt fails to compile. I get the following:

/QtSql -I../../include -I../../include/Qt3Support -I.moc/debug-shared -I. -o .obj/debug-shared/q3simplerichtext.o text/q3simplerichtext.cpp
g++ -c -m64 -pipe -I/usr/include/mysql -g -Wall -W -D_REENTRANT -fPIC  -DQT_SHARED -DQT_BUILD_COMPAT_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include/QtGui -I../../include/QtXml -I../../include/QtSql -I../../include -I../../include/Qt3Support -I.moc/debug-shared -I. -o .obj/debug-shared/q3stylesheet.o text/q3stylesheet.cpp
g++ -c -m64 -pipe -I/usr/include/mysql -g -Wall -W -D_REENTRANT -fPIC  -DQT_SHARED -DQT_BUILD_COMPAT_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include/QtGui -I../../include/QtXml -I../../include/QtSql -I../../include -I../../include/Qt3Support -I.moc/debug-shared -I. -o .obj/debug-shared/q3canvas.o canvas/q3canvas.cpp
g++ -c -m64 -pipe -I/usr/include/mysql -g -Wall -W -D_REENTRANT -fPIC  -DQT_SHARED -DQT_BUILD_COMPAT_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include/QtGui -I../../include/QtXml -I../../include/QtSql -I../../include -I../../include/Qt3Support -I.moc/debug-shared -I. -o .obj/debug-shared/q3dns.o network/q3dns.cpp
../../include/QtCore/../../src/corelib/tools/qlinkedlist.h: In member function `void QLinkedList<T>::detach() [with T = QHostAddress]':
../../include/QtCore/../../src/corelib/tools/qlinkedlist.h:65:   instantiated from `QLinkedList<T>::QLinkedList(const QLinkedList<T>&) [with T = QHostAddress]'
../../include/Qt3Support/../../src/qt3support/tools/q3valuelist.h:91:   instantiated from `Q3ValueList<T>::Q3ValueList(const Q3ValueList<T>&) [with T = QHostAddress]'
network/q3dns.cpp:1990:   instantiated from here
../../include/QtCore/../../src/corelib/tools/qlinkedlist.h:73: internal compiler error: Segmentation faultPlease submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [.obj/debug-shared/q3dns.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/qt-4.1.4/work/qt-x11-opensource-src-4.1.4/src/qt3support'
make[2]: *** [debug-all] Error 2
make[2]: Leaving directory `/var/tmp/portage/qt-4.1.4/work/qt-x11-opensource-src-4.1.4/src/qt3support'
make[1]: *** [sub-qt3support-all-ordered] Error 2
make[1]: Leaving directory `/var/tmp/portage/qt-4.1.4/work/qt-x11-opensource-src-4.1.4/src'
make: *** [sub-src-all-ordered] Error 2

!!! ERROR: x11-libs/qt-4.1.4 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  qt-4.1.4.ebuild, line 147:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.



and here is my info:


# emerge --info
Portage 2.1.1_pre4 (default-linux/amd64/2005.1, gcc-3.4.6/amd64-vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r9 x86_64 Intel(R) Pentium(R) D CPU 2.80GHz
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 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.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
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://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi aim alsa audiofile avi berkdb bitmap-fonts browserplugin bzip2 cdinstall cdparanoia cdr cli crypt cups dbus dlloader dri dts dvd dvdr dvdread eds emboss emul-linux-x86 encode exif fam ffmpeg firefox flac foomaticdb fortran ftp gif gnome gpm gstreamer gtk gtk2 gtkhtml hal imlib ipv6 isdnlog java jpeg kde ldap lm_sensors lzw lzw-tiff mad matroska mono mp3 mpeg msn mysql ncurses nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl pam pcre pda pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection rtc samba sdl seamonkey session spell spl ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts usb vcd vorbis wmf xinerama xmms xorg xpm xscreensaver xv xvid yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2006-07-29 21:48:10 UTC
(In reply to comment #0)
> network/q3dns.cpp:1990:   instantiated from here
> ../../include/QtCore/../../src/corelib/tools/qlinkedlist.h:73: internal
> compiler error: Segmentation faultPlease submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://bugs.gentoo.org/> for instructions.
> The bug is not reproducible, so it is likely a hardware or OS problem.

When Gentoo's GCC hits an internal compiler error (ICE), it'll automatically attempt to repeat the action that triggered it.

After it does this a few times, if the ICE occurs on every attempt it can (reasonably) be assumed that the problem lie in GCC.  

However, if any of the successive attempts are successful then we know it's probably not GCC at fault.  That's what is meant by "The bug is not reproducible, so it is likely a hardware or OS problem." which is usually the case.  Things that possibly could trigger this behaviour include dying hardware, overheating, configuration errors, etc.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-30 03:44:33 UTC

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