Emerge of x11-libs/qt-4.3.3 hangs during compilation with gcc 4.3 if optimization is set to -O2 or -O3 on my Core2Duo laptop. The last output during emerge is "floatmath auto-detection... ()" and from this moment on CPU usage is about 100% and nothing else happens for hours (really hours!). I did some testing with various CFLAGS, these are the results: gcc 4.1.2: CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe" -> compiles CFLAGS="-march=nocona -O3 -fomit-frame-pointer -pipe" -> compiles gcc 4.3.0: CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe" -> hangs CFLAGS="-march=core2 -O1 -fomit-frame-pointer -pipe" -> compiles CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe" -> hangs CFLAGS="-march=core2 -O3 -fomit-frame-pointer -pipe" -> hangs CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" -> hangs Reproducible: Always Steps to Reproduce: emerge qt-4.3.3 with CFLAGS mentioned above Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.3.0, glibc-2.7-r2, 2.6.24-zen5 x86_64) ================================================================= System uname: 2.6.24-zen5 x86_64 Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz Timestamp of tree: Mon, 21 Apr 2008 16:32:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 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.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe" 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/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ " LC_ALL="de_DE.UTF-8" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/portage/local/layman/gnome /usr/portage/local/layman/gcc-porting /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apache2 apm avahi berkdb bzip2 cairo caps cddb cdr cjk cli cracklib crypt cups dbus dri dts dvd dvdnac dvdr dvdread encode fam fat ffmpeg firefox flac fortran ftp gd gdbm gif gnutls gpm hal http iconv ieee1394 innodb ipv6 ipw3945 isdnlog java javascript jpeg jpeg2k kde ldap live loop-aes mad midi mikmod mime mmx mp3 mp4 mpeg mplayer mudflap musepack mysql ncurses nls nptl nptlonly nsplugin ntfs ntpl ntplonly ogg opengl openmp pam pcre pdf perl png postgres postgresql pppd python qt3 qt3support qt4 quicktime rar readline reflection samba session sndfile sockets sound spl sse sse2 sse3 ssl ssse3 startup-notification stream svg tcl tcpd tetex theora tiff tk truetype unicode v4l v4l2 vcd vorbis xine xinerama xml xorg xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Try x11-libs/qt-4.3.4 with the patch in bug 214223
(In reply to comment #1) > Try x11-libs/qt-4.3.4 with the patch in bug 214223 > qt-4.3.4-r1 compiles fine with gcc 4.3 and -O2. Should bug 198121 depend on a version bump of qt to 4.3.4 stable? Or just close this bug?
Just an FYI. Pentium3 ... Compiling =x11-libs/qt-4.3.3 segfaults while compiling (during test compiles?) using either -O2 or -O3 using gcc-4.3.1-r1. Compiling qt-4.3.5 was successful against gcc-4.3.1-r1. Same bug? Or file a different one? g++ -o "/var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/bin/qmake" project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_dsp.o msvc_vcproj.o msvc_nmake.o msvc_objectmodel.o qstring.o qtextstream.o qiodevice.o qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlistdata.o qfile.o qfsfileengine_unix.o qfsfileengine_iterator_unix.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlinkedlist.o qurl.o qnumeric.o qcryptographichash.o qscriptasm.o qscriptast.o qscriptastvisitor.o qscriptcompiler.o qscriptecmaarray.o qscriptecmaboolean.o qscriptecmacore.o qscriptecmadate.o qscriptecmafunction.o qscriptecmaglobal.o qscriptecmamath.o qscriptecmanumber.o qscriptecmaobject.o qscriptecmaregexp.o qscriptecmastring.o qscriptecmaerror.o qscriptcontext_p.o qscriptengine.o qscriptengine_p.o qscriptextenumeration.o qscriptextvariant.o qscriptcontext.o qscriptfunction.o qscriptgrammar.o qscriptlexer.o qscriptclassdata.o qscriptparser.o qscriptprettypretty.o qscriptsyntaxchecker.o qscriptvalue.o qscriptvalueimpl.o qscriptvalueiterator.o -Wl,-O1 floatmath auto-detection... () /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/config.tests/unix/compile.test: line 54: 22083 Segmentation fault "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile" make: *** No targets specified and no makefile found. Stop. floatmath disabled. mmx auto-detection... () /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/config.tests/unix/compile.test: line 54: 22092 Segmentation fault "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile" make: *** No targets specified and no makefile found. Stop. mmx disabled. 3dnow auto-detection... () /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/config.tests/unix/compile.test: line 54: 22101 Segmentation fault "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile" make: *** No targets specified and no makefile found. Stop. 3dnow disabled. sse auto-detection... () /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/config.tests/unix/compile.test: line 54: 22110 Segmentation fault "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile" make: *** No targets specified and no makefile found. Stop. sse disabled. sse2 auto-detection... () /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/config.tests/unix/compile.test: line 54: 22119 Segmentation fault "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile" make: *** No targets specified and no makefile found. Stop. sse2 disabled. MySQL (thread-safe) auto-detection... () /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/config.tests/unix/compile.test: line 54: 22323 Segmentation fault "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile" make: *** No targets specified and no makefile found. Stop. MySQL (thread-safe) disabled. MySQL (thread-unsafe) auto-detection... () /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/config.tests/unix/compile.test: line 54: 22335 Segmentation fault "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "CONFIG+=$QMAKE_CONFIG" "LIBS*=$LFLAGS" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" "$SRCDIR/$TEST/$EXE.pro" -o "$OUTDIR/$TEST/Makefile" make: *** No targets specified and no makefile found. Stop. MySQL (thread-unsafe) disabled. MySQL support cannot be enabled due to functionality tests! Turn on verbose messaging (-v) to ./configure to see the final report. If you believe this message is in error you may use the continue switch (-continue) to ./configure to continue. [31;01m*[0m ERROR: x11-libs/qt-4.3.3 failed. [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 49: Called src_compile [31;01m*[0m environment, line 2470: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m ./configure ${myconf} || die; [31;01m*[0m The die message: [31;01m*[0m (no error message) [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m*[0m A complete build log is located at '/var/tmp/portage/x11-libs/qt-4.3.3/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-4.3.3/temp/environment'.
Created attachment 163097 [details] qt-4.3.3-build-environment
Created attachment 163099 [details] qt-4.3.3-build-log
emerging x11-libs/qt-4.3.3 segment fault with gcc 4.1.2 and CFLAG -O2 * Messages for package x11-libs/qt-4.3.3: * * ERROR: x11-libs/qt-4.3.3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2461: Called die * The specific snippet of code: * emake all || die * The die message: * (no error message) * * 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/x11-libs/qt-4.3.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-4.3.3/temp/environment'. *
I can confirm that qt 4.3.3 builds with gcc 4.3.1-r1 with using CFLAGS="-march=athlon64 -O1 -pipe -msse3" but will not build with -march=athlon64 -O2 -pipe -msse3
I can compile it with: "-march=core2 -O1 -pipe -fomit-frame-pointer" or with "-march=core2 -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing" qt-4.3.4-r1 ebuilds and above force the "-fno-strict-aliasing" flag into the package, but qt-4.3.3 still doesn't..
I had the same problem, but putting -fno-strict-aliasing in the CFLAGS fixed the issue. So maybe the ebuild for qt-4.3.3 should be changed such that -fno-strict-aliasing is added to the CFLAGS?
(In reply to comment #9) > I had the same problem, but putting -fno-strict-aliasing in the CFLAGS fixed > the issue. So maybe the ebuild for qt-4.3.3 should be changed such that > -fno-strict-aliasing is added to the CFLAGS? > The same fix also works for me on a fresh 2008.0 installation, after upgrading GCC (<sys-devel/gcc-4.4 ~amd64) on AMD64. Error occurred when running 'emerge kde'. Portage 2.1.4.5 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.7-r2, 2.6.26-gentoo-r3 x86_64) ================================================================= System uname: 2.6.26-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz Timestamp of tree: Sun, 07 Dec 2008 00:03:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r2 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=core2 -mfpmath=sse -pipe -fno-strict-aliasing" << -fno-strict-aliasing added 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/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=core2 -mfpmath=sse -pipe -fno-strict-aliasing" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.virginmedia.com/ http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis wifi xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Package is obsolete and no longer in the portage tree.