QT won't compile, g++ catches segfault every time compiling mainwindowactions.cpp. g++: Internal error: Segmentation fault (program as). ERROR: x11-libs/qt-3.2.3-r1 failed. Function src_compile, Line 109, Exitcode 2 (no error message) Happens always, tried many times. Reproducible: Always Steps to Reproduce: 1. boot up.. 2. emerge mplayer 3. since I don't have QT, it tries to emerge it first and fails, hence the whole emerging fails
Same here -- attempted emerge of mplayer, QT failes on mainwindowactions.cpp. However, I have found it too be somewhat irregular. When attempting to restart the build with emerge compile, it would often succeed in compiling mainwindowactions, but then fail on later dependencies.
emerge info please
I attempted an emerge of QT with ACCEPT_KEYWORDS='~x86', which required me to get new glibc, gcc, g++, etc, and the compile of QT went off without a hitch. Sorry, I don't have the original gcc/g++/glibc version, but they were whatever was in the stable portage from yesterday (1/12/2004)
same on my site when i try to make an emerge -u world gcc = gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) make[3]: Leaving directory `/var/tmp/portage/qt-3.2.3-r1/work/qt-x11-free-3.2.3/plugins/src/sqldrivers/mysql' make[2]: Leaving directory `/var/tmp/portage/qt-3.2.3-r1/work/qt-x11-free-3.2.3/plugins/src/sqldrivers' make[1]: *** [sub-sqldrivers] Fehler 2 make[1]: Leaving directory `/var/tmp/portage/qt-3.2.3-r1/work/qt-x11-free-3.2.3/plugins/src' make: *** [sub-plugins] Fehler 2 !!! ERROR: x11-libs/qt-3.2.3-r1 failed. !!! Function src_compile, Line 109, Exitcode 2 !!! (no error message)
I ran 'emerge portage' and 'emerge -u system' and after that QT compiled just fine.
Fails for me, too. It was seg faulting on the same file each time, though a different one than the original poster indicated. As per comment #5, I ran "emerge portage" (which replaced portage but did not upgrade the version because I had the latest one anyway) and "emerge -u system" (which did nothing because my system was already up to date). The result was that "emerge qt" seg faulted on different files (I have an SMP system, so I can double my failure rate): g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/var/tmp/portage/qt-3.2.3-r1/work/qt-x11-free-3.2.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qtitlebar.o widgets/qtitlebar.cpp In file included from widgets/qtabbar.cpp:47: kernel/qinternal_p.h: In destructor `QVirtualDestructor::~QVirtualDestructor()': kernel/qinternal_p.h:143: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[1]: *** [.obj/release-shared-mt/qtabbar.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from ../include/qwindowdefs.h:44, from ../include/qwidget.h:42, from widgets/qbutton.h:42, from widgets/qtitlebar_p.h:56, from widgets/qtitlebar.cpp:40: ../include/qstring.h: In destructor `QStringData::~QStringData()': ../include/qstring.h:360: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. In file included from ../include/qobject.h:45, from ../include/qwidget.h:43, from widgets/qtabwidget.h:42, from widgets/qtabwidget.cpp:38: ../include/qevent.h: In constructor `QPaintEvent::QPaintEvent(const QRegion&, bool)': ../include/qevent.h:324: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[1]: *** [.obj/release-shared-mt/qtitlebar.o] Error 1 make[1]: *** [.obj/release-shared-mt/qtabwidget.o] Error 1 make: *** [sub-src] Error 2 !!! ERROR: x11-libs/qt-3.2.3-r1 failed. !!! Function src_compile, Line 109, Exitcode 2 !!! (no error message) Here is the output from "emerge info": Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.22-gentoo-r5) ================================================================= System uname: 2.4.22-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.seren.com/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://mirror.tucdemonic.org/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo cdr crypt cups dvdr emacs encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib jack java jikes jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl png python quicktime readline scanner sdl slang spell sse ssl tcltk tcpd truetype usb videos x86 xml2 xmms xv zlib video_cards_radeon" A detail: As an artifact from the Gentoo install guide, my /etc/make.conf specifies "USE=-qt". For the build shown above, I used "USE=qt emerge mplayer". Just in case.
I was having this problem, but I realized that my swapspace hadn't started. So after 90 megs of ram was used it, it was killed. Though I doubt this was happening in any of these cases.
I wanted to report seeing the same bug. The build failure I saw: g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_XCURSOR -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qdesktopwidget_x11.o kernel/qdesktopwidget_x11.cpp In file included from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include/g++-v3/locale:47, from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include/g++-v3/bits/ostream.tcc:37, from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include/g++-v3/ostream:535, from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include/g++-v3/iterator:70, from ../include/qvaluelist.h:48, from ../include/qmap.h:46, from kernel/qmime.h:43, from kernel/qevent.h:45, from kernel/qobject.h:45, from kernel/qwidget.h:43, from kernel/qdesktopwidget.h:40, from kernel/qdesktopwidget_x11.cpp:36: /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include/g++-v3/bits/locale_facets.h: In instantiation of `std::collate_byname<char>': /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include/g++-v3/bits/locale_facets.tcc:2525: instantiated from here /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include/g++-v3/bits/locale_facets.h:1071: internal compiler error: Segmentation fault bash-2.05b# uname -a Linux keef 2.6.7-gentoo-r13 #1 Wed Aug 11 22:27:28 UTC 2004 i686 VIA Samuel 2 CentaurHauls GNU/Linux bash-2.05b# gcc -v Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/specs Configured with: /var/tmp/portage/gcc-3.3.3-r6/work/gcc-3.3.3/configure --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info --enable-shared --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=generic Thread model: posix gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) Any other information desired?
I have also been experiencing this same problem when compiling qt-3.3.3 on an AthlonXP2700+ system. g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qhttp.o network/qhttp.cpp iconview/qiconview.cpp: In member function `QIconViewItem* QIconView::findItemByName(QIconViewItem*)': iconview/qiconview.cpp:5680: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qhostaddress.o network/qhostaddress.cpp g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qnetwork.o network/qnetwork.cpp g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qserversocket.o network/qserversocket.cpp g++ -c -pipe -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qsocket.o network/qsocket.cpp The bug is not reproducible, so it is likely a hardware or OS problem. make[1]: *** [.obj/release-shared-mt/qiconview.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/src' make: *** [sub-src] Error 2 !!! ERROR: x11-libs/qt-3.3.3 failed. !!! Function src_compile, Line 116, Exitcode 2 emerge info Portage 2.0.51-r2 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686) ================================================================= System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(tm) XP 2700+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xprint xv zlib"
*bump* gcc team any word on this, or is this a dup of the meta gcc segfaulting bug. Normally I'd say yes but, qt seems to have its quirks every now and then with segfaulting. Also adding kde team to see if they have any input on this.
qt is just one of the most cpu-intensive compiles. I would say these errors are all caused by an out-of-RAM situation, or by generic hardware fault.
He's right - all of these posters are posting different seg faults in the compiler. For each and every one, it's a local compilation issue.