Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945766 - dev-qt/qtwebengine-6.8.1[-vulkan]: Assertion failed assert(enable_vulkan)
Summary: dev-qt/qtwebengine-6.8.1[-vulkan]: Assertion failed assert(enable_vulkan)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL: https://github.com/chromium/chromium/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-12-02 21:02 UTC by Karl-Johan Karlsson
Modified: 2024-12-03 03:28 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,270.75 KB, text/x-log)
2024-12-02 21:03 UTC, Karl-Johan Karlsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2024-12-02 21:02:21 UTC
I have a Thinkpad X220 with a Core i7-2640M Sandy Bridge CPU with integrated graphics. This GPU does not support Vulkan, according to e.g. https://wiki.gentoo.org/wiki/Intel#Feature_support and https://en.wikipedia.org/wiki/Intel_Graphics_Technology#Capabilities_(GPU_hardware) . I therefore have USE="-vulkan" set globally.

Trying to upgrade to dev-qt/qtwebengine-6.8.1 fails with:

  -- GN FAILED

  ERROR at //gpu/vulkan/init/BUILD.gn:8:1: Assertion failed.

  assert(enable_vulkan)

  ^-----

  See //media/gpu/chromeos/BUILD.gn:110:5: which caused the file to be
  included.

      "//gpu/vulkan/init:init",
      ^-----------------------

It seems to me that the non-Vulkan build has perhaps bitrotted, since most systems do support it.

I have other systems that are new enough to support Vulkan, which are currently busy building QTWebEngine-6.8.1. Once they're done, which takes a couple of hours, I'll try building without Vulkan on one of them and see if it gets the same error.

Reproducible: Always

Steps to Reproduce:
1. env USE="-vulkan" emerge -1 =dev-qt/qtwebengine-6.8.1



Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/split-usr/hardened, gcc-14, glibc-2.40-r5, 6.11.10-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.11.10-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-glibc2.40
KiB Mem:    16253400 total,   1082020 free
KiB Swap:   16777212 total,  15347964 free
Timestamp of repository gentoo: Mon, 02 Dec 2024 07:45:00 +0000
Head commit of repository gentoo: 68f7d7904b8a47ec5cc0cd922c0c4b5fe50344fa
Head commit of repository creideiki: a79d13592723bf2277e3b7e7234efca915671a17

Timestamp of repository steam-overlay: Sun, 01 Dec 2024 09:33:31 +0000
Head commit of repository steam-overlay: 08916a39e6c62c653b38d8a892e71a08f871efd9

Timestamp of repository torbrowser: Sun, 01 Dec 2024 09:33:33 +0000
Head commit of repository torbrowser: bd72270c5b130d98f137ffb42b6c2a9ce4f95fc7

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.0::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust:             1.81.0-r100::gentoo, 1.83.0::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.40::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8-r6::gentoo, 19.1.4::gentoo
sys-devel/gcc:             13.3.1_p20241115::gentoo, 14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.8::gentoo
sys-devel/llvm:            18.1.8-r6::gentoo, 19.1.4::gentoo
sys-kernel/linux-headers:  6.11::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --timeout=10
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3

creideiki
    location: /usr/local/portage
    sync-type: git
    sync-uri: https://github.com/creideiki/portage
    masters: gentoo
    volatile: True

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/torbrowser.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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="--alphabetical --keep-going --quiet-build=n --verbose-conflicts"
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 buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait 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://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-O1 -Wl,--hash-style=gnu -Wl,--enable-new-dtags"
LEX="flex"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10"
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 acl alsa amd64 bzip2 cairo cet crypt cups dbus dri dri3 egl elogind flac fontconfig gdbm gif glamor hardened harfbuzz iconv icu ipv6 jpeg kde kf6compat libplacebo libtirpc llvm lm-sensors mp3 multilib ncurses nls ogg opengl openmp pam pcre pic pie pipewire png policykit qml qt3support qt5 qt6 readline screencast seccomp split-usr ssl ssp test-rust tiff truetype udev udisks unicode upower vaapi vorbis vpx wayland x264 x265 xattr xcb xkb xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_12" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev wacom libinput" KERNEL="linux" L10N="en en-US en-GB sv sv-SE" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="18" LLVM_TARGETS="BPF WebAssembly X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby32 ruby33" SANE_BACKENDS="hp" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LANG, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-qt/qtwebengine-5.15.16_p20241115::gentoo was built with the following:
USE="alsa -bindist -debug -designer -geolocation jumbo-build -kerberos -pulseaudio screencast system-icu -test widgets" ABI_X86="(64)"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-O1 -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--undefined-version"


dev-qt/qtwebengine-6.7.3::gentoo was built with the following:
USE="-accessibility alsa -bindist -custom-cflags -designer -geolocation jumbo-build -kerberos opengl -pdfium -pulseaudio qml screencast system-icu -test vaapi -vulkan -webdriver widgets" ABI_X86="(64)"
Comment 1 Karl-Johan Karlsson 2024-12-02 21:03:19 UTC
Created attachment 913112 [details]
build.log
Comment 2 Ionen Wolkens gentoo-dev 2024-12-03 01:20:50 UTC
Haven't tried yet, but $URL is likely the fix from upstream chromium which isn't in the version that Qt is using at the moment, so this should be simple.
Comment 3 Ionen Wolkens gentoo-dev 2024-12-03 02:45:53 UTC
Tried now and seems to do it, just waiting for my USE="* -vulkan" build to fully finish (it's past Gn) in case it triggers something else and will merge an updated patchset soon.
Comment 4 Larry the Git Cow gentoo-dev 2024-12-03 03:28:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1786bd5648a489259475463aebfb45e8f9016354

commit 1786bd5648a489259475463aebfb45e8f9016354
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-12-03 02:37:50 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-12-03 03:28:20 +0000

    dev-qt/qtwebengine: update patchset for >=6.8.1
    
    6.8-5 -> 6.8-6 changes:
      Added:
      * missing-gn-deps.patch (imported from files/)
      * no-vulkan-build.patch (bug #945766)
    
    Intentionally keeping QTBUG-131156.patch in files/ for now, it's not
    merged upstream yet (may not be final) and will be picked to 6.8 later
    ultimately breaking 6.8.9999.
    
    Closes: https://bugs.gentoo.org/945766
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtwebengine/Manifest                    | 2 +-
 dev-qt/qtwebengine/qtwebengine-6.8.1.ebuild    | 3 +--
 dev-qt/qtwebengine/qtwebengine-6.8.9999.ebuild | 3 +--
 dev-qt/qtwebengine/qtwebengine-6.9999.ebuild   | 2 +-
 4 files changed, 4 insertions(+), 6 deletions(-)