Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910370 - dev-qt/qtwebengine-5.15.10_p20230623 fails to build (clang/llvm)
Summary: dev-qt/qtwebengine-5.15.10_p20230623 fails to build (clang/llvm)
Status: RESOLVED DUPLICATE of bug 903573
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-14 20:03 UTC by Chris
Modified: 2023-07-18 08:59 UTC (History)
2 users (show)

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


Attachments
build.log of most recent emerge attempt. (build.log.gz,263.37 KB, application/x-gzip)
2023-07-14 20:03 UTC, Chris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2023-07-14 20:03:32 UTC
Created attachment 865509 [details]
build.log of most recent emerge attempt.

Getting the following error when trying to build (last several lines of the error)

In file included from gen/v8/torque_generated_initializers_jumbo_5.cc:5:
In file included from ./gen/v8/torque-generated/src/builtins/convert-tq-csa.cc:1:
In file included from ../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/ast/ast.h:10:
In file included from ../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/ast/ast-value-factory.h:36:
In file included from ../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/heap/factory.h:12:
In file included from ../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/execution/messages.h:17:
In file included from ../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/handles/handles.h:15:
In file included from ../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/objects/objects.h:25:
In file included from ../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/objects/field-index.h:10:
In file included from ../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/objects/property-details.h:11:
../../../../qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/base/bit-field.h:43:29: error: integer value 7 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
  static constexpr T kMax = static_cast<T>(kNumValues - 1);


Repro:
1. Emerged clang 16.0.5 with LLVM 16.0.5
2. attempt to emerge dev-qt/qtwebengine-5.15.10_p20230623
3. Error above appears.

Emerge info and other items in my next comment
Comment 1 Chris 2023-07-14 20:04:43 UTC
$ emerge --info '=dev-qt/qtwebengine-5.15.10_p20230623::gentoo'
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/systemd/clang/merged-usr, gcc-12, glibc-2.37-r3, 6.1.31-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.31-gentoo-x86_64-x86_64-AMD_Ryzen_5_3400G_with_Radeon_Vega_Graphics-with-glibc2.37
KiB Mem:    63694692 total,   9409804 free
KiB Swap:   83886072 total,  82480376 free
Timestamp of repository gentoo: Fri, 14 Jul 2023 06:01:56 +0000
Head commit of repository gentoo: d09ed938026da2f9c7cfcb229011d75cdca98ce7

Timestamp of repository SarahMiaOverlay: Sun, 02 Jul 2023 15:32:45 +0000
Head commit of repository SarahMiaOverlay: f274cd05b91377ae48811efc70cfcd278ea19f2d

Timestamp of repository ace: Wed, 12 Jul 2023 06:31:47 +0000
Head commit of repository ace: 60a00fae601be991ede3bdf39e2aa16eeddfb7d2

Timestamp of repository binaryden: Wed, 12 Jul 2023 06:31:50 +0000
Head commit of repository binaryden: 4702582d798dc780e77f0f2ceacf95d1b29ce43c

Timestamp of repository guru: Thu, 13 Jul 2023 09:46:36 +0000
Head commit of repository guru: 6c8caf5e28e8a16578eada4cb83a5a44676eaa3d

Timestamp of repository kde: Tue, 11 Jul 2023 19:48:46 +0000
Head commit of repository kde: 09a8e97f7f5dc016cade6a9165f29d86bd930f1c

Head commit of repository plex-overlay: 2d08b424a2878e6facdc5c03abc2ec7a36c05f03

Timestamp of repository wayland-desktop: Fri, 14 Jul 2023 01:16:43 +0000
Head commit of repository wayland-desktop: d94938fa2d56a88d6b9a1c060dc933e0f4169739

Timestamp of repository xelnor: Sun, 09 Jul 2023 16:46:42 +0000
Head commit of repository xelnor: 6d8058fd14016c2f024e416182e278926bdcc3a9

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.11.4::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.32::gentoo
sys-apps/systemd:          253.3-r1::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.5::gentoo
sys-devel/llvm:            16.0.5::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::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: False
    sync-git-verify-commit-signature: yes

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

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

