Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241828 - Qt 4.3.3's qmake segfaults during building qt 4.3.3
Summary: Qt 4.3.3's qmake segfaults during building qt 4.3.3
Status: RESOLVED DUPLICATE of bug 213411
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 20:04 UTC by Andrew John Hughes
Modified: 2009-01-03 14:23 UTC (History)
3 users (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 Andrew John Hughes 2008-10-13 20:04:23 UTC
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  
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: 31091 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.

(gdb) run
Starting program: /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/bin/qmake 

Program received signal SIGSEGV, Segmentation fault.
QRegExpCharClass::operator= (this=0x9b9f70, cc=@0x98e4c0)
    at /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/include/QtCore/../../src/corelib/arch/qatomic_generic.h:73
73	{ return ++(*ptr); }
(gdb) bt
#0  QRegExpCharClass::operator= (this=0x9b9f70, cc=@0x98e4c0)
    at /var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/include/QtCore/../../src/corelib/arch/qatomic_generic.h:73


Reproducible: Always

Steps to Reproduce:
1. emerge qt 4.3.3
2.
3.




Portage 2.1.4.5 (default-linux/amd64/2007.0/desktop, gcc-4.3.9999, glibc-2.7-r2, 2.6.25-gentoo-r7.rivendell x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7.rivendell x86_64 Intel(R) Xeon(R) CPU X5482 @ 3.20GHz
Timestamp of tree: Sun, 12 Oct 2008 16:34:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.7-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 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 -pipe -march=core2 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/env /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/shutdown /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CPPFLAGS="-I/home/andrew/build/include"
CXXFLAGS="-O2 -pipe -march=core2 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo "
LANG="en_GB.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j9"
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="/home/andrew/projects/gentoo/gnu_andrew_overlay /home/andrew/projects/gentoo/java-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt cups curl cvs dbus dga dirac djvu dri dts dv dvb dvd dvdr dvdread eds emacs emboss encode evo fam ffmpeg fftw firefox flac fontconfig fortran ftp gcj gdbm gif gnome gnutls gpm graphviz gstreamer gtk gtkhtml hal iconv idn ieee1394 imagemagick imap ipv6 isdnlog java javascript jbig jpeg jpeg2k kerberos ladspa lame latex lcms ldap libass libcaca libnotify libsamplerate lzo mad mbox midi mikmod mmap mmx mng mp3 mpeg mudflap musepack musicbrainz nas ncurses nis nls nntp nptl nptlonly nsplugin ogg openexr opengl openmp oss pam pch pcre pdf perl png policykit postgres pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection sasl schroedinger sdl session sndfile sox speex spell spl sse sse2 ssl startup-notification subversion svg taglib tcpd tga theora threads tiff truetype unicode usb vorbis wavpack wmf x264 xattr xcomposite xft xml xorg xosd xprint xscreensaver xulrunner xv xvid yahoo zeroconf 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_GB" USERLAND="GNU" VIDEO_CARDS="radeonhd fglrx radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2008-10-13 20:24:19 UTC
Can you try again with one of the gcc versions available in the main gentoo tree? I suspect a problem with the unstable version of gcc rather than the stable version of qt...
Comment 2 Hanno Zysik (geki) 2008-10-14 09:08:24 UTC
Duplicate of bug 213411.

Append '-fno-strict-aliasing' to your CFLAGS to workaround Qt-4.3.x issue.
Qt-4.4.x should be fixed.
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-10-14 17:45:54 UTC
andrew: can you confirm that adding '-fno-strict-aliasing' to your CFLAGS makes this problem go away?

if so, please close this bug as a duplicate of bug #213411.
thanks.
Comment 4 Per Pascal Seeland 2009-01-02 23:22:27 UTC
I can comfirm that the adding "-fno-strict-aliasing" enables building qt. I had the same problem andrew reported. I suggest marking it as duplicate. 

Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28 x86_64)
=================================================================
System uname: Linux-2.6.28-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-glibc2.2.5
Timestamp of tree: Fri, 02 Jan 2009 15:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -fno-strict-aliasing"
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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /usr/share/X11/xkb"
CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-dectection distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LDFLAGS="-Wl,-O1"
LINGUAS="de de_DE en en_US en_GB"
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=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo caps cdr cli cracklib crypt cscope ctype cups curl dbus dri dvd dvdr dvdread eds emboss encode esd evo exif expat fam ffmpeg firefox flac fortran gd gdbm gif gpm gstreamer gtk hal iconv ieee1394 ipv6 isdnlog jabber java jpeg kde kdeenablefinal lcms ldap libnotify mad midi mikmod mmap mmx mp3 mpeg mplayer mudflap multilib musepack mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime raw readline reflection ruby sdl session slang sndfile speex spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb vim-syntax vorbis x264 xine xml xorg xsl xulrunner xv zlib" ALSA_CARDS="intel8x0" 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 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" APACHE2_MPMS="worker" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="vga vesa intel radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Ben de Groot (RETIRED) gentoo-dev 2009-01-03 01:30:39 UTC

*** This bug has been marked as a duplicate of bug 213411 ***
Comment 6 Gordon Malm (RETIRED) gentoo-dev 2009-01-03 05:18:58 UTC
Looks like it was marked a dupe before I refreshed, so just repasting my comment:

I can reproduce this issue and can confirm that adding -fno-strict-aliasing to CFLAGS (and thus CXXFLAGS) fixes the problem.  Closing as duplicate of 213411 as requested in comment #3.

Also note that GCC 4.3.x is targeted to go stable in the not-to-distant future.  I'd recommend an append-flags be added to the =x11-libs/qt-4.3.3 ebuild or =x11-libs/qt-4.3.4-r1 be considered for test/stable very soon.
Comment 7 Ben de Groot (RETIRED) gentoo-dev 2009-01-03 14:23:52 UTC
Actually, qt 4.4.2 is meant to go stable soon, see bug 248038. So that should solve it for stable as well.