Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831203 - www-client/chromium-97.0.4692.71-r1: fails to build on arm64 (third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/depthwiseconv_3x3_filter_common.h:132:58: error: cannot convert ‘int32x2_t’ to ‘int8x8_t’)
Summary: www-client/chromium-97.0.4692.71-r1: fails to build on arm64 (third_party/tfl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 830974
  Show dependency tree
 
Reported: 2022-01-14 17:02 UTC by Sam James
Modified: 2022-01-16 06:15 UTC (History)
0 users

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


Attachments
patch (chromium-97-arm-tflite-cast.patch,1.19 KB, patch)
2022-01-14 18:39 UTC, Stephan Hartmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-14 17:02:21 UTC
FAILED: obj/third_party/tflite/tflite_kernels/depthwise_conv.o
aarch64-unknown-linux-gnu-g++ -MMD -MF obj/third_party/tflite/tflite_kernels/depthwise_conv.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -DOFFICIAL_BUILD -D_FILE_OFFS
ET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTFLITE_WITHOUT_XNNPACK -DFARMHA
SH_NO_CXX_STRING -DNEON2SSE_DISABLE_PERFORMANCE_WARNING -DTF_LITE_STRIP_ERROR_STRINGS -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -DEIGEN_MPL2_ONLY -DEIGEN_MAX_ALIGN_BYTES=64 -DEIGEN_HAS_TYPE_TRAITS=0 -DFLATBUFFE
RS_LOCALE_INDEPENDENT=0 -I../.. -Igen -I../../third_party/tflite/src -I../../third_party/eigen3/src -I../../third_party/abseil-cpp -I../../third_party/farmhash/src/src -I../../third_party/flatbuffers/src/in
clude -I../../third_party/fp16/src/include -I../../third_party/gemmlowp/src -I../../third_party/neon_2_sse/src -I../../third_party/ruy/src -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-p
rotector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-m
issing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -fvisibility=hidden -Wno-c99-extensions -Wno-comment -Wno-extern-c-compat -Wno-gnu-inline-cpp-without-extern -Wno-loop-analysis -Wno-s
hadow -Wno-sign-compare -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-but-set-variable -Wno-unused-variable -Wno-deprecated-copy -Wno-extra-semi -Wno-unused-function -Wno-unused-resul
t -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -O2 -pipe -mcpu=native -c ../../third_party/tflite/src/tensorflow/lite/kernels/depthwise_conv.cc -o o
bj/third_party/tflite/tflite_kernels/depthwise_conv.o
In file included from ../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/integer_ops/depthwise_conv.h:28,
                 from ../../third_party/tflite/src/tensorflow/lite/kernels/depthwise_conv.cc:16:
../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/depthwiseconv_3x3_filter_common.h: In function ‘int32x4_t tflite::optimized_ops::depthwise_conv::vdotq_four_lane_s32(int32x4_t, int8x1
6_t, int8x16_t, int)’:
../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/depthwiseconv_3x3_filter_common.h:132:28: note: use ‘-flax-vector-conversions’ to permit conversions between vectors with differing el
ement types or numbers of subparts
  132 |       return vdotq_lane_s32(acc, lhs, vreinterpret_s32_s8(vget_low_s8(rhs)), 0);
      |              ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/depthwiseconv_3x3_filter_common.h:132:58: error: cannot convert ‘int32x2_t’ to ‘int8x8_t’
  132 |       return vdotq_lane_s32(acc, lhs, vreinterpret_s32_s8(vget_low_s8(rhs)), 0);
      |                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
      |                                                          |
      |                                                          int32x2_t
In file included from ../../third_party/gemmlowp/src/public/../internal/../internal/kernel_neon.h:25,
                 from ../../third_party/gemmlowp/src/public/../internal/../internal/kernel_default.h:77,
                 from ../../third_party/gemmlowp/src/public/../internal/dispatch_gemm_shape.h:20,
                 from ../../third_party/gemmlowp/src/public/gemmlowp.h:19,
                 from ../../third_party/tflite/src/tensorflow/lite/kernels/cpu_backend_context.h:26,
                 from ../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/integer_ops/depthwise_conv.h:24,
                 from ../../third_party/tflite/src/tensorflow/lite/kernels/depthwise_conv.cc:16:
/usr/lib/gcc/aarch64-unknown-linux-gnu/11.2.1/include/arm_neon.h:32186:56: note:   initializing argument 3 of ‘int32x4_t vdotq_lane_s32(int32x4_t, int8x16_t, int8x8_t, int)’
32186 | vdotq_lane_s32 (int32x4_t __r, int8x16_t __a, int8x8_t __b, const int __index)
      |                                               ~~~~~~~~~^~~

----
# emerge --info
Portage 3.0.30 (python 3.9.9-final-0, default/linux/arm64/17.0/desktop/gnome/systemd, gcc-11.2.1, glibc-2.34-r4, 5.15.11-gentoo-dist aarch64)
=================================================================
System uname: Linux-5.15.11-gentoo-dist-aarch64-with-glibc2.34
KiB Mem:   262985080 total, 200615028 free
KiB Swap:    9767620 total,   9767620 free
Timestamp of repository gentoo: Fri, 14 Jan 2022 15:51:53 +0000
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.9.9-r1::gentoo, 3.10.1-r3::gentoo
dev-lang/rust:             1.57.0::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.1::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.2::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.1_p20211127::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="*"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=native"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /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 /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --deep --complete-graph"
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"
FCFLAGS="-O2 -pipe -mcpu=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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 -mcpu=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j20"
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"
USE="X a52 aac acl acpi alsa arm64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvdr eds emboss encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2020" 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="aes crc32 edsp sha1 sha2 thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, 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, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-14 17:07:12 UTC
I've uploaded the log here: https://dev.gentoo.org/~sam/bugs/gentoo/chromium-97.0.4692.71-r1-bug831203-arm64.log.bz2.
Comment 2 Stephan Hartmann (RETIRED) gentoo-dev 2022-01-14 18:15:44 UTC
I don't know why they use vreinterpret_s32_s8() to cast to int32x2_t when vget_{low,high}_s8 already returns int8x8_t. Clang accepts it, but it has -flax-vector-conversions=all by default.
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2022-01-14 18:39:53 UTC
Created attachment 762167 [details, diff]
patch

Please try attached patch.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-14 18:54:28 UTC
(In reply to Stephan Hartmann from comment #3)
> Created attachment 762167 [details, diff] [details, diff]
> patch
> 
> Please try attached patch.

ok
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-14 20:35:39 UTC
(In reply to Stephan Hartmann from comment #3)
> Created attachment 762167 [details, diff] [details, diff]
> patch
> 
> Please try attached patch.

Works, thank you!
Comment 6 Larry the Git Cow gentoo-dev 2022-01-15 08:48:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a60cec57a2fe78292758c678697d0f16819ad90

commit 7a60cec57a2fe78292758c678697d0f16819ad90
Author:     Stephan Hartmann <sultan@gentoo.org>
AuthorDate: 2022-01-15 08:47:52 +0000
Commit:     Stephan Hartmann <sultan@gentoo.org>
CommitDate: 2022-01-15 08:48:27 +0000

    www-client/chromium: fix building with dotprod extension on arm64
    
    Closes: https://bugs.gentoo.org/831203
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Stephan Hartmann <sultan@gentoo.org>

 .../chromium/chromium-97.0.4692.71-r1.ebuild       |  1 +
 www-client/chromium/chromium-98.0.4758.54.ebuild   |  1 +
 www-client/chromium/chromium-99.0.4818.0.ebuild    |  1 +
 .../files/chromium-97-arm-tflite-cast.patch        | 26 ++++++++++++++++++++++
 4 files changed, 29 insertions(+)