Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578922 - =dev-qt/qtquick1-5.4.2 fails to build with GCC 5.3.0
Summary: =dev-qt/qtquick1-5.4.2 fails to build with GCC 5.3.0
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-03 13:20 UTC by Peter Asplund
Modified: 2016-04-10 16:52 UTC (History)
0 users

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


Attachments
Patch (qtquick1-gcc-5.3.0.patch,319 bytes, patch)
2016-04-03 13:58 UTC, Peter Asplund
Details | Diff
New ebuild (qtquick1-5.5.1-r1.ebuild,1.13 KB, text/plain)
2016-04-03 13:58 UTC, Peter Asplund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Asplund 2016-04-03 13:20:43 UTC
I think I've seen this compilation error on something else before (I think it was Valve's VOGL) and all it needs seems to be an include.

See this thread and patch (even though it's a completely different software):
https://github.com/QuiteRSS/quiterss/issues/858

Log:
...
...
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BUILD_DECLARATIVE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_OPENTYPE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtDeclarative -I../../include/QtDeclarative/5.4.2 -I../../include/QtDeclarative/5.4.2/QtDeclarative -Iqml -Iqml/parser -Iqml/rewriter -Iutil -Igraphicsitems -Idebugger -isystem /usr/include/qt5/QtWidgets/5.6.0 -isystem /usr/include/qt5/QtWidgets/5.6.0/QtWidgets -isystem /usr/include/qt5/QtGui/5.6.0 -isystem /usr/include/qt5/QtGui/5.6.0/QtGui -isystem /usr/include/qt5/QtScript/5.6.0 -isystem /usr/include/qt5/QtScript/5.6.0/QtScript -isystem /usr/include/qt5/QtCore/5.6.0 -isystem /usr/include/qt5/QtCore/5.6.0/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtXmlPatterns -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -I.moc -I/usr/lib64/qt5/mkspecs/linux-g++ -o .obj/qdeclarativesystempalette.o util/qdeclarativesystempalette.cpp
util/qdeclarativeconnections.cpp: In member function ‘virtual QByteArray QDeclarativeConnectionsParser::compile(const QList<QDeclarativeCustomParserProperty>&)’:
util/qdeclarativeconnections.cpp:194:19: error: variable ‘QDataStream ds’ has initializer but incomplete type
     QDataStream ds(&rv, QIODevice::WriteOnly);
                   ^
util/qdeclarativeconnections.cpp: In member function ‘void QDeclarativeConnections::connectSignals()’:
util/qdeclarativeconnections.cpp:246:20: error: variable ‘QDataStream ds’ has initializer but incomplete type
     QDataStream ds(d->data);
                    ^
Makefile:7881: recipe for target '.obj/qdeclarativeconnections.o' failed
make[2]: *** [.obj/qdeclarativeconnections.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtquick1-5.4.2/work/qtquick1-opensource-src-5.4.2/src/declarative'
Makefile:44: recipe for target 'sub-declarative-make_first-ordered' failed
make[1]: *** [sub-declarative-make_first-ordered] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtquick1-5.4.2/work/qtquick1-opensource-src-5.4.2/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2
 * ERROR: dev-qt/qtquick1-5.4.2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-qt/qtquick1-5.4.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-qt/qtquick1-5.4.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-qt/qtquick1-5.4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtquick1-5.4.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-qt/qtquick1-5.4.2/work/qtquick1-opensource-src-5.4.2'
 * S: '/var/tmp/portage/dev-qt/qtquick1-5.4.2/work/qtquick1-opensource-src-5.4.2'

root@skare$ emerge --info
Portage 2.2.28 (python 3.5.1-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.3.0, glibc-2.22-r3, 4.4.4-gentoo x86_64)
=================================================================
System uname: Linux-4.4.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:    12303592 total,   6594064 free
KiB Swap:   12418208 total,  11958784 free
Timestamp of repository gentoo: Fri, 01 Apr 2016 06:30:01 +0000
sh bash 4.3_p42-r2
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.3.5-r7::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r3::gentoo
Repositories:

AzP
    location: /usr/local/portage
    masters: gentoo

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=7 --with-bdeps=y --load-average=50 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.uoi.gr/mirror/OS/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="24bpp 256-color 3dnow 3dnowext 64bit S3TC X a52 aac aacplus aalib accessibility acl acpi aio alsa amazon amd64 amr amrnb amrwb apng asf aspell autoipd avahi avi bash-completion bidi binary-drivers bineditor bluetooth bookmarks branding btrfs bzip2 c++0x cairo ccache cdda cdr cg cgi clang cleartype cli clutter cmake colord cover coverart cracklib crypt css cue cups curl custom-optimization cxx daap dbus dconf debugger device-mapper devil dga dhclient dirac divx dmx dns dri dri3 drm dts dvd dvdr dvdread egl eglfs emboss encode evo exif f2fs fakevim fam fastcgi fat fbcon ffmpeg firefox flac fluidsynth fontconfig fortran fpm freeimage freerdp ftp fuse g3dvl gaim gbm gd gdbm gdu gflags ggi gif gimp git glamor glew glib glut gmail gmailtimestamps gmedia gnome gnome-keyring gnome-online-accounts gnome-shell google gpm gstreamer gtk gtk2 gtk3 gtkhtml gvim gzip h224 h281 h323 howl-compat hpijs hwdb iconv icq icu idn imap inotify introspection iphone ipv6 jabber java java6 jingle jpeg jpeg2k kde kdrive lame lcms ldap libnotify libsecret libsexy libssh2 libv4l libv4l2 llvm llvm-shared-libs lm_sensors mad madwifi mbox md5sum mdnsresponder-compat mh midi mikmod mime minizip mmx mmxext mng moc mod modplug modules mozembed mozilla moznocompose moznoirc moznomail moznoroaming mozsha1 mozsvg mp2 mp3 mp4 mp4live mpeg msn multimedia musepack musicbrainz nas nautilus ncurses nemesi networkmanager new-hpcups nfsv41 nls nptl nsplugin ntfs ntfsprogs nx ofa ogg openal opencl opencore-amr opengl openmp openssl opensslcrypt optimization pam pango pcntl pcre pdf pdflib perl php pidgin pipechan png pnm policykit pop ppds private-headers pulseaudio pvr python python3 qml qt3support qt4 qtscript quicktime radio raw rdesktop rdp readline realmedia reiser4 reiserfs rtc s3tc samba sasl schroedinger scintilla sdl seccomp secure-delete session sid sip sndfile sockets spell sql sqlite srt sse sse2 sse3 sse4 sse4.1 sse4.2 sse4_1 sse4_2 ssh ssl ssse3 staging startup-notification static-analyzer steamruntime subtitles subversion suid svg systemd tcpd telepathy teletext tga theora threads tiff tls tracker transcode truetype udev udisks unicode upcall upnp upower usb v4l v4l2 vaapi valgrind vdpau video videos vim vim-pager vim-syntax vim-with-x vorbis vte wav wavpack wayland webdav webdav-neon webdav-serf webkit webkit2 webm webp webphoto webstart wifi winbind wma wma-fixed wmf wmp wxwidgets x264 x265 xanim xattr xcb xcomposite xdmcp xext xfs xinerama xkb xml xrandr xv xvid xvmc zeitgeist zeroconf zip zlib zoran" ABI_X86="64" ALSA_CARDS="emu10k1 hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev roccat_konextd" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en sv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="i386 arm x86_64" QEMU_USER_TARGETS="i386 arm x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Asplund 2016-04-03 13:58:24 UTC
Created attachment 429570 [details, diff]
Patch
Comment 2 Peter Asplund 2016-04-03 13:58:39 UTC
Created attachment 429572 [details]
New ebuild
Comment 3 Peter Asplund 2016-04-03 13:59:00 UTC
This worked for me to get it to compile, hope it's useful!
Comment 4 Davide Pesavento gentoo-dev 2016-04-03 15:00:33 UTC
I think it should be #include <QtCore/qdatastream.h>
Comment 5 Davide Pesavento gentoo-dev 2016-04-10 12:44:08 UTC
Wait a second, why are you trying to build qtquick1-5.4.2 against qt*-5.6.0 ?

Anyway, this bug was fixed upstream long ago[1], before 5.5.0. And 5.4.2 is no longer in the tree.

[1] http://code.qt.io/cgit/qt/qtquick1.git/commit/?id=802ac9c0af4617246d496157448064bd85b738c3
Comment 6 Davide Pesavento gentoo-dev 2016-04-10 12:45:01 UTC
It also has nothing to do with gcc-5
Comment 7 Peter Asplund 2016-04-10 15:31:53 UTC
(In reply to Davide Pesavento from comment #5)
> Wait a second, why are you trying to build qtquick1-5.4.2 against qt*-5.6.0 ?
> 
> Anyway, this bug was fixed upstream long ago[1], before 5.5.0. And 5.4.2 is
> no longer in the tree.
> 
> [1]
> http://code.qt.io/cgit/qt/qtquick1.git/commit/
> ?id=802ac9c0af4617246d496157448064bd85b738c3

Hi, I'm sorry I was mistaken for the reason it failed, I just saw that it started happening.

I actually have NO IDEA why I'm getting these versions, since they are all marked as "(deprecated)" in their description.
I know that it is because I have the qt repository installed via Layman, but that was only because I wanted the latest version of QtCreator, and at the time the main tree was several versions behind.

All the Qt packages has been updated to 5.6.0 in the Qt overlay, except qtquick1.
Comment 8 Peter Asplund 2016-04-10 15:33:23 UTC
It seems like dropbox is the (bastard) app that is pulling it in.. :'(

root@skare$ equery d qtquick1
 * These packages depend on qtquick1:
net-misc/dropbox-3.17.31 (X ? dev-qt/qtquick1:5)
Comment 9 Michael Palimaka (kensington) gentoo-dev 2016-04-10 15:44:17 UTC
We might need to unpin the qt dependencies in qtquick1. 5.5.1 has been working ok against 5.6.0 for a while here.
Comment 10 Davide Pesavento gentoo-dev 2016-04-10 16:52:17 UTC
(In reply to Michael Palimaka (kensington) from comment #9)
> We might need to unpin the qt dependencies in qtquick1. 5.5.1 has been
> working ok against 5.6.0 for a while here.

Ah yes, thanks for reminding me. I was expecting a 5.6.0 release for qtquick1, like they did for qtwebkit, but at this point it's clear that it's not gonna happen. Which is very weird if you consider that they did release a qtquick1-5.7.0_alpha... meh.