Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433826 - [qt overlay] =x11-libs/qt-widgets-5.0.0_beta1 fails to build
Summary: [qt overlay] =x11-libs/qt-widgets-5.0.0_beta1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard: [qt overlay]
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-03 18:53 UTC by Markos Chandras (RETIRED)
Modified: 2014-04-20 14:59 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,344.68 KB, text/plain)
2012-09-03 18:53 UTC, Markos Chandras (RETIRED)
Details
build.log for USE="-pch" (build.log,177.40 KB, text/plain)
2012-09-04 17:14 UTC, Markos Chandras (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markos Chandras (RETIRED) gentoo-dev 2012-09-03 18:53:14 UTC
Created attachment 322842 [details]
build.log

Portage 2.2.0_alpha124 (default/linux/amd64/10.0, gcc-4.7.1, glibc-2.15-r2, 3.5.3-gentoo-testing-devbox x86_64)
=================================================================
System uname: Linux-3.5.3-gentoo-testing-devbox-x86_64-AMD_FX-tm-6100_Six-Core_Processor-with-gentoo-2.2
Timestamp of tree: Unknown
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.5, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.7.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo hwoarang qt
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb -ftracer -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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 -ggdb -ftracer -frecord-gcc-switches"
DISTDIR="/usr/myportage/distfiles/"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe -ggdb -frecord-gcc-switches"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu,--enable-new-dtags -Wl,--as-needed"
LINGUAS="en en_GB en_US el"
MAKEOPTS="-j5"
PKGDIR="/usr/myportage/packages/testing/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/myportage/overlays/hwoarang /usr/myportage/overlays/qt"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avi bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dga divx dri dvd dvdread encode ffmpeg flac fortran gdbm gif glib glitz gmedia gpm iconv jpeg kdrive libnotify mad mjpeg mmx mng modules mp3 mpeg mplayer mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pcre pdf perl png pppd private-headers python qt3support qt4 readline realmedia sdl session slang spell sqlite sse sse2 ssl svg symlink tcpd threads tiff truetype unicode usb userlocales v4l vcd vorbis wmp x264 xine xinerama xml xv xvid zlib" ALSA_CARDS="emu10k1" 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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US el" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="virtualbox" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2012-09-03 20:06:03 UTC
.moc/release-shared/moc_qapplication.cpp:16:2: error: #error "This file was generated using the moc from 5.0.0. It"
.moc/release-shared/moc_qapplication.cpp:17:2: error: #error "cannot be used with the include files from this version of Qt."
.moc/release-shared/moc_qapplication.cpp:18:2: error: #error "(The moc has changed too much.)"

Are you mixing qt modules with different versions?
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-09-04 08:14:13 UTC
(In reply to comment #1)
> .moc/release-shared/moc_qapplication.cpp:16:2: error: #error "This file was
> generated using the moc from 5.0.0. It"
> .moc/release-shared/moc_qapplication.cpp:17:2: error: #error "cannot be used
> with the include files from this version of Qt."
> .moc/release-shared/moc_qapplication.cpp:18:2: error: #error "(The moc has
> changed too much.)"
> 
> Are you mixing qt modules with different versions?

I just tried emerge @qt5-essentials and hit this bug. However, I do have all the Qt4 modules installed if this is what you are asking
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2012-09-04 09:12:51 UTC
Try with USE=-pch please
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2012-09-04 09:28:19 UTC
And also tell me exactly which qt5 modules you have installed when qt-widgets fails.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2012-09-04 17:13:53 UTC
(In reply to comment #4)
> And also tell me exactly which qt5 modules you have installed when
> qt-widgets fails.

x11-libs/qt-core:5
x11-libs/qt-dbus:5
x11-libs/qt-gui:5
x11-libs/qt-jsbackend:5
x11-libs/qt-network:5
x11-libs/qt-sql:5
x11-libs/qt-test:5


It does not build with USE="-pch" either (build log follows)
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2012-09-04 17:14:51 UTC
Created attachment 322936 [details]
build.log for USE="-pch"
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2012-09-05 00:51:18 UTC
Hmm can't reproduce :/

Can you attach qtbase-opensource-src-5.0.0-beta1/src/gui/kernel/qinputmethod.h please?
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2012-09-05 00:52:40 UTC
(In reply to comment #7)
> Hmm can't reproduce :/
> 
> Can you attach
> qtbase-opensource-src-5.0.0-beta1/src/gui/kernel/qinputmethod.h please?

Err... I mean a preprocessed version of that file...
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2012-09-05 01:57:45 UTC
Ah I think I got it...

The gtkstyle is pulling in the qt4 include paths via x11-libs/cairo[qt4]. This is obviously a recipe for disaster so I'm disabling gtkstyle entirely for qt5 until we find a proper solution.

Please pull and try again.
Comment 10 Ben de Groot (RETIRED) gentoo-dev 2012-09-05 03:27:13 UTC
Can't you just put in a blocker to cairo[qt4]? Seems to me the most straightforward way. I could also rename that flag in cairo and disable it by default (similar to what we did with gtkstyle).
Comment 11 James Le Cuirot gentoo-dev 2014-04-20 11:07:10 UTC
Could this decision be reviewed? The qt4 flag on cairo was masked in the base profile a while back due to numerous problems. See bug #412177.
Comment 12 Davide Pesavento (RETIRED) gentoo-dev 2014-04-20 14:59:04 UTC
It's already on my to-do list.