Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qtdeclarative-6.8.1 & webkit-gtk-2.46.5-r600 build error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
DatGizmo
n00b
n00b


Joined: 09 Jan 2025
Posts: 2

PostPosted: Thu Jan 09, 2025 5:26 pm    Post subject: qtdeclarative-6.8.1 & webkit-gtk-2.46.5-r600 build error Reply with quote

I'm currently facing a similar error when trying to upgrade qtdeclarative-6.8.1 and webkit-gtk-2.46.5-r600

Both show
Code:

error: non-constant condition for static assertion
error: [...] is not a constant expression


qtdeclarative:
Code:

/var/tmp/portage/dev-qt/qtdeclarative-6.8.1/work/qtdeclarative-everywhere-src-6.8.1/src/qml/jsruntime/qv4vtable_p.h: In instantiation of ‘constexpr QV4::ReturnedValue (* QV4::vtableJsTypesCallEntry())(const FunctionObject*, const Value*, const Value*, int) [with Class = EvalFunction; VTable::Call = long long unsigned int (*)(const FunctionObject*, const Value*, const Value*, int)]’:
/var/tmp/portage/dev-qt/qtdeclarative-6.8.1/work/qtdeclarative-everywhere-src-6.8.1/src/qml/jsruntime/qv4globalobject.cpp:291:1:   required from here
  250 |     QV4::vtableJsTypesCallEntry<classname>(),   \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/var/tmp/portage/dev-qt/qtdeclarative-6.8.1/work/qtdeclarative-everywhere-src-6.8.1/src/qml/jsruntime/qv4vtable_p.h:173:17: error: non-constant condition for static assertion
  170 |             std::is_same_v<
      |             ~~~~~~~~~~~~~~~
  171 |                     VTableCallWrapper<Class::virtualCall>,
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  172 |                     VTableCallWrapper<Class::SuperClass::virtualCall>>
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  173 |                 || VTableCallWrapper<Class::virtualCall>::c != nullptr,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtdeclarative-6.8.1/work/qtdeclarative-everywhere-src-6.8.1/src/qml/jsruntime/qv4vtable_p.h:173:61: error: ‘(QV4::EvalFunction::virtualCall != 0)’ is not a constant expression
  173 |                 || VTableCallWrapper<Class::virtualCall>::c != nullptr,
      |                                                           ~~^~~~~~~~~~


webkit-gtk:
Code:

FAILED: Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/libANGLE/renderer/gl/FramebufferGL.cpp.o
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DANGLE_ENABLE_ESSL -DANGLE_ENABLE_GLSL -DANGLE_ENABLE_OPENGL -DANGLE_PLATFORM_LINUX -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBWRAP_EXECUTABLE=\"/usr/bin/bwrap\" -DDBUS_PROXY_EXECUTABLE=\"/usr/bin/xdg-dbus-proxy\" -DEGL_EGL_PROTOTYPES=0 -DEGL_NO_PLATFORM_SPECIFIC_TYPES -DGETTEXT_PACKAGE=\"WebKitGTK-6.0\" -DGL_GLES_PROTOTYPES=0 -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DLIBANGLE_IMPLEMENTATION -DPAS_BMALLOC=1 -DUSE_SYSTEM_EGL -I/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/WebKit -I/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/include -I/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/include/KHR -I/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src -I/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/common/base -I/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/common/third_party/xxhash -I/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/third_party/zlib/google -I/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5_build/Source/ThirdParty/ANGLE/include  -DNDEBUG -fdiagnostics-color=always -Wextra -Wall -pipe -fmax-errors=20 -Wno-odr -Wno-stringop-overread -Wno-stringop-overflow -Wno-nonnull -Wno-array-bounds -Wno-expansion-to-defined -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -march=native -O2 -pipe -fno-delete-null-pointer-checks -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -std=c++23 -fPIC -fvisibility=hidden -w -MD -MT Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/libANGLE/renderer/gl/FramebufferGL.cpp.o -MF Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/libANGLE/renderer/gl/FramebufferGL.cpp.o.d -o Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/libANGLE/renderer/gl/FramebufferGL.cpp.o -c /var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/FramebufferGL.cpp
In file included from /var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/Framebuffer.h:24,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/Context.h:36,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/FramebufferGL.h:12,
                 from /var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/FramebufferGL.cpp:9:
/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/State.h: In member function ‘angle::Result gl::State::dirtyObjectHandler(size_t, const gl::Context*, gl::Command)’:
/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/State.h:1532:84:   in ‘constexpr’ expansion of ‘gl::State::MakeDirtyObjectHandlers()’
/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/State.h:1521:25: error: ‘(gl::State::syncActiveTextures == 0)’ is not a constant expression
 1521 |             if (handler == nullptr)
      |                 ~~~~~~~~^~~~~~~~~~
/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/ThirdParty/ANGLE/src/libANGLE/State.h:1533:35: error: non-constant condition for static assertion
 1533 |         static_assert(handlers[0] != nullptr, "MakeDirtyObjectHandlers missing a handler");


