# emerge -pqv '=dev-qt/qtwebengine-6.6.1::gentoo' [ebuild NS ] dev-qt/qtwebengine-6.6.1 [5.15.11_p20231120] USE="alsa designer geolocation jumbo-build kerberos opengl%* pdfium%* pulseaudio qml%* screencast system-icu vulkan%* widgets -bindist -custom-cflags% -test -vaapi% (-debug%)" # emerge --info '=dev-qt/qtwebengine-6.6.1::gentoo' Portage 3.0.58 (python 3.12.1-final-0, default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r7, 6.6.8-gentoo-arm64 aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.6.8-gentoo-arm64-aarch64-with-glibc2.38 KiB Mem: 32817360 total, 4950720 free KiB Swap: 8388604 total, 7920124 free Timestamp of repository gentoo: Sat, 23 Dec 2023 08:30:01 +0000 Head commit of repository gentoo: 1d4c2f3a713dbd4f5dcfc96d75a56c5e051a67b0 Timestamp of repository EmilienMottet: Wed, 20 Dec 2023 13:47:26 +0000 Head commit of repository EmilienMottet: 98aa71be2065d565ad1d8630a9e1f2e6c0cb137b Timestamp of repository HomeAssistantRepository: Wed, 20 Dec 2023 13:47:19 +0000 Head commit of repository HomeAssistantRepository: 741f2e9b77e71354f4bb7b701a6c5ea67709d8a7 Timestamp of repository darkelf: Wed, 20 Dec 2023 13:47:17 +0000 Head commit of repository darkelf: d443ec329f0f46154715de1c1d6b6540addbea69 Timestamp of repository guru: Sat, 23 Dec 2023 07:46:46 +0000 Head commit of repository guru: bf536d47a671551232b7c23d535192b56c575407 Timestamp of repository inode64-overlay: Fri, 22 Dec 2023 12:46:49 +0000 Head commit of repository inode64-overlay: b89d946230c3f899ffeb448b6cf89dae0f2e5c86 Timestamp of repository kde: Sat, 23 Dec 2023 00:31:52 +0000 Head commit of repository kde: 3d373b79416697f8095a03f53be7360f8fee07c1 Timestamp of repository pentoo: Fri, 22 Dec 2023 10:16:48 +0000 Head commit of repository pentoo: 5c6f33f5a19cf9e8253cd50e2323505b51e2439e sh bash 5.2_p21-r1 ld GNU ld (Gentoo 2.41 p4) 2.41.0 ccache version 4.8.3 [enabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p21-r1::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.2-r1::gentoo dev-lang/python: 3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo dev-lang/rust: 1.74.1::gentoo dev-lang/rust-bin: 1.74.1::gentoo dev-util/ccache: 4.8.3::gentoo dev-util/cmake: 3.28.1::gentoo dev-util/meson: 1.3.0-r2::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/sandbox: 2.38::gentoo sys-apps/systemd: 255.1::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.41-r3::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo sys-devel/gcc: 12.3.1_p20231215::gentoo, 13.2.1_p20231216::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::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: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: EmilienMottet location: /var/db/repos/EmilienMottet sync-type: git sync-uri: https://github.com/gentoo-mirror/EmilienMottet.git masters: gentoo volatile: False HomeAssistantRepository location: /var/db/repos/HomeAssistantRepository sync-type: git sync-uri: https://github.com/gentoo-mirror/HomeAssistantRepository.git masters: gentoo volatile: False darkelf location: /var/db/repos/darkelf sync-type: git sync-uri: https://github.com/gentoo-mirror/darkelf.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 inode64-overlay location: /var/db/repos/inode64-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/inode64-overlay.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 pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.osuosl.org/releases/arm64/binpackages/17.0/arm64 ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="* -@EULA geekbench Microsoft-vscode TeamViewer Vivaldi" CBUILD="aarch64-unknown-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" 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="-march=native -O2 -pipe -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/" LANG="en_US.utf8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j6" 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/bash" USE="X a52 aac accessibility acl acpi alsa arm64 audit bash-completion berkdb bidi bluetooth branding brotli btrfs bzip2 cairo cdda cdr cli colord crypt cryptsetup cups curl dbus designer device-mapper doc dri dts dvdr eds emacs encode evdev evo examples exif experimental ffmpeg flac fortran fuse gamepad gdbm gif git gmp gnome gnome-keyring gnome-online-accounts gnome-shell gnutls go gpg gpm gstreamer gtk gtk-doc gui hscolour html http iconv icu idn introspection iodbc ipv6 jack java jemalloc joystick jpeg json kde kerberos keyring lcms ldap libnotify libtirpc lua lvm lz4 lzma lzo mad man mbedtls mng mongodb mp3 mp4 mpeg multimedia mysql nas nautilus ncurses netlink network networkmanager nfs nls nptl nss odbc offensive ogg opengl openmp openssl pam pango pcap pcre pdf perl pkcs11 plasma plugins png policykit postgres ppds pulseaudio python qml qt5 readline redis samba sasl screencast sdl seccomp semantic-desktop snmp sound source speech spell sqlite ssl startup-notification svg symlink sysprof systemd tcl telemetry test-rust threads tiff tk tools tracker truetype udev udisks unicode upower usb utils v4l vala vim-syntax vnc vorbis vulkan wayland webengine webkit webp wxwidgets x264 xattr xcb xft xinerama xml xv xvid yaml zeroconf zip zlib zsh-completion zstd" ADA_TARGET="gnat_2021" 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 stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v8" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="virgl" 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, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 880257 [details] build.log.xz
[3512/29761] /var/tmp/portage/dev-qt/qtwebengine-6.6.1/temp/python3.11/bin/python3 ../../../../../qtwebengine-everywhere-src-6.6.1/src/3rdparty/chromium/build/gn_run_binary.py host/flatc -c --keep-prefix -o gen/components/url_pattern_index/flat -I ../../../../../qtwebengine-everywhere-src-6.6.1/src/3rdparty/chromium/ ../../../../../qtwebengine-everywhere-src-6.6.1/src/3rdparty/chromium/components/url_pattern_index/flat/url_pattern_index.fbs [31mFAILED: [0mgen/components/url_pattern_index/flat/url_pattern_index_generated.h /var/tmp/portage/dev-qt/qtwebengine-6.6.1/temp/python3.11/bin/python3 ../../../../../qtwebengine-everywhere-src-6.6.1/src/3rdparty/chromium/build/gn_run_binary.py host/flatc -c --keep-prefix -o gen/components/url_pattern_index/flat -I ../../../../../qtwebengine-everywhere-src-6.6.1/src/3rdparty/chromium/ ../../../../../qtwebengine-everywhere-src-6.6.1/src/3rdparty/chromium/components/url_pattern_index/flat/url_pattern_index.fbs host/flatc failed with exit code -11
Likely a segfault. Could you try without -march=native? (aka just minimal CFLAGS=-O2 CXXFLAGS=-O2). It is failing on a different part, but maybe it's related to bug #920555. Then again, not sure if this -march=native is even doing anything due to another gcc bug. I do bet clang would work.
(In reply to Ionen Wolkens from comment #3) > Then again, not sure if this -march=native is even doing anything due to > another gcc bug. I do bet clang would work. Depending on how broken things are (if these issues keep happening), I guess a USE=clang that's forced on arm64 could be something to consider. But if it's just -march issues, I could filter it.
fwiw, the -march issue referenced about it not doing anything should only be an issue on Apple silicon (Apple M1, Apple M2, and Apple M3 once that boot too with Asahi Linux). Or other ARM64 that GCC doesn't detect or know about at all, but I don't know any others so far.
About clang, *if* dropping -march with gcc did not help (check your new build.log to be sure it wasn't used), could you try it? Just a simple `CC=clang CXX=clang++ emerge -1 qtwebengine:6` should be enough. clang is more tested for chromium and already been confirmed to build qtwebengine:6 fine on arm64, albeit I'd rather avoid forcing it if possible. (In reply to Mart Raudsepp from comment #5) > fwiw, the -march issue [...] Thanks for clarifying, I guess segfaults could be -march related here too then.
(In reply to Ionen Wolkens from comment #3) > Likely a segfault. > > Could you try without -march=native? (aka just minimal CFLAGS=-O2 > CXXFLAGS=-O2). It is failing on a different part, but maybe it's related to > bug #920555. > > Then again, not sure if this -march=native is even doing anything due to > another gcc bug. I do bet clang would work. without -march=native it builds successfully
(In reply to Leonid Kopylov from comment #7) > without -march=native it builds successfully Thanks, guess time to filter out in the ebuild for arm64 when gcc is used then -- can revisit eventually. Seeing how it failed in a different location than the other bug (different repo, not v8's -- albeit it may still share some copy/pasted code), does increase the suspicion the issue is in gcc. Albeit not going to worry too much about it for qtwebengine.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64afdb690871b92f6916abc03210662c43eb2d8f commit 64afdb690871b92f6916abc03210662c43eb2d8f Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2023-12-22 20:52:48 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2023-12-24 08:27:32 +0000 dev-qt/qtwebengine: filter -march on arm64 with gcc for now (qt6) Bit like Qt5's webengine which did not respect it either. Not ideal but given the complexity tend to be lucky if it builds at all. As noted in the comment, please report if this works again so can cleanup (can test with USE=custom-cflags), may get fixed either by >=qtwebengine-6.7 (chromium-118) or a new gcc version depending on where the real issue is, but not planning to pursue this further myself. Closes: https://bugs.gentoo.org/920555 Closes: https://bugs.gentoo.org/920568 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> dev-qt/qtwebengine/qtwebengine-6.6.1.ebuild | 6 ++++++ dev-qt/qtwebengine/qtwebengine-6.6.9999.ebuild | 6 ++++++ dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild | 6 ++++++ dev-qt/qtwebengine/qtwebengine-6.9999.ebuild | 6 ++++++ 4 files changed, 24 insertions(+)