Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924066 - >=www-client/chromium-120.0.6099.109: always_inline function 'vmaxq_f16' requires target feature 'fullfp16', but would be inlined into function 'xnn_f16_vdiv_minmax_ukernel__aarch64_neonfp16arith_u8' that is compiled without support for 'fullfp16'
Summary: >=www-client/chromium-120.0.6099.109: always_inline function 'vmaxq_f16' requ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-08 10:57 UTC by Stijn Tintel
Modified: 2024-02-10 10:33 UTC (History)
2 users (show)

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


Attachments
build.log (chromium-build.log.zst,661.05 KB, application/zstd)
2024-02-08 10:59 UTC, Stijn Tintel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stijn Tintel 2024-02-08 10:57:25 UTC
>=www-client/chromium-120.0.6099.109 fails to build on my M2 MacBook Air 15".


../../third_party/xnnpack/src/src/amalgam/gen/neonfp16arith-aarch64.c:40:30: error: always_inline function 'vdivq_f16' requires target feature 'fullfp16',
 but would be inlined into function 'xnn_f16_vdiv_minmax_ukernel__aarch64_neonfp16arith_u8' that is compiled without support for 'fullfp16'
   40 |     float16x8_t vy01234567 = vdivq_f16(va01234567, vb01234567);
      |                              ^

Seen this with the following versions:

www-client/chromium-120.0.6099.109
www-client/chromium-120.0.6099.129
www-client/chromium-121.0.6167.139

My COMMON_FLAGS contains -march=armv8.6-a+nopredres. I've tried overriding this in /etc/portage/env/www-client/chromium with the following:

-march=armv8.6-a+nopredres+nofp16fml
-march=armv8.6-a+nopredres+nofp16fml+nofp16

Neither of these helped. I am now trying again with -march=armv8.3-a, fp16fml, which also enabled fp16, is enabled as of -march=armv8.4-a. I'll comment when I have the result of this attempt.
Comment 1 Stijn Tintel 2024-02-08 10:58:23 UTC
# emerge --info www-client/chromium
Unavailable repository 'guru' referenced by masters entry in '/var/db/repos/stintel/metadata/layout.conf'
Portage 3.0.61 (python 3.11.7-final-0, !../../var/db/repos/gentoo/profiles/default/linux/arm64/17.0/desktop/plasma/systemd/merged-usr, gcc-13, glibc-2.38-r10, 6.6.4-asahi-arm64+ aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.4-asahi-arm64+-aarch64-with-glibc2.38
KiB Mem:    24116832 total,   4619888 free
KiB Swap:   16777200 total,  16328688 free
Head commit of repository asahi: 347b9562365d916c8dd33e60ffcf625dd0897f9f

Timestamp of repository gentoo: Wed, 07 Feb 2024 12:15:01 +0000
Head commit of repository gentoo: 5435f071fcadeaa17338e15ef7ebe736b0772d37
Head commit of repository stintel: 0993d543509a2966f0480f5f42aa9fc1203bdd01

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
dev-lang/python:          3.11.7::gentoo, 3.12.1_p1::gentoo
sys-devel/binutils:       2.41-r3::gentoo
sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers)
Repositories:

asahi
    location: /var/db/repos/asahi
    sync-type: git
    sync-uri: https://github.com/chadmed/asahi-overlay
    masters: gentoo
    priority: -1000
    volatile: False

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    volatile: False
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync.exclude
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3

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

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="@FREE"
CFLAGS="-O2 -pipe -march=armv8.6-a+nopredres -g"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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"
CXXFLAGS="-O2 -pipe -march=armv8.6-a+nopredres -g"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs compressdebug 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.leaseweb.com/gentoo https://gentoo.adlevio.net"
PKGDIR="/var/cache/binpkgs"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa arm64 bluetooth branding bzip2 cairo caps cdda cdr cli crypt cups dbus declarative dri dts dvdr encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop smp sound spell ssl startup-notification svg system-av1 system-ffmpeg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wifi wxwidgets x264 xattr xcb xft xml xv xvid zlib" 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" 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="libinput" KERNEL="linux" L10N="en en-US nl" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="WebAssembly" 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" QEMU_SOFTMMU_TARGETS="aarch64 arm" RUBY_TARGETS="ruby31" VIDEO_CARDS="asahi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  EMERGE_DEFAULT_OPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND

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

www-client/chromium-119.0.6045.199::gentoo was built with the following:
USE="X cups hangouts official proprietary-codecs pulseaudio qt5 screencast system-harfbuzz system-icu system-png system-zstd wayland -custom-cflags -debug -gtk4 (-headless) -kerberos (-libcxx) (-lto) -pax-kernel (-pgo) (-qt6) (-selinux) -vaapi (-widevine)" L10N="nl -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW"
CFLAGS="-O2 -pipe -march=armv8.6-a+nopredres"
CXXFLAGS="-O2 -pipe -march=armv8.6-a+nopredres"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs compressdebug 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 2 Stijn Tintel 2024-02-08 10:59:31 UTC
Created attachment 884558 [details]
build.log
Comment 3 Stijn Tintel 2024-02-09 10:12:26 UTC
Same problem with -march=armv8.3-a.

Then I did -e @world with -march=armv8.4-a+rcpc+aes+sha3+sb+ssbs+i8mm+bf16, which should be the equivalent of -march=armv8-a+crc+lse+rcpc+rdma+dotprod+aes+sha3+fp16fml+sb+ssbs+i8mm+bf16+flagm+pauth, which is what I get when I run gcc -fverbose-asm -march=native -mcpu=native -Q --help=target. Unfortunately chromium still does not build.
Comment 4 Stijn Tintel 2024-02-10 10:33:50 UTC
Thanks to NeddySeagoon in #gentoo-arm I found that using -mcpu=armv8.4-a+rcpc+aes+sha3+sb+ssbs+i8mm+bf16 instead of -march=armv8.4-a+rcpc+aes+sha3+sb+ssbs+i8mm+bf16  solves the problem.