Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
x11-libs/qt-gui-4.8.1-r1 fails to emerge: INVALID CONVERSION
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 41
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Mon Jun 11, 2012 12:46 pm    Post subject: x11-libs/qt-gui-4.8.1-r1 fails to emerge: INVALID CONVERSION Reply with quote

Hi all! I did not found any thread about this isse so I opened a new one.

"emerge -vuND world" and this happens:

x11-libs/qt-gui-4.8.1-r1:


Code:

kernel/qapplication_x11.cpp: In function 'void qt_init(QApplicationPrivate*, int, Display*, Qt::HANDLE, Qt::HANDLE)':
kernel/qapplication_x11.cpp:2154:39: error: invalid conversion from 'int (*)(XDeviceInfo*)' to 'void (*)(XDeviceInfo*)'
kernel/qapplication_x11.cpp: At global scope:
kernel/qapplication_x11.cpp:470:14: warning: 'void* qt_load_library_runtime(const char*, int, int, const char*)' defined but not used
make: *** [.obj/release-shared/qapplication_x11.o] Error 1
make: *** Waiting for unfinished jobs....
kernel/qdnd_x11.cpp: In function 'Window findRealWindow(const QPoint&, Window, int)':
kernel/qdnd_x11.cpp:1468:79: error: 'ShapeInput' was not declared in this scope
make: *** [.obj/release-shared/qdnd_x11.o] Error 1
 * ERROR: x11-libs/qt-gui-4.8.1-r1 failed (compile phase):
 *   emake failed



emerge --info:

Code:

Portage 2.1.10.49 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.12-i686-Intel-R-_Pentium-R-_D_CPU_3.40GHz-with-gentoo-2.1
Timestamp of tree: Mon, 11 Jun 2012 10:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: embedded-cross gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de_DE"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/var/lib/layman/embedded-cross /usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa aoss asf avi beagle berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus device-mapper divx dri dts dv dvd dvdr dvdread eds emboss encode evo exif extensions extras fam fame firefox flac fortran gdbm gdu gif glitz gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv java jpeg kdrive kerberos lcms ldap libnotify mad mjpeg mng modules mono mp3 mp4 mpeg mudflap nautilus nautlius ncurses new-login nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio python qt3support qt4 quicktime readline sdl session snmp socialweb spell sqlite ssl startup-notification static-libs subtitles svg symlink tcpd threads tiff toolbar truetype udev udisks unicode upower usb vidix vorbis win32codecs winbind wxwidgets x264 x86 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid 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 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="de_DE" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fglrx" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Kernel sources are 3.2.12 (gentoo)

any idea what to do?

[code]
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Tue Jun 12, 2012 6:11 pm    Post subject: Reply with quote

So, it is gcc complaining about some C++ code in qt. Does it
compile if you add "-fpermissive" to CXXFLAGS in /etc/make.conf?
_________________
TIA
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 41
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Wed Jun 13, 2012 8:44 am    Post subject: Reply with quote

I tried -fpermissive but it ends with the same result....
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Thu Jun 14, 2012 9:47 am    Post subject: Reply with quote

Please file a bug and add your build.log and emerge --info there, so one of the devs of our Qt team can have a look.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 41
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Mon Jun 18, 2012 8:12 am    Post subject: Reply with quote

Hi!

OK, I filed a bug...

Bug 421133 https://bugs.gentoo.org/show_bug.cgi?id=421133

No solution so far. The problem with this Qt stuff is, that there's no downgrade support. I tried downgrading:

Code:
 * qt-everywhere-opensource-src-4.7.4.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                [ ok ]
 *
 * Sanity check to keep you from breaking your system:
 *   Downgrading Qt is completely unsupported and will break your system!
 *
 * ERROR: x11-libs/qt-core-4.7.4-r1 failed (setup phase):
 *   aborting to save your system
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Tue Jun 19, 2012 8:39 am    Post subject: Reply with quote

You can downgrade by removing all x11-libs/qt-* packages and then emerging the lower version. You need to recompile all Qt-based packages that have been compiled against the new version.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 41
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Wed Jun 20, 2012 7:57 am    Post subject: Reply with quote

Thanks yngwin, removing all qt-* libs did it. Bug 421133 is now under investigation by a Qt dev member...
Back to top
View user's profile Send private message
suprafluid
n00b
n00b


Joined: 07 Jan 2011
Posts: 41
Location: Deep in the Bavarian Forrest, Germany

PostPosted: Tue Oct 16, 2012 9:05 am    Post subject: Reply with quote

Sorry, but I still have this problem with my gentoo installation. Now, after syncing yesterday and trying to emerge -DN world again, this happens :

Failed to emerge x11-libs/qt-gui-4.8.2

i686-pc-linux-gnu-g++ -c -pipe -march=native -O2 -pipe -fomit-frame-pointer -fpermissive -O2 -Wall -W -I../../../mkspecs/linux-g++ -I. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/X11R6/include -o xlib.o xlib.cpp
In file included from xlib.cpp:42:0:
/usr/include/X11/Xlib.h:1694:1: error: '_X_DEPRECATED' does not name a type
/usr/include/X11/Xlib.h:3579:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3584:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3597:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3610:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3615:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3847:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3851:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3863:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3891:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3895:3: error: expected initializer before '_X_SENTINEL'
/usr/include/X11/Xlib.h:3935:3: error: expected initializer before '_X_SENTINEL'
gmake: *** [xlib.o] Error 1
XLib disabled.
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /var/tmp/portage/x11-libs/qt-gui-4.8.2/work/qt-everywhere-opensource-src-4.8.2/mkspecs/linux-g++.


OK, but what should I set for "QMAKE_INCDIR_X11" ??
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum