Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884549 - www-client/chromium-108.0.5359.94 failed to emerge (error: inlining failed in call to ‘always_inline’ ‘vdotq_u32’: target specific option mismatch)
Summary: www-client/chromium-108.0.5359.94 failed to emerge (error: inlining failed in...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-06 07:13 UTC by Leonid Kopylov
Modified: 2022-12-17 19:54 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,110.11 KB, application/xz)
2022-12-06 07:14 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2022-12-06 07:13:24 UTC
# emerge -pqv '=www-client/chromium-108.0.5359.94::gentoo'
[ebuild  N    ] www-client/chromium-108.0.5359.94  USE="X cups gtk4 hangouts js-type-check kerberos official (pic) proprietary-codecs pulseaudio qt5 screencast suid system-av1 system-harfbuzz system-icu system-png wayland (-component-build) -custom-cflags -debug (-headless) -libcxx -lto (-pgo) (-selinux) (-system-ffmpeg) -vaapi (-widevine)" CPU_FLAGS_ARM="(-neon)" L10N="he ru -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW"

# emerge --info '=www-client/chromium-108.0.5359.94::gentoo'
Portage 3.0.41 (python 3.10.8-final-0, default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, gcc-12, glibc-2.36-r6, 6.0.11-gentoo-arm64 aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.0.11-gentoo-arm64-aarch64-with-glibc2.36
KiB Mem:    32818668 total,  18305648 free
KiB Swap:    8388604 total,   6799356 free
Timestamp of repository gentoo: Mon, 05 Dec 2022 18:30:01 +0000
Head commit of repository gentoo: 35ce53d48d4efbf7578a4eecea9f584797b4ca75
sh bash 5.2_p12
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.2_p12::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.8_p3::gentoo, 3.11.0_p2::gentoo, 3.12.0_alpha2::gentoo
dev-lang/rust:             1.65.0::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.25.1::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          252.2::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.6::gentoo
sys-devel/gcc:             12.2.1_p20221008::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             15.0.6::gentoo
sys-devel/llvm:            13.0.1::gentoo, 15.0.6::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.0::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r6::gentoo
Repositories:

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

darkelf
    location: /var/lib/layman/darkelf
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/user/darkelf.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/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 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 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 strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/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 aalib accessibility acl acpi activities alsa ao appindicator archive arm64 aspell audit bash-completion berkdb bidi bluetooth bluray boost branding brotli bzip2 cairo cdda cddb cdio cdr cgi cli colord contrib cron crypt cryptsetup cups curl dbi dbus designer device-mapper djvu doc dri dts dvb dvdr eds emacs enchant encode evdev evo examples executable exif expat experimental extra extras fam fbcon fdk ffmpeg fftw flac fluidsynth fontconfig fortran freetds ftp fuse games gcrypt gd gdbm gdk-pixbuf geolocation gif git glib glusterfs gme gmp gnome gnome-keyring gnome-online-accounts gnuplot gnutls go gpg gphoto2 gpm graphite graphviz gsm gssapi gstreamer gtk gtk-doc gtk3 gui guile harfbuzz hdf5 heif highlight hscolour http http2 ibus iconv icu idn imagemagick imap imlib introspection iodbc ipv6 jack java javascript jbig jemalloc jpeg jpeg2k jpegxl json kde kerberos ladspa lame latex lcms ldap libass libcaca libevent libglvnd libnotify libsamplerate libsecret libtirpc libxml2 lmdb lua lv2 lvm lz4 lzma lzo mad magic man mbedtls memcached midi mng modplug mp3 mp4 mpeg mtp multimedia musepack mysql nas nautilus ncurses netlink nettle network networkmanager nfs nls nptl nss ntlm odbc offensive ogg openal openexr opengl openmp openssl opus pam pango pcap pcre pdf perl phonon pkcs11 plasma plugins png policykit portaudio postgres postscript ppds pulseaudio python qdbm qml qrcode qt5 raw rdma readline redis samba sasl screencast sctp sdl seccomp semantic-desktop sftp share skey snappy sndfile sndio snmp sound source sox speech speex spell sql sqlite ssh ssl startup-notification svg symlink syslog systemd taglib tbb tcl telemetry telepathy test-rust theora threads tiff tk tools tracker tremor truetype twolame udev udisks unicode unwind upnp upower usb utils uuid v4l vala vcd vim-syntax vnc vorbis vpx wavpack wayland webengine webkit webp websockets widgets wmf wxwidgets x264 x265 xattr xcb xface xft xinerama xml xmp xpm xscreensaver xv xvid yaml zeroconf zfs zip zlib zsh-completion zstd" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30 ruby31" USERLAND="GNU" VIDEO_CARDS="virgl" 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:  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
Comment 1 Leonid Kopylov 2022-12-06 07:14:09 UTC
Created attachment 840365 [details]
build.log.xz
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-06 07:15:03 UTC
[31mFAILED: [0mobj/third_party/libvpx/libvpx/sad4d_neon.o 
aarch64-unknown-linux-gnu-gcc -MMD -MF obj/third_party/libvpx/libvpx/sad4d_neon.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -I../../third_party/libvpx/source/config -I../../third_party/libvpx/source/config/linux/arm64 -I../../third_party/libvpx/source/libvpx -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -fno-omit-frame-pointer -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wno-unused-function -Wno-sign-compare -std=gnu11 -march=native -O2 -pipe -c ../../third_party/libvpx/source/libvpx/vpx_dsp/arm/sad4d_neon.c -o obj/third_party/libvpx/libvpx/sad4d_neon.o
In file included from ../../third_party/libvpx/source/libvpx/vpx_dsp/arm/sad4d_neon.c:11:
/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include/arm_neon.h: In function ‘sad16_neon’:
/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include/arm_neon.h:29513:1: error: inlining failed in call to ‘always_inline’ ‘vdotq_u32’: target specific option mismatch
29513 | vdotq_u32 (uint32x4_t __r, uint8x16_t __a, uint8x16_t __b)
      | ^~~~~~~~~
../../third_party/libvpx/source/libvpx/vpx_dsp/arm/sad4d_neon.c:247:10: note: called from here
  247 |   *sum = vdotq_u32(*sum, diff, vdupq_n_u8(1));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include/arm_neon.h:29513:1: error: inlining failed in call to ‘always_inline’ ‘vdotq_u32’: target specific option mismatch
29513 | vdotq_u32 (uint32x4_t __r, uint8x16_t __a, uint8x16_t __b)
      | ^~~~~~~~~
../../third_party/libvpx/source/libvpx/vpx_dsp/arm/sad4d_neon.c:247:10: note: called from here
  247 |   *sum = vdotq_u32(*sum, diff, vdupq_n_u8(1));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3282/26770] aarch64-unknown-linux-gnu-gcc -MMD -MF obj/th
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2022-12-06 16:40:23 UTC
Can you expand -march=native?
Comment 4 Leonid Kopylov 2022-12-06 16:41:13 UTC
(In reply to Stephan Hartmann from comment #3)
> Can you expand -march=native?

can you explain how to do it?
Comment 5 Stephan Hartmann (RETIRED) gentoo-dev 2022-12-06 16:46:40 UTC
(In reply to Leonid Kopylov from comment #4)
> (In reply to Stephan Hartmann from comment #3)
> > Can you expand -march=native?
> 
> can you explain how to do it?

aarch64-unknown-linux-gnu-gcc -march=native -Q --help=target

Maybe add -v for more info.
Comment 6 Leonid Kopylov 2022-12-06 16:48:13 UTC
 # aarch64-unknown-linux-gnu-gcc -march=native -Q -v
Using built-in specs.
COLLECT_GCC=aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/12/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-12.2.1_p20221008/work/gcc-12-20221008/configure --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/12 --includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include --datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12 --mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12/man --infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12/info --with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include/g++-v12 --with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/12/python --enable-languages=c,c++,go,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 12.2.1_p20221008 p1' --with-gcc-major-version-only --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --enable-lto --with-isl --disable-isl-version-check --enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.1 20221008 (Gentoo 12.2.1_p20221008 p1)
Comment 7 Stephan Hartmann (RETIRED) gentoo-dev 2022-12-06 16:50:51 UTC
(In reply to Leonid Kopylov from comment #6)
>  # aarch64-unknown-linux-gnu-gcc -march=native -Q -v
> Using built-in specs.
> COLLECT_GCC=aarch64-unknown-linux-gnu-gcc
> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/12/lto-wrapper
> Target: aarch64-unknown-linux-gnu
> Configured with:
> /var/tmp/portage/sys-devel/gcc-12.2.1_p20221008/work/gcc-12-20221008/
> configure --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu
> --prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/12
> --includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include
> --datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12
> --mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12/man
> --infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12/info
> --with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include/g++-
> v12 --with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/12/python
> --enable-languages=c,c++,go,fortran --enable-obsolete --enable-secureplt
> --disable-werror --with-system-zlib --enable-nls --without-included-gettext
> --disable-libunwind-exceptions --enable-checking=release
> --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo
> 12.2.1_p20221008 p1' --with-gcc-major-version-only --disable-esp
> --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared
> --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
> --disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp
> --disable-libada --disable-cet --disable-systemtap
> --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv
> --with-zstd --enable-lto --with-isl --disable-isl-version-check
> --enable-default-pie --enable-default-ssp
> Thread model: posix
> Supported LTO compression algorithms: zlib zstd
> gcc version 12.2.1 20221008 (Gentoo 12.2.1_p20221008 p1)

You forgot to add --help=target ;)
Comment 8 Leonid Kopylov 2022-12-06 16:52:01 UTC
(In reply to Stephan Hartmann from comment #7)
> (In reply to Leonid Kopylov from comment #6)
> >  # aarch64-unknown-linux-gnu-gcc -march=native -Q -v
> > Using built-in specs.
> > COLLECT_GCC=aarch64-unknown-linux-gnu-gcc
> > COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/12/lto-wrapper
> > Target: aarch64-unknown-linux-gnu
> > Configured with:
> > /var/tmp/portage/sys-devel/gcc-12.2.1_p20221008/work/gcc-12-20221008/
> > configure --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu
> > --prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/12
> > --includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include
> > --datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12
> > --mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12/man
> > --infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12/info
> > --with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include/g++-
> > v12 --with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/12/python
> > --enable-languages=c,c++,go,fortran --enable-obsolete --enable-secureplt
> > --disable-werror --with-system-zlib --enable-nls --without-included-gettext
> > --disable-libunwind-exceptions --enable-checking=release
> > --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo
> > 12.2.1_p20221008 p1' --with-gcc-major-version-only --disable-esp
> > --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared
> > --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
> > --disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp
> > --disable-libada --disable-cet --disable-systemtap
> > --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv
> > --with-zstd --enable-lto --with-isl --disable-isl-version-check
> > --enable-default-pie --enable-default-ssp
> > Thread model: posix
> > Supported LTO compression algorithms: zlib zstd
> > gcc version 12.2.1 20221008 (Gentoo 12.2.1_p20221008 p1)
> 
> You forgot to add --help=target ;)



# aarch64-unknown-linux-gnu-gcc -march=native -Q -v --help=target
Using built-in specs.
COLLECT_GCC=aarch64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/12/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-12.2.1_p20221008/work/gcc-12-20221008/configure --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/12 --includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include --datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12 --mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12/man --infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/12/info --with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/12/include/g++-v12 --with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/12/python --enable-languages=c,c++,go,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 12.2.1_p20221008 p1' --with-gcc-major-version-only --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --enable-lto --with-isl --disable-isl-version-check --enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.1 20221008 (Gentoo 12.2.1_p20221008 p1)
COLLECT_GCC_OPTIONS= '-Q' '-v' '--help=target' '-mlittle-endian' '-mabi=lp64' '-march=armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+fp16fml+sb+ssbs+flagm+pauth' '-dumpdir' 'a-'
 /usr/libexec/gcc/aarch64-unknown-linux-gnu/12/cc1 -v help-dummy -dumpdir a- -dumpbase help-dummy -mlittle-endian -mabi=lp64 -march=armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+fp16fml+sb+ssbs+flagm+pauth -version --help=target -o /tmp/ccrAvvxu.s
The following options are target specific:
  -mabi=                                lp64
  -march=                               armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+fp16fml+sb+ssbs+flagm+pauth
  -mbig-endian                          [disabled]
  -mbionic                              [disabled]
  -mbranch-protection=
  -mcmodel=                             small
  -mcpu=                                generic
  -mfix-cortex-a53-835769               [enabled]
  -mfix-cortex-a53-843419               [enabled]
  -mgeneral-regs-only                   [disabled]
  -mglibc                               [enabled]
  -mharden-sls=
  -mlittle-endian                       [enabled]
  -mlow-precision-div                   [disabled]
  -mlow-precision-recip-sqrt            [disabled]
  -mlow-precision-sqrt                  [disabled]
  -mmusl                                [disabled]
  -momit-leaf-frame-pointer             [enabled]
  -moutline-atomics                     [enabled]
  -moverride=<string>
  -mpc-relative-literal-loads           [enabled]
  -msign-return-address=                none
  -mstack-protector-guard-offset=
  -mstack-protector-guard-reg=
  -mstack-protector-guard=              global
  -mstrict-align                        [disabled]
  -msve-vector-bits=<number>            scalable
  -mtls-dialect=                        desc
  -mtls-size=                           24
  -mtrack-speculation                   [disabled]
  -mtune=                               generic
  -muclibc                              [disabled]
  -mverbose-cost-dump                   [disabled]

  Known AArch64 ABIs (for use with the -mabi= option):
    ilp32 lp64

  Supported AArch64 return address signing scope (for use with -msign-return-address= option):
    all non-leaf none

  The code model option names for -mcmodel:
    large small tiny

  Valid arguments to -mstack-protector-guard=:
    global sysreg

  The possible SVE vector lengths:
    1024 128 2048 256 512 scalable

  The possible TLS dialects:
    desc trad

GNU C17 (Gentoo 12.2.1_p20221008 p1) version 12.2.1 20221008 (aarch64-unknown-linux-gnu)
        compiled by GNU C version 12.2.1 20221008, GMP version 6.2.1, MPFR version 4.1.1-p1, MPC version 1.2.1, isl version isl-0.24-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS= '-Q' '-v' '--help=target' '-mlittle-endian' '-mabi=lp64' '-march=armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+fp16fml+sb+ssbs+flagm+pauth' '-dumpdir' 'a-'
 /usr/lib/gcc/aarch64-unknown-linux-gnu/12/../../../../aarch64-unknown-linux-gnu/bin/as -v -EL -march=armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+fp16fml+sb+ssbs+flagm+pauth -mabi=lp64 -o /tmp/ccuKcxO1.o /tmp/ccrAvvxu.s
GNU assembler version 2.39.0 (aarch64-unknown-linux-gnu) using BFD version (Gentoo 2.39 p5) 2.39.0
Comment 9 Stephan Hartmann (RETIRED) gentoo-dev 2022-12-06 18:18:11 UTC
I think this is a toolchain bug. The code expects at least -march=armv8.2-a for dotprod extensions. But your CPU is armv8-a. The code here is responsible (part of GCC):

https://github.com/gcc-mirror/gcc/blob/master/gcc/config/arm/arm_neon.h#L18187
Comment 10 Leonid Kopylov 2022-12-13 18:02:37 UTC
may be related?
https://bugs.gentoo.org/884497
Comment 11 Leonid Kopylov 2022-12-17 19:17:56 UTC
i reinstalled the whole system, setting:
-march=armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+fp16fml+sb+ssbs+flagm+pauth
in make.conf
i was also able to install (during initial install) latest gcc:
sys-devel/gcc-12.2.1_p20221210 (https://bugs.gentoo.org/884497).
And now i have a different "-march" (if i change to the new - a lot of packages does not build):
# gcc -march=native -E -v - </dev/null 2>&1 | grep cc1
 /usr/libexec/gcc/aarch64-unknown-linux-gnu/12/cc1 -E -quiet -v - -mlittle-endian -mabi=lp64 -march=armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+sha3+fp16fml+sb+ssbs+flagm+pauth -dumpbase -



# aarch64-unknown-linux-gnu-gcc -march=native -Q --help=target
The following options are target specific:
  -mabi=                                lp64
  -march=                               armv8-a+crypto+crc+lse+rcpc+rdma+dotprod+sha3+fp16fml+sb+ssbs+flagm+pauth
  -mbig-endian                          [disabled]
  -mbionic                              [disabled]
  -mbranch-protection=
  -mcmodel=                             small
  -mcpu=                                generic
  -mfix-cortex-a53-835769               [enabled]
  -mfix-cortex-a53-843419               [enabled]
  -mgeneral-regs-only                   [disabled]
  -mglibc                               [enabled]
  -mharden-sls=
  -mlittle-endian                       [enabled]
  -mlow-precision-div                   [disabled]
  -mlow-precision-recip-sqrt            [disabled]
  -mlow-precision-sqrt                  [disabled]
  -mmusl                                [disabled]
  -momit-leaf-frame-pointer             [enabled]
  -moutline-atomics                     [enabled]
  -moverride=<string>
  -mpc-relative-literal-loads           [enabled]
  -msign-return-address=                none
  -mstack-protector-guard-offset=
  -mstack-protector-guard-reg=
  -mstack-protector-guard=              global
  -mstrict-align                        [disabled]
  -msve-vector-bits=<number>            scalable
  -mtls-dialect=                        desc
  -mtls-size=                           24
  -mtrack-speculation                   [disabled]
  -mtune=                               generic
  -muclibc                              [disabled]
  -mverbose-cost-dump                   [disabled]

  Known AArch64 ABIs (for use with the -mabi= option):
    ilp32 lp64

  Supported AArch64 return address signing scope (for use with -msign-return-address= option):
    all non-leaf none

  The code model option names for -mcmodel:
    large small tiny

  Valid arguments to -mstack-protector-guard=:
    global sysreg

  The possible SVE vector lengths:
    1024 128 2048 256 512 scalable

  The possible TLS dialects:
    desc trad
Comment 12 Stephan Hartmann (RETIRED) gentoo-dev 2022-12-17 19:52:57 UTC
The problem is that gcc detects armv8-a, but minimum is armv8.2-a for dotprod extension. Clang seems to automatically "fix" this.
The detection code either looks for information in /proc/cpuinfo or uses a file from GCC_CPUINFO environment variable.

Can you share the content of /proc/cpuinfo for one core?
Comment 13 Leonid Kopylov 2022-12-17 19:54:12 UTC
(In reply to Stephan Hartmann from comment #12)
> The problem is that gcc detects armv8-a, but minimum is armv8.2-a for
> dotprod extension. Clang seems to automatically "fix" this.
> The detection code either looks for information in /proc/cpuinfo or uses a
> file from GCC_CPUINFO environment variable.
> 
> Can you share the content of /proc/cpuinfo for one core?

# cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm ssbs sb paca pacg dcpodp flagm2 frint
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0