Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233283 - x11-libs/qt-4.3.5 fails to compile with gcc 4.3
Summary: x11-libs/qt-4.3.5 fails to compile with gcc 4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-07-29 15:15 UTC by gapon
Modified: 2009-01-30 12:37 UTC (History)
4 users (show)

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


Attachments
compressed log file (build.log.bz2,63.65 KB, application/octet-stream)
2008-07-29 15:41 UTC, gapon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gapon 2008-07-29 15:15:46 UTC
I will attach the log file.

Reproducible: Always




gapon@cattie ~ $ emerge  --info
Portage 2.2_rc4 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo i686)
=================================================================
System uname: Linux-2.6.26-gentoo-i686-Genuine_Intel-R-_CPU_T2600_@_2.16GHz-with-glibc2.0
Timestamp of tree: Tue, 29 Jul 2008 09:30:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 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:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://ftp.linux.cz/pub/linux/gentoo http://gentoo.inode.at/ ftp://213.186.33.38/gentoo-distfiles/ http://gentoo.inf.elte.hu/"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="cs"
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/local/portage /usr/local/portage/bzr-gentoo-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi alsa apache2 aspnet aspnetedit avi bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt css cups dbus directfb divx4linux dri dvd dvdr dvdread eds emboss encode evo examples exif faad fam fbcon ffmpeg firebird firefox fortran ftp gdbm gif git gnutls gpm gstreamer gtk gtk2 hal iconv imap inotify ipod ipv6 isdnlog jabber java java5 java6 jpeg jpeg2k jython kde kdeenablefinal kerberos laptop ldap libnotify logitech-mouse logrotate mad midi mikmod mmx mmx2 mng mono moonlight mp3 mpeg mplayer mudflap mysql ncurses networkmanager nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcmcia pcre pdf perl png pnp postgres ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection ruby samba sasl sdl seamonkey session smp spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg swig tcpd theora tiff truetype unicode usb utf8 vim vim-syntax vorbis wifi win32codecs wireshark x264 x86 xcb xine xinerama xml xorg xscreensaver xv xvid zlib zsh-completion" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2 canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia nv vga vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 gapon 2008-07-29 15:17:59 UTC
log file it too big...

[...]
                 from ../../../../include/QtGui/qaccessibleobject.h:1,
                 from ../../../../include/QtGui/../../src/gui/accessible/qaccessiblewidget.h:47,
                 from ../../../../include/QtGui/qaccessiblewidget.h:1,
                 from qaccessiblecompat.h:47,
                 from qaccessiblecompat.cpp:44:
../../../../include/QtCore/../../src/corelib/tools/qbytearray.h:151: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qbytearray.h:152: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qbytearray.h:154: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qbytearray.h:353: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qbytearray.h:355: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qbytearray.h:357: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qbytearray.h:398: warning: type qualifiers ignored on function return type
In file included from ../../../../include/QtCore/qstring.h:1,
                 from ../../../../include/QtCore/../../src/corelib/kernel/qobject.h:50,
                 from ../../../../include/QtCore/qobject.h:1,
                 from ../../../../include/QtGui/../../src/gui/accessible/qaccessible.h:48,
                 from ../../../../include/QtGui/qaccessible.h:1,
                 from ../../../../include/QtGui/../../src/gui/accessible/qaccessibleobject.h:47,
                 from ../../../../include/QtGui/qaccessibleobject.h:1,
                 from ../../../../include/QtGui/../../src/gui/accessible/qaccessiblewidget.h:47,
                 from ../../../../include/QtGui/qaccessiblewidget.h:1,
                 from qaccessiblecompat.h:47,
                 from qaccessiblecompat.cpp:44:
