first time i got this failure was with chromium-96.0.4651.0. this output is from chromium-96.0.4655.0 [12861/22924] x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/tflite/tflite_kernels/add.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMI C_ANNOTATIONS_ENABLED=0 -DTFLITE_WITHOUT_XNNPACK -DFARMHASH_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 -DFLATBUFFERS_LOCALE_INDEPENDENT=0 -I../.. -Igen -I../../third_p arty/tflite/src -I../../third_party/eigen3/src -I../../third_party/abseil-cpp -I../../third_party/farmhash/src/src -I../../third_party/flatbuffers/src/include -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-a liasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-u nused-parameter -fno-omit-frame-pointer -fvisibility=hidden -Wno-c99-extensions -Wno-comment -Wno-extern-c-compat -Wno-unused-variable -Wno-sign-compare -Wno-gnu-inline-cpp-without-extern -Wno-loop-analysis -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-deprecated-copy -Wno-extra-semi -Wno-unused-fun ction -Wno-unused-result -Wno-deprecated-declarations -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -march=native -O2 -pipe -frecord-gcc-switches -c ../../third_party/tflite/src/tensorflow/lite/kernels/add.cc -o obj/third_party/tflite/tflite_kernels/add.o FAILED: obj/third_party/tflite/tflite_kernels/add.o x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/tflite/tflite_kernels/add.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ ENABLED=0 -DTFLITE_WITHOUT_XNNPACK -DFARMHASH_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 -DFLATBUFFERS_LOCALE_INDEPENDENT=0 -I../.. -Igen -I../../third_party/tflite/sr c -I../../third_party/eigen3/src -I../../third_party/abseil-cpp -I../../third_party/farmhash/src/src -I../../third_party/flatbuffers/src/include -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 --para m=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-paramete r -fno-omit-frame-pointer -fvisibility=hidden -Wno-c99-extensions -Wno-comment -Wno-extern-c-compat -Wno-unused-variable -Wno-sign-compare -Wno-gnu-inline-cpp-without-extern -Wno-loop-analysis -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-deprecated-copy -Wno-extra-semi -Wno-unused-function -Wno-unu sed-result -Wno-deprecated-declarations -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -march=native -O2 -pipe -frecord-gcc-switches -c ../../third_party/tflite/src/tensorflow/lite/kernels/add.cc -o obj/third_party/tflite/tflite_kernels/add.o In file included from ../../third_party/gemmlowp/src/fixedpoint/fixedpoint.h:907, from ../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/integer_ops/add.h:20, from ../../third_party/tflite/src/tensorflow/lite/kernels/add.cc:15: ../../third_party/gemmlowp/src/fixedpoint/./fixedpoint_sse.h:47:39: warning: ignoring attributes on template argument ‘__m128i’ [-Wignored-attributes] 47 | struct FixedPointRawTypeTraits<__m128i> { | ^ In file included from ../../third_party/gemmlowp/src/public/../internal/simd_wrappers.h:664, from ../../third_party/gemmlowp/src/public/../internal/output.h:29, from ../../third_party/gemmlowp/src/public/../internal/unpack.h:23, from ../../third_party/gemmlowp/src/public/../internal/single_thread_gemm.h:29, from ../../third_party/gemmlowp/src/public/../internal/multi_thread_gemm.h:27, from ../../third_party/gemmlowp/src/public/../internal/dispatch_gemm_shape.h:23, 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/optimized_ops.h:44, from ../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/integer_ops/add.h:26, from ../../third_party/tflite/src/tensorflow/lite/kernels/add.cc:15: ../../third_party/gemmlowp/src/public/../internal/simd_wrappers_sse.h:31:72: warning: ignoring attributes on template argument ‘gemmlowp::Int32x4’ {aka ‘__m128i’} [-Wignored-attributes] 31 | typename std::conditional<ScalarCount >= 4, Int32x4, std::int32_t>::type; | ^ ../../third_party/gemmlowp/src/public/../internal/simd_wrappers_sse.h:37:72: warning: ignoring attributes on template argument ‘gemmlowp::Int16x8’ {aka ‘__m128i’} [-Wignored-attributes] 37 | typename std::conditional<ScalarCount >= 8, Int16x8, std::int16_t>::type; | ^ ../../third_party/gemmlowp/src/public/../internal/simd_wrappers_sse.h:45:52: warning: ignoring attributes on template argument ‘gemmlowp::Uint8x16’ {aka ‘__m128i’} [-Wignored-attributes] 45 | std::uint8_t>::type>::type; | ^ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/immintrin.h:47, from ../../third_party/eigen3/src/Eigen/src/Core/util/ConfigureVectorization.h:361, from ../../third_party/eigen3/src/Eigen/Core:22, from ../../third_party/tflite/src/third_party/eigen3/Eigen/Core:1, from ../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/optimized_ops.h:39, from ../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/integer_ops/add.h:26, from ../../third_party/tflite/src/tensorflow/lite/kernels/add.cc:15: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/avx2intrin.h: In function ‘Packet Eigen::internal::pmin(const Packet&, const Packet&) [with Packet = __vector(4) long long int]’: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/avx2intrin.h:405:1: error: inlining failed in call to ‘always_inline’ ‘__m256i _mm256_min_epi32(__m256i, __m256i)’: target specific option mismatch 405 | _mm256_min_epi32 (__m256i __A, __m256i __B) | ^~~~~~~~~~~~~~~~ In file included from ../../third_party/eigen3/src/Eigen/Core:200, from ../../third_party/tflite/src/third_party/eigen3/Eigen/Core:1, from ../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/optimized_ops.h:39, from ../../third_party/tflite/src/tensorflow/lite/kernels/internal/optimized/integer_ops/add.h:26, from ../../third_party/tflite/src/tensorflow/lite/kernels/add.cc:15: ../../third_party/eigen3/src/Eigen/src/Core/arch/AVX/PacketMath.h:422:26: note: called from here 422 | return _mm256_min_epi32(a, b); | ~~~~~~~~~~~~~~~~^~~~~~ # emerge --info '=www-client/chromium-96.0.4655.0::gentoo' Portage 3.0.26 (python 3.10.0-candidate-2, default/linux/amd64/17.1/hardened, gcc-11.2.0, glibc-2.33-r7, 5.14.8-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.14.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-glibc2.33 KiB Mem: 32809436 total, 5329852 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Thu, 30 Sep 2021 19:00:01 +0000 Head commit of repository gentoo: 0223e2b6cc365936353fd6bdea4bf14161780ce7 sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r2::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.8.12::gentoo, 3.9.7::gentoo, 3.10.0_rc2::gentoo dev-lang/rust: 1.55.0::gentoo dev-util/cmake: 3.21.3::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.5::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.4::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 fordfrog location: /usr/src/fordfrog.git masters: gentoo priority: 0 local location: /usr/local/portage masters: gentoo brother-overlay location: /var/lib/layman/brother-overlay masters: gentoo priority: 50 ceamac location: /var/lib/layman/ceamac masters: gentoo priority: 50 flavour location: /var/lib/layman/flavour masters: gentoo priority: 50 waebbl location: /var/lib/layman/waebbl masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe -frecord-gcc-switches" DISTDIR="/var/db/repos/gentoo/distfiles" EMERGE_DEFAULT_OPTS="--misspell-suggestions n" 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="-march=native -O2 -pipe -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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="-march=native -O2 -pipe -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="cs_CZ.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="cs cs_CZ en en_US en_UK" MAKEOPTS="-j9" PKGDIR="/var/db/repos/gentoo/packages" 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 aacplus acl alsa amd64 aubio bluetooth bzip2 cdda cddb cdr color-management colord crypt cuda cups dbus dia dssi dvb dvd elogind exif ffmpeg flac gegl gif gphoto2 gsm gtk gtk3 hardened hddtemp http2 ibus iconv icu id3tag ipv6 jack jack-dbus jacksession javafx jpeg ladspa lastfm latex lcms libass libglvnd libnotify libproxy libsamplerate libtirpc lilypond lm-sensors lv2 mad modplug mp3 mpeg mpi mtp multilib musepack ncurses nls nptl ocr ogg openexr opengl openmp opus osc pam pcre pdf pie png policykit pulseaudio qt5 raw readline rubberband samba scanner screencast seccomp sf2 sndfile soundio speex spell split-usr ssl ssp startup-notification svg svg2 taglib theora tiff timidity tk tray truetype udev unicode usb vamp visio vorbis vpx vst vulkan wavpack webp widevine wmf x264 x265 xattr xinerama xmp xtpax xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias auth_basic authn_core authn_file authz_core authz_host authz_user cgi cgid deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 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="evdev libinput synaptics wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" 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_7 python3_8 python3_9 python3_10" RUBY_TARGETS="ruby26 ruby27 ruby30" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nvidia" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS # emerge -pqv '=www-client/chromium-96.0.4655.0::gentoo' [ebuild U ] www-client/chromium-96.0.4655.0 [95.0.4638.17] USE="cups hangouts js-type-check (pic) proprietary-codecs pulseaudio suid system-harfbuzz system-icu widevine (-component-build) -custom-cflags -debug (-headless) -kerberos -official -screencast (-selinux) (-system-ffmpeg) -vaapi -wayland" L10N="cs -am -ar -bg -bn -ca -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 -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW"
build log: https://dev.gentoo.org/~fordfrog/chromium-build.log.bz2 (too bit to attach)
_mm256_min_epi32 is an AVX2 instruction. I guess: > gcc -c -Q -march=native --help=target on your system prints: -mavx2 [disabled] Probably detection is wrong, because I build with -march=x86-64.
Can confirm having this same problem. I experience it with Chromium 95.0.4638.32 but not with 95.0.4638.17. Tried with GCC 11.2 and 10.3, same result. I have a Sandy Bridge-E CPU which supports AVX but not AVX2.
Created attachment 742602 [details] tigerlake-gcc11.2-target-specific-options Mixed results here. Compile errors (recent chromium versions) at my primary gentoo laptop: chromium-95.0.4638.17 - no errors chromium-95.0.4638.32 - compile error chromium-96.0.4655.0 - compile error CPU - 11th Gen Intel(R) Core(TM) i7-1165G7 (AVX512 support available) CPU Flags contains: avx512f avx512dq avx512ifma avx512cd avx512bw avx512vl avx512vbmi avx512_vbmi2 avx512_vnni avx512_bitalg avx512_vpopcntdq avx512_vp2intersect CFLAGS="-O2 -march=tigerlake -pipe" CXXLAGS="-O2 -march=tigerlake -pipe" gcc-11.2.0 Error text: ../../third_party/eigen3/src/Eigen/src/Core/arch/AVX512/PacketMath.h: In function 'void Eigen::internal::ptranspose(Eigen::internal::PacketBlock<__vector(8) long long int, 16>&)': ../../third_party/eigen3/src/Eigen/src/Core/arch/AVX512/PacketMath.h:1032:3: error: expected ',' or ';' before '__m256i' 1032 | __m256i OUTPUT##_1 = _mm512_extracti32x8_epi32(INPUT, 1) No compile problems at my second gentoo laptop: Intel(R) Core(TM) i7-7820HQ CPU (no AVX512 support available) chromium-95.0.4638.17 - no errors chromium-95.0.4638.32 - no errors gcc-11.2.0 CFLAGS="-O2 -march=skylake -pipe" CXXLAGS="-O2 -march=skylake -pipe"
Reproduced with -march=ivybridge. The problem is in third_party/eigen3/src/Eigen/src/Core/arch/AVX/PacketMath.h There we have one function without AVX emulation: template<> EIGEN_STRONG_INLINE Packet8i pmin<Packet8i>(const Packet8i& a, const Packet8i& b) { return _mm256_min_epi32(a, b); } Workaround is to compile Chromium with -march=x86-64 for the moment.
Created attachment 742812 [details, diff] patch Attached patch fixes it for me. Can someone test as well? Eigen GitLab Repo is down at the moment. Maybe it was fixed there already.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2ffd5b5e35dea8fd3c9dc8ab89bc20133024cdc commit b2ffd5b5e35dea8fd3c9dc8ab89bc20133024cdc Author: Stephan Hartmann <sultan@gentoo.org> AuthorDate: 2021-10-04 20:57:33 +0000 Commit: Stephan Hartmann <sultan@gentoo.org> CommitDate: 2021-10-04 20:58:26 +0000 www-client/chromium: fix building without AVX2 Closes: https://bugs.gentoo.org/815487 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Stephan Hartmann <sultan@gentoo.org> www-client/chromium/chromium-95.0.4638.32.ebuild | 3 + www-client/chromium/chromium-96.0.4655.0.ebuild | 3 + .../chromium/files/chromium-95-eigen-avx-1.patch | 229 +++++++++++++++++++++ .../chromium/files/chromium-95-eigen-avx-2.patch | 30 +++ .../chromium/files/chromium-95-eigen-avx-3.patch | 44 ++++ 5 files changed, 309 insertions(+)