Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917005 - dev-qt/qtwayland-5.15.11-r1 error in qwaylandscreen.o
Summary: dev-qt/qtwayland-5.15.11-r1 error in qwaylandscreen.o
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-07 14:48 UTC by Oliver Hildebrandt
Modified: 2023-11-13 15:34 UTC (History)
0 users

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


Attachments
This is the full build.log from qtwayland (build.log,329.33 KB, text/plain)
2023-11-07 14:48 UTC, Oliver Hildebrandt
Details
Full compressed build.log from qtdeclarative (qtdeclarative.log.gz,43.79 KB, application/gzip)
2023-11-12 16:45 UTC, Oliver Hildebrandt
Details
Full compressed qtwidgets.log (qtwidgets.log.gz,30.91 KB, application/gzip)
2023-11-12 16:48 UTC, Oliver Hildebrandt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hildebrandt 2023-11-07 14:48:18 UTC
Created attachment 874254 [details]
This is the full build.log from qtwayland

dev-qt/qtwayland-5.15.11-r1 (Same with 5.15.11) fails with the following error:

make[2]: *** [Makefile:1502: .obj/qwaylandscreen.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandnativeinterface.cpp:[m[K In member function ‘[01m[Kvirtual void* QtWaylandClient::QWaylandNativeInterface::[01;32m[KnativeResourceForContext[m[K(const QByteArray&, QOpenGLContext*)[m[K’:
[01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandnativeinterface.cpp:155:134:[m[K [01;31m[Kerror: [m[Kinvalid use of incomplete type ‘[01m[Kclass QOpenGLContext[m[K’
  155 |         return m_integration->clientBufferIntegration()->nativeResourceForContext(QWaylandClientBufferIntegration::EglConfig, context[01;31m[K->[m[Khandle());
      |                                                                                                                                      [01;31m[K^~[m[K
In file included from [01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandnativeinterface_p.h:55[m[K,
                 from [01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandnativeinterface.cpp:40[m[K:
[01m[K/usr/include/qt5/QtGui/5.15.11/QtGui/qpa/qplatformnativeinterface.h:60:7:[m[K [01;36m[Knote: [m[Kforward declaration of ‘[01m[Kclass QOpenGLContext[m[K’
   60 | class [01;36m[KQOpenGLContext[m[K;
      |       [01;36m[K^~~~~~~~~~~~~~[m[K
[01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandnativeinterface.cpp:158:135:[m[K [01;31m[Kerror: [m[Kinvalid use of incomplete type ‘[01m[Kclass QOpenGLContext[m[K’
  158 |         return m_integration->clientBufferIntegration()->nativeResourceForContext(QWaylandClientBufferIntegration::EglContext, context[01;31m[K->[m[Khandle());
      |                                                                                                                                       [01;31m[K^~[m[K
[01m[K/usr/include/qt5/QtGui/5.15.11/QtGui/qpa/qplatformnativeinterface.h:60:7:[m[K [01;36m[Knote: [m[Kforward declaration of ‘[01m[Kclass QOpenGLContext[m[K’
   60 | class [01;36m[KQOpenGLContext[m[K;
      |       [01;36m[K^~~~~~~~~~~~~~[m[K
[01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandnativeinterface.cpp:161:135:[m[K [01;31m[Kerror: [m[Kinvalid use of incomplete type ‘[01m[Kclass QOpenGLContext[m[K’
  161 |         return m_integration->clientBufferIntegration()->nativeResourceForContext(QWaylandClientBufferIntegration::EglDisplay, context[01;31m[K->[m[Khandle());
      |                                                                                                                                       [01;31m[K^~[m[K
[01m[K/usr/include/qt5/QtGui/5.15.11/QtGui/qpa/qplatformnativeinterface.h:60:7:[m[K [01;36m[Knote: [m[Kforward declaration of ‘[01m[Kclass QOpenGLContext[m[K’
   60 | class [01;36m[KQOpenGLContext[m[K;
      |       [01;36m[K^~~~~~~~~~~~~~[m[K
make[2]: *** [Makefile:1306: .obj/qwaylandnativeinterface.o] Error 1
In file included from [01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandintegration.cpp:90[m[K:
[01m[K/usr/include/qt5/QtLinuxAccessibilitySupport/5.15.11/QtLinuxAccessibilitySupport/private/bridge_p.h:78:5:[m[K [01;31m[Kerror: [m[K‘[01m[KQDBusConnection[m[K’ does not name a type; did you mean ‘[01m[KDBusConnection[m[K’?
   78 |     [01;31m[KQDBusConnection[m[K dBusConnection() const;
      |     [01;31m[K^~~~~~~~~~~~~~~[m[K
      |     [32m[KDBusConnection[m[K
make[2]: *** [Makefile:1958: .obj/qwaylandclientextension.o] Error 1
[01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandintegration.cpp:[m[K In member function ‘[01m[KQPlatformOpenGLContext* QtWaylandClient::QWaylandIntegration::[01;32m[KcreatePlatformOpenGLContext[m[K(QOpenGLContext*) const[m[K’:
[01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandintegration.cpp:181:88:[m[K [01;31m[Kerror: [m[Kinvalid use of incomplete type ‘[01m[Kclass QOpenGLContext[m[K’
  181 |         return mDisplay->clientBufferIntegration()->createPlatformOpenGLContext(context[01;31m[K->[m[Kformat(), context->shareHandle());
      |                                                                                        [01;31m[K^~[m[K
In file included from [01m[K/usr/include/qt5/QtGui/5.15.11/QtGui/qpa/qplatformintegration.h:55[m[K,
                 from [01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandintegration_p.h:55[m[K:
[01m[K/usr/include/qt5/QtGui/qsurfaceformat.h:49:7:[m[K [01;36m[Knote: [m[Kforward declaration of ‘[01m[Kclass QOpenGLContext[m[K’
   49 | class [01;36m[KQOpenGLContext[m[K;
      |       [01;36m[K^~~~~~~~~~~~~~[m[K
[01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandintegration.cpp:181:107:[m[K [01;31m[Kerror: [m[Kinvalid use of incomplete type ‘[01m[Kclass QOpenGLContext[m[K’
  181 |         return mDisplay->clientBufferIntegration()->createPlatformOpenGLContext(context->format(), context[01;31m[K->[m[KshareHandle());
      |                                                                                                           [01;31m[K^~[m[K
[01m[K/usr/include/qt5/QtGui/qsurfaceformat.h:49:7:[m[K [01;36m[Knote: [m[Kforward declaration of ‘[01m[Kclass QOpenGLContext[m[K’
   49 | class [01;36m[KQOpenGLContext[m[K;
      |       [01;36m[K^~~~~~~~~~~~~~[m[K
make[2]: *** [Makefile:1269: .obj/qwaylandintegration.o] Error 1
In file included from [01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandinputdevice.cpp:42[m[K:
[01m[K/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11/src/client/qwaylandintegration_p.h:82:29:[m[K [01;31m[Kerror: [m[K‘[01m[KQPlatformOpenGLContext* QtWaylandClient::QWaylandIntegration::[01;32m[KcreatePlatformOpenGLContext[m[K(QOpenGLContext*) const[m[K’ marked ‘[01m[Koverride[m[K’, but does not override
   82 |     QPlatformOpenGLContext *[01;31m[KcreatePlatformOpenGLContext[m[K(QOpenGLContext *context) const override;
      |                             [01;31m[K^~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K
make[2]: *** [Makefile:1381: .obj/qwaylandinputdevice.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11_build/src/client'
make[1]: *** [Makefile:75: sub-client-make_first] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwayland-5.15.11-r1/work/qtwayland-everywhere-src-5.15.11_build/src'
make: *** [Makefile:49: sub-src-make_first] Error 2

This is my emerge --info:

Portage 3.0.55 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-13, glibc-2.38-r7, 6.6.0-gentoo-VM x86_64)
=================================================================
System uname: Linux-6.6.0-gentoo-VM-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.38
KiB Mem:    49300356 total,  47453832 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Tue, 07 Nov 2023 12:46:57 +0000
Head commit of repository gentoo: 3e6c65ebb424c59dd43b436354531f150a8e6963

sh bash 5.2_p15-r7
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r7::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo
dev-lang/rust:             1.73.0::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.51::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.38-r2::gentoo, 2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.4::gentoo
sys-devel/gcc:             13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             17.0.4::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.4::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: True
    sync-git-verify-commit-signature: yes

Ollis-Overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 200
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver3 -O2 -mtune=znver3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xorg.conf.d /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"
CXXFLAGS="-march=znver3 -O2 -mtune=znver3 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write=y --with-bdeps=y --jobs=2 --load-average=1 --keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://mirror.leaseweb.com/gentoo/ http://de-mirror.org/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-march=znver3 -O2 -mtune=znver3 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de"
MAKEOPTS="-j32 -l32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS_FLAGS="-9"
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"
SHELL="/bin/bash"
USE="X a52 aac aacplus acl acpi activities addc aes aio alsa amd64 ao apng arj aspell avx avx2 bash-completion bluetooth bluray branding btrfs bzip2 c++0x c++11x cacao cairo cdda cdr cgroup cgroups clang cleartype cli client cmake colord console corefonts crypt cups curl dbus dri dri3 drm dts dv dvd dvdr editor eds efi egl elogind emf encode evdev evo exif f16c faac faad fat fbcon fbsplash ffmpeg fftw flac fltk fma fma3 fma4 fontconfig foomaticdb fortran fpm fuse g-sorcery gallium games gbm gcrypt gd gdbm gif gimp git glamor gles gles2 glut glx gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnupg gnutls gold gpg gpm grub gsm gstreamer gtk gtk2 gtk3 gui harfbuzz hunspell hwaccel i18n iconv icu id3tag imagemagick innodb-snappy inotify introspection iproute2 ipv6 iso ispell ithreads jack java javascript jbig jit jpeg jpeg2k jpg json keyring kmod kms l10n ladspa lame largepages latin1 lcms ldap ldapdb legacy-systray lensfun lha libass libglvnd libkms libnotify librtmp libsamplerate libsoxr libtirpc libv4l libva llvm lm_sensors loop-aes lz4 lzma lzo mad mail matroska mediacenter mem-scramble minizip mjpeg mktemp mmap mmx mng mouse mp3 mp4 mpc mpeg mpfr mplayer mtp multilib multitarget nautilus ncurses neon networkmanager nftables nls nptl nptlonly nscd nsplugin ntfs ntp ocaml ogg openal opencl opengl opengpg openldap openmax openmp openrc openssl orc osmesa pae pam pango parted passwdqc passwordsave pclmul pcre pdf perl pgo phonon plasma playlist pm-utils png policykit popcnt postproc ppds pulseaudio python python3 q64 qemu qml qrcode qt5 quad quicktime rar raw readline reencrypt rpm rss rtmp s3tc samba sasl sdl seccomp secure-delete sensors sharedmem shmvideo smp smpeg snappy sndfile sound sox speex spell split-usr sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 sse4a sse5 ssl ssse3 startup-notification streaming svg sync-plugin-portage syslog sysprof systeminfo sysvipc taglib tagsoup test-rust tga theora thin threads thumbnail thunderbird tiff timezone tinfo tls tools tracker trayicon truetype udev udisks uefi unarj unicode unlock-notify unrar unzip upower urandom usb user-session v4l v4l2 va vaapi vala vdpau vlc vorbis vpx vulkan wayland webchannel webp widgets winbind wmf wxwidgets x11 x264 x265 xattr xcb xft xlib-xcb xml xorg xpm xrandr xv xvid zbus zip zlib zoo" ABI_X86="64" ADA_TARGET="gnat_2021" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="canon canon630u canon_dr pixma" VIDEO_CARDS="fbdev nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

Hope that someone could help me with this error.
Comment 1 Andreas Sturmlechner gentoo-dev 2023-11-11 19:25:39 UTC
Does it work if you build dev-qt/qtwayland with USE=compositor?
Comment 2 Oliver Hildebrandt 2023-11-11 19:43:08 UTC
When i try to build it withuse compositor it tries to install qtdeclarative and this fails, too.

I have PRoblems with dev-qt/qtwidgets-5.15.11 (Builds only with use -gtk -dbus) and dev-qt/qtdeclarative-5.15.11 and the Problem with dev-qtwayland.

Should i post the errors with the other packages as seperate bug or shuld i apply the build logs here in this bug ?
Comment 3 Andreas Sturmlechner gentoo-dev 2023-11-11 21:32:30 UTC
This looks like a local problem. Please also attach build.log from qtdeclarative and qtdbus (if that is failing too?).
Comment 4 Oliver Hildebrandt 2023-11-12 16:45:54 UTC
Created attachment 874605 [details]
Full compressed build.log from qtdeclarative
Comment 5 Oliver Hildebrandt 2023-11-12 16:48:34 UTC
Created attachment 874606 [details]
Full compressed qtwidgets.log

This happens when i try to build with the useflags dbus and gtk (or only with the dbus flag) when i disable the dbus and gtk useflags then it builds fine.
Comment 6 Oliver Hildebrandt 2023-11-12 16:50:22 UTC
I have made a full new install yesterday, this time with systemd. I have only taken the make.conf and the world file from my old install. But the Problem is the same, even when i try to use a stable system the error won't go away.
Comment 7 Oliver Hildebrandt 2023-11-12 16:51:11 UTC
And qtdbus just builds fine.
Comment 8 Oliver Hildebrandt 2023-11-12 17:30:40 UTC
I forgot that i have taken my kernel .config from my old system.
Comment 9 Andreas Sturmlechner gentoo-dev 2023-11-12 23:19:57 UTC
Do you have any entries in /etc/portage/package.use of dev-qt/* packages or switching gles, gles2, opengl, dbus flags around?
Comment 10 Oliver Hildebrandt 2023-11-13 10:04:41 UTC
I have in /etc/portage/package.use:
dev-qt/qtwidgets =-gtk -dbus
dev-qt/qtgui -wayland

The rest of the useflags are set in make.conf
Comment 11 Oliver Hildebrandt 2023-11-13 15:34:19 UTC
I have made a new clean install with a new make.conf. Now it works and throws no more errors, so it looks like my old make.conf was messed up.

Here is the Link to my old make.conf:
http://dpaste.com/HPNAFYC3N