../../../../include/QtCore/../../src/corelib/tools/qstring.h:794: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qstring.h:795: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qstring.h:796: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qstring.h:802: warning: type qualifiers ignored on function return type
../../../../include/QtCore/../../src/corelib/tools/qstring.h:803: warning: type qualifiers ignored on function return type
rm -f libqsvg.so
g++ -Wl,-O1 -Wl,--sort-common -shared -o libqsvg.so .obj/release-shared/main.o .obj/release-shared/qsvgiconengine.o   -L/usr/lib/mysql -L/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/lib -lQtSvg -L/usr/lib/mysql -L/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/lib -L/usr/lib -lQtXml -lQtGui -lpng -lSM -lICE -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -lpthread -ldl
mv -f libqsvg.so ../../../../plugins/iconengines/
make[3]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/src/plugins/iconengines/svgiconengine'
make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/src/plugins/iconengines'
rm -f libqtaccessiblecompatwidgets.so
g++ -Wl,-O1 -Wl,--sort-common -shared -o libqtaccessiblecompatwidgets.so .obj/release-shared/main.o .obj/release-shared/q3simplewidgets.o .obj/release-shared/q3complexwidgets.o .obj/release-shared/qaccessiblecompat.o   -L/usr/lib/mysql -L/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/lib -lQt3Support -L/usr/lib/mysql -L/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/lib -lQtSql -lQtXml -L/usr/lib -lQtNetwork -lQtGui -lpng -lSM -lICE -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -lpthread -ldl
mv -f libqtaccessiblecompatwidgets.so ../../../../plugins/accessible/
make[3]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/src/plugins/accessible/compat'
make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/src/plugins/accessible'
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.3.5/work/qt-x11-opensource-src-4.3.5/src/plugins'
make: *** [sub-plugins-all-ordered] Error 2
 * ERROR: x11-libs/qt-4.3.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2480:  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.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-4.3.5/temp/environment'.
Comment 2 gapon 2008-07-29 15:20:42 UTC
cattie ~ # emerge -av1 qt

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] x11-libs/qt-4.3.5 [4.3.4-r1] USE="accessibility cups dbus examples firebird gif jpeg mng mysql opengl png postgres qt3support sqlite sqlite3 ssl tiff xinerama zlib -debug -doc -glib -nas -nis -odbc -pch" INPUT_DEVICES="-wacom" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB
Comment 3 Rafał Mużyło 2008-07-29 15:35:49 UTC
Those are just warnings, care to post log fragment with errors ?
Comment 4 gapon 2008-07-29 15:40:46 UTC
Ah, sorry - I will compress the log file and attach it.
Comment 5 gapon 2008-07-29 15:41:23 UTC
Created attachment 161630 [details]
compressed log file
Comment 6 Rafał Mużyło 2008-07-29 16:32:01 UTC
Well, really, you could have simply search the log and paste this little fragment:

../../../sql/drivers/ibase/qsql_ibase.cpp:451: error: explicit template speciali
zation cannot have a storage class
../../../sql/drivers/ibase/qsql_ibase.cpp: In function ‘char* readArrayBuffer(QL
ist<QVariant>&, char*, short int, short int*, ISC_ARRAY_DESC*, QTextCodec*)’:
../../../sql/drivers/ibase/qsql_ibase.cpp:475: warning: suggest a space before ‘
;’ or explicit braces around empty body in ‘for’ statement
../../../sql/drivers/ibase/qsql_ibase.cpp: At global scope:
../../../sql/drivers/ibase/qsql_ibase.cpp:606: error: explicit template specialization cannot have a storage class

Having said that, this is a gcc 4.3 bug, that seems to be not fixed
even in qt 4.4. 
Comment 7 Rafał Mużyło 2008-07-29 16:35:39 UTC
Please, mark this bug as blocking bug 198121.
Comment 8 Rafał Mużyło 2008-07-30 09:59:05 UTC
If you want to write a patch by yourself,
simply read http://gcc.gnu.org/gcc-4.3/porting_to.html,
you'll find an explanation there of what should be done.
Comment 9 Gilbert Assaf 2008-09-11 14:11:46 UTC
I have no problems at all compiling qt-4.3.5 with gcc-4.3.1-r1!

Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz
Timestamp of tree: Mon, 08 Sep 2008 09:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-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.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,--as-needed"
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 aalib acl acpi alsa bash-completion berkdb bzip2 cli cracklib crypt dbus dga dmx dri gdbm gif glib glibc-omitfp glitz gpm gtk icc iconv isdnlog java jpeg midi mudflap ncurses nls nptl nptlonly nvidia offensive opengl openmp pam pcre perl png pppd python qt4 quicktime readline reflection sdl session spl sqlite3 ssl svga sysfs tcpd tiff truetype unicode win32codecs x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2008-11-01 18:58:19 UTC
Qt team, please check if this bug is still valid and if we need something newer than 4.3.3 stable.
Comment 11 Zak Kipling 2008-12-31 00:49:54 UTC
(In reply to comment #9)
> I have no problems at all compiling qt-4.3.5 with gcc-4.3.1-r1!

It looks as though the error is in code which is only compiled with USE=firebird ...
Comment 12 Markos Chandras (RETIRED) gentoo-dev 2009-01-30 12:37:55 UTC
This is no longer valid for qt-sql-4.4.2[firebird].

Please re-open it if you still have issues with the latest qt-sql in portage :)