emerge --info '=net-libs/webkit-gtk-2.46.5-r600::gentoo

Code:

Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-14, glibc-2.40-r5, 6.12.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.1-gentoo-x86_64-AMD_Ryzen_5_1600X_Six-Core_Processor-with-glibc2.40
KiB Mem:    32810472 total,  26614180 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 09 Jan 2025 17:00:00 +0000
Head commit of repository gentoo: e73d8bdcd8f6c96a80b315ec07e274eaf33291ab
Timestamp of repository brave-overlay: Wed, 30 Aug 2023 14:16:44 +0000
Head commit of repository brave-overlay: 6633c093c271deda5b29101a4ed5a611810268e1

Timestamp of repository edgets: Tue, 07 Jan 2025 11:48:20 +0000
Head commit of repository edgets: f262b6d4047365506928fd1b8c53194a5fb5e9dd

Timestamp of repository elementary: Wed, 08 Jan 2025 18:48:44 +0000
Head commit of repository elementary: 036e5d65fc4a277f8d330af1bbe70139dfc645af

Timestamp of repository gig: Mon, 06 Jan 2025 20:33:19 +0000
Head commit of repository gig: c58a3df02a26825e65d17711f9bc2d1247aeb072

Timestamp of repository guru: Thu, 09 Jan 2025 16:33:43 +0000
Head commit of repository guru: 74a4af08a33467a4132dd1863f9d2c3218088ec7

Timestamp of repository kzd: Tue, 07 Jan 2025 11:48:22 +0000
Head commit of repository kzd: a94925923c19626a10ee7812f4be1b104a68dcc6

Timestamp of repository lamdness: Tue, 31 Dec 2024 14:18:11 +0000
Head commit of repository lamdness: 6ca8ff1d8534c7c25eedcd324290454315d8b043

Timestamp of repository steam-overlay: Sun, 22 Dec 2024 19:48:21 +0000
Head commit of repository steam-overlay: fc25c23144765c2fcc4726aa19448b0ed507fc3e

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
ccache version 4.10.2 [enabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.8.20_p6::gentoo, 3.11.11_p1::gentoo, 3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust-bin:         1.81.0-r100::gentoo, 1.82.0-r101::gentoo
dev-util/ccache:           4.10.2-r1::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo, 2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241220::gentoo, 14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

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

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

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

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

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

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

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

localrepo
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fno-delete-null-pointer-checks"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /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"
CXXFLAGS="-march=native -O2 -pipe -fno-delete-null-pointer-checks"
DISTDIR="/var/cache/distfiles"
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 buildpkg-live ccache 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="ftp://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="de nb en en_GB"
MAKEOPTS="-j13"
PKGDIR="/var/cache/binpkgs"
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/zsh"
USE="256-color X a52 aac acl acpi alsa amd64 bash-completion bluetoot bluetooth bluray branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr elogind encode exif ffmpeg flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc lm_sensors mad matroska mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qml qt5 qt6 readline sdl seccomp sound spell split-usr ssl startup-notification svg system-ffmpeg system-mesa test-rust tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vulkan wxwidgets x264 x265 xattr xcb xft xif xinerama xml xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gcc_13" ALSA_CARDS="hda-intel usb-audio" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="de nb en en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" 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_11 python3_12" RUBY_TARGETS="ruby27 ruby31" VIDEO_CARDS="amdgpu radeonsi" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


My searches only ended up in general discussions how such an error can happen in c++ code.
I'm guessing it's a system setup / config issue.

I'll post the build logs in a bit.

Edit: logs
qtdeclarative buld log: https://paste.gentoo.zip/TUvJnlyz
webkit-gtk build log: https://paste.gentoo.zip/ix9yJinN

emerge -pqv '=net-libs/webkit-gtk-2.46.5-r600::gentoo'
Code:

[ebuild  NS   ] net-libs/webkit-gtk-2.46.5-r600 [2.44.4, 2.44.4-r410] USE="X gstreamer introspection jumbo-build lcms pdf (seccomp) spell (-aqua) -avif -examples -gamepad -jpegxl -keyring -systemd -wayland"


emerge -pqv '=net-libs/webkit-gtk-2.46.5-r600::gentoo'
Code:

[ebuild     U ] dev-qt/qtdeclarative-6.8.1 [6.7.3-r4] USE="jit network opengl sql ssl svg vulkan widgets -accessibility -qmlls"
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31407
Location: here

PostPosted: Thu Jan 09, 2025 7:19 pm    Post subject: Reply with quote

Try to compile without -fno-delete-null-pointer-checks CFLAGS/CXXFLAGS option.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
DatGizmo
n00b
n00b


Joined: 09 Jan 2025
Posts: 2

PostPosted: Thu Jan 09, 2025 8:05 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Try to compile without -fno-delete-null-pointer-checks CFLAGS/CXXFLAGS option.


Oh, I completely missed that.

Testing with webkit-gtk right now, and it's already compiling longer, so seems to be the fix.

Will mark this solved once I checked qtdeclarative.

Thanks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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