binaryden
    location: /var/db/repos/binaryden
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/binaryden.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

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

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

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

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

Binary Repositories:

gentoo-binpkg
    priority: 9999
    sync-uri: https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE @EULA 1password MPEG-4 MSttfEULA NVIDIA-r2 Plex Free all-rights-reserved"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-O3 -march=native"
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/revdep-rebuild /etc/sandbox.d"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-O3 -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="-j4 -l12"
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="-O3 -march=native"
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 multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed  -Wl,-O2 -Wl,--as-needed"
LEX="flex"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
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"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
SHELL="/bin/zsh"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="7z 7zip X accountsservice acl acpi activesync activities alsa alsa-plugin amd64 apidoc apparmor appindicator appstream aptx avahi bash berkdb binary bluetooth boot browser-extension browser-integration bzip2 cacert clang cli cron crypt cups curl dbus dbusmenu declarative desktop-portal device-mapper discover dist-kernel dnet dns dns-over-tls dnscrypt dnssec doh dri dri3 duktape editor efi efiemu egl elographics emoji extra fam fbdev ffmpeg fido2 firewall firewalld firmware fontconfig fortran fortune fuse gdbm gentoo-vm geolocation gif git gl glamor gles gles1 gles2 gnupg gpg gpgme grub gtk gtk2 gtk3 gui gvnc gzip harfbuzz hdhomerun hdri http http2 hwaccel ico iconv imagemagick iptables ipv6 jpeg jpeg2k json jumbo-build kaccounts kde kdesu keyring kwallet libnotify libssh libssh2 libtirpc libv4l libvirt libxml2 libzfs llvm-libunwind logrotate lto lxc lz4 lzma lzo mate merge-usr mp3 multilib ncurses nethack network nfc nfs nftables nls non_root nptl nvenc nvidia offensive office offload opencl opengl openh264 openmp openssl pam parted pcap pcre pipewire plasma plymouth png policykit pulseaudio python qemu qml qrcode qt5 qt6-imageformats rdp readline rootfs round samba sasl screen screen-sharing screencast seccomp security-key semantic-desktop sftp sha512 sodium sound spell spice sql sqlite sqlite3 ssh ssh-agent ssh-askpass ssl startup-notification sudo svg symlink syslog systemd sysv-utils test-rust threads tls-compression tls-heartbeat tpm truetype ttf twolame udev udisks ufw unicode unix upnp upnp-av urandom usb usbredir utils uuid v4l v4l2 v4lutils vaapi vala verify-sig vhost-net vhost-user-fs virgl virt-network virtfs virtual-io vnc vnc-client vulkan vulkan-overlay wallet wallpapers wayland wayland-compositor webp websocket websockets webui widgets x11vnc x264 x265 xattr xcomposite xml xnest xorg xrandr xspice xwayland yubikey zeroconf zfs zip zlib zram zsh-completion zstd" 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" CAMERAS="canon" 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" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en es en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="x86_64 i386 aarch64" QEMU_USER_TARGETS="x86_64 i386 aarch64" RUBY_TARGETS="ruby31" VIDEO_CARDS="fbdev dummy virgl qxl amdgpu nvidia radeonsi" 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:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS, SIZE, YACC, YFLAGS



$ emerge -pqv '=dev-qt/qtwebengine-5.15.10_p20230623::gentoo'
[ebuild  N    ] dev-qt/qtwebengine-5.15.10_p20230623  USE="alsa bindist geolocation jumbo-build pulseaudio screencast system-icu widgets -debug -designer -kerberos -test"
Comment 2 Paul Gover 2023-07-18 08:56:14 UTC
I can confirm this exact same problem -  IIUC the error message from the compile is an enum outside of range:

qtwebengine-5.15.10_p20230623/src/3rdparty/chromium/v8/src/base/bit-field.h:43:29: error: integer value 7 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
  static constexpr T kMax = static_cast<T>(kNumValues - 1);

IIRC this sort of problem was warned about in the latest version of clang, due to upgrading some warnings to errors.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-18 08:59:15 UTC

*** This bug has been marked as a duplicate of bug 903573 ***