Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835412 - media-libs/zimg-3.0.3 fails with CFLAGS=-mno-avx2
Summary: media-libs/zimg-3.0.3 fails with CFLAGS=-mno-avx2
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on: 821298
Blocks:
  Show dependency tree
 
Reported: 2022-03-16 08:37 UTC by Xavier Miller
Modified: 2023-05-26 09:53 UTC (History)
3 users (show)

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


Attachments
build log (build.log,216.15 KB, text/x-log)
2022-03-16 08:42 UTC, Xavier Miller
Details
config.log (config.log,91.15 KB, text/x-log)
2022-03-16 08:44 UTC, Xavier Miller
Details
patch for the ebuild (zimg-3.0.3.ebuild-flag-o-matic.patch,764 bytes, patch)
2022-03-16 14:35 UTC, Xavier Miller
Details | Diff
patch for the ebuild -v2 (zimg-3.0.3.ebuild-flag-o-matic.patch,801 bytes, patch)
2022-03-17 08:05 UTC, Xavier Miller
Details | Diff
patch for the ebuild -v2a (zimg-3.0.3.ebuild-flag-o-matic.patch,802 bytes, patch)
2022-03-17 08:41 UTC, Xavier Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller 2022-03-16 08:37:55 UTC
On my Intel Core i5-3340M, there is no avx2, and thus this inline fails:

/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"zimg\" -DPACKAGE_TARNAME=\"zimg\" -DPACKAGE_VERSION=\"3.0.3\" -DPACKAGE_STRING=\"zimg\ 3.0.3\" -DPACKAGE_BUGREPORT=\"https://github.com/sekrit-twc/zimg
/pulls\" -DPACKAGE_URL=\"https://github.com/sekrit-twc/zimg\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_
HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DZIMG_X86=1 -DZIMG_X86_AVX512=1 -I. -I/var/tmp/portage/media-libs/zimg-3.0.3/work/zimg-release-3.0.3   -I/var/tmp/portage/media-libs/zimg-3.
0.3/work/zimg-release-3.0.3/src/zimg  -std=c++14 -O2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DNDEBUG -mavx2 -mf16c -mfma -mtune=haswell -fvisibility=hidden -O2 -pipe -fomit-frame-pointer -march=ivybridge -mmmx
 -mpopcnt -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mno-avx2 -mno-sse4a -mno-fma4 -mno-xop -mno-fma -mno-avx512f -mno-bmi -mno-bmi2 -maes -mpclmul -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -mno-avx512er -mno-avx51
2pf -mno-avx512vbmi -mno-avx512ifma -mno-avx5124vnniw -mno-avx5124fmaps -mno-avx512vpopcntdq -mno-avx512vbmi2 -mno-gfni -mno-vpclmulqdq -mno-avx512vnni -mno-avx512bitalg -mno-avx512bf16 -mno-avx512vp2intersect -mno-3dnow -mno-adx -mno-abm
 -mno-cldemote -mno-clflushopt -mno-clwb -mno-clzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mno-lzcnt -mno-movbe -mno-movdir64b -mno-movdiri -mno-mwaitx -mno-pconfig -mno-pku -mno-prefetchwt1 -mno-prfchw -mn
o-ptwrite -mno-rdpid -mrdrnd -mno-rdseed -mno-rtm -mno-serialize -mno-sgx -mno-sha -mno-shstk -mno-tbm -mno-tsxldtrk -mno-vaes -mno-waitpkg -mno-wbnoinvd -mxsave -mno-xsavec -mxsaveopt -mno-xsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16
 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=ivybridge -c -o src/zimg/colorspace/x86/libavx2_la-operation_impl_avx2.lo `test -f 'src/zimg
/colorspace/x86/operation_impl_avx2.cpp' || echo '/var/tmp/portage/media-libs/zimg-3.0.3/work/zimg-release-3.0.3/'`src/zimg/colorspace/x86/operation_impl_avx2.cpp                                                                            
libtool: compile:  x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"zimg\" -DPACKAGE_TARNAME=\"zimg\" -DPACKAGE_VERSION=\"3.0.3\" "-DPACKAGE_STRING=\"zimg 3.0.3\"" -DPACKAGE_BUGREPORT=\"https://github.com/sekrit-twc/zimg/pulls\" -DPACKAGE_URL=\"h
ttps://github.com/sekrit-twc/zimg\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1
 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DZIMG_X86=1 -DZIMG_X86_AVX512=1 -I. -I/var/tmp/portage/media-libs/zimg-3.0.3/work/zimg-release-3.0.3 -I/var/tmp/portage/media-libs/zimg-3.0.3/work/zimg-release-3.0.3/
src/zimg -std=c++14 -O2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DNDEBUG -mavx2 -mf16c -mfma -mtune=haswell -fvisibility=hidden -O2 -pipe -fomit-frame-pointer -march=ivybridge -mmmx -mpopcnt -msse -msse2 -msse3
 -mssse3 -msse4.1 -msse4.2 -mavx -mno-avx2 -mno-sse4a -mno-fma4 -mno-xop -mno-fma -mno-avx512f -mno-bmi -mno-bmi2 -maes -mpclmul -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -mno-avx512er -mno-avx512pf -mno-avx512vbmi -mno-avx5
12ifma -mno-avx5124vnniw -mno-avx5124fmaps -mno-avx512vpopcntdq -mno-avx512vbmi2 -mno-gfni -mno-vpclmulqdq -mno-avx512vnni -mno-avx512bitalg -mno-avx512bf16 -mno-avx512vp2intersect -mno-3dnow -mno-adx -mno-abm -mno-cldemote -mno-clflushop
t -mno-clwb -mno-clzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mno-lzcnt -mno-movbe -mno-movdir64b -mno-movdiri -mno-mwaitx -mno-pconfig -mno-pku -mno-prefetchwt1 -mno-prfchw -mno-ptwrite -mno-rdpid -mrdrnd 
-mno-rdseed -mno-rtm -mno-serialize -mno-sgx -mno-sha -mno-shstk -mno-tbm -mno-tsxldtrk -mno-vaes -mno-waitpkg -mno-wbnoinvd -mxsave -mno-xsavec -mxsaveopt -mno-xsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-
kl -mno-widekl -mno-avxvnni --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=ivybridge -c /var/tmp/portage/media-libs/zimg-3.0.3/work/zimg-release-3.0.3/src/zimg/colorspace/x86/operation_impl_avx2.c
pp  -fPIC -DPIC -o src/zimg/colorspace/x86/.libs/libavx2_la-operation_impl_avx2.o                                                                                                                                                             
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/immintrin.h:47,                                                                                                                                                         
                 from /var/tmp/portage/media-libs/zimg-3.0.3/work/zimg-release-3.0.3/src/zimg/colorspace/x86/operation_impl_avx2.cpp:6:                                                                                                       
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/avx2intrin.h: In function ‘void zimg::colorspace::{anonymous}::to_gamma_lut_filter_line(const float*, const float*, float*, unsigned int, unsigned int)’:                                     
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/avx2intrin.h:1382:1: error: inlining failed in call to ‘always_inline’ ‘__m256 _mm256_i32gather_ps(const float*, __m256i, int)’: target specific option mismatch                              
 1382 | _mm256_i32gather_ps (float const *__base, __m256i __index, const int __scale)                                                                                                                                                         
      | ^~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                   
/var/tmp/portage/media-libs/zimg-3.0.3/work/zimg-release-3.0.3/src/zimg/colorspace/x86/operation_impl_avx2.cpp:73:40: note: called from here                                                                                                  
   73 |                 x = _mm256_i32gather_ps(lut, xi, sizeof(float));                                                                                                                                                                      
      |                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                       
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/immintrin.h:47,                                                                                                                                                         
                 from /var/tmp/portage/media-libs/zimg-3.0.3/work/zimg-release-3.0.3/src/zimg/colorspace/x86/operation_impl_avx2.cpp:6:                                                                                                       
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/avx2intrin.h:503:1: error: inlining failed in call to ‘always_inline’ ‘__m256i _mm256_cvtepu16_epi32(__m128i)’: target specific option mismatch                                               
  503 | _mm256_cvtepu16_epi32 (__m128i __X)                                                                                                                                                                                                   
      | ^~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                             

Reproducible: Always
Comment 1 Xavier Miller 2022-03-16 08:38:06 UTC
# emerge --info '=media-libs/zimg-3.0.3::gentoo'
Portage 3.0.30 (python 3.9.10-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.2.1, glibc-2.34-r10, 5.16.14-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.16.14-gentoo-x86_64-Intel-R-_Core-TM-_i5-3340M_CPU_@_2.70GHz-with-glibc2.34
KiB Mem:    16280780 total,   6442912 free
KiB Swap:   16777056 total,  16777056 free
Timestamp of repository gentoo: Wed, 16 Mar 2022 04:19:34 +0000
Head commit of repository gentoo: e1396dd8bbe3cf8f0fe9ec486307a7a341ee1683

Head commit of repository audio-overlay: 8c216b80bfd9c87d2e02bc84d400d724a5cb30ff

Head commit of repository local: 046b5f6bac2919338754c17c7e4dd8c47286a956

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
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.1::gentoo
dev-lang/python:           2.7.18_p14::gentoo, 3.9.10_p1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/cmake:            3.22.3::gentoo
dev-util/meson:            0.61.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::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-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo
    location: /var/portage/repos/gentoo
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/sync/gentoo.git
    priority: -1000

audio-overlay
    location: /var/portage/repos/audio-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-audio/audio-overlay.git
    masters: gentoo

local
    location: /usr/local/portage
    sync-type: git
    sync-uri: /data/nas/xavier/git_repos/local_overlay.git/
    masters: gentoo

crossdev
    location: /data/nas/xavier/portage/e5430/var/db/repos/crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE freedist as-is"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=ivybridge -mmmx -mpopcnt -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mno-avx2 -mno-sse4a -mno-fma4 -mno-xop -mno-fma -mno-avx512f -mno-bmi -mno-bmi2 -maes -mpclmul -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -mno-avx512er -mno-avx512pf -mno-avx512vbmi -mno-avx512ifma -mno-avx5124vnniw -mno-avx5124fmaps -mno-avx512vpopcntdq -mno-avx512vbmi2 -mno-gfni -mno-vpclmulqdq -mno-avx512vnni -mno-avx512bitalg -mno-avx512bf16 -mno-avx512vp2intersect -mno-3dnow -mno-adx -mno-abm -mno-cldemote -mno-clflushopt -mno-clwb -mno-clzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mno-lzcnt -mno-movbe -mno-movdir64b -mno-movdiri -mno-mwaitx -mno-pconfig -mno-pku -mno-prefetchwt1 -mno-prfchw -mno-ptwrite -mno-rdpid -mrdrnd -mno-rdseed -mno-rtm -mno-serialize -mno-sgx -mno-sha -mno-shstk -mno-tbm -mno-tsxldtrk -mno-vaes -mno-waitpkg -mno-wbnoinvd -mxsave -mno-xsavec -mxsaveopt -mno-xsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=ivybridge"
CHOST="x86_64-pc-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 /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=ivybridge -mmmx -mpopcnt -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mno-avx2 -mno-sse4a -mno-fma4 -mno-xop -mno-fma -mno-avx512f -mno-bmi -mno-bmi2 -maes -mpclmul -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -mno-avx512er -mno-avx512pf -mno-avx512vbmi -mno-avx512ifma -mno-avx5124vnniw -mno-avx5124fmaps -mno-avx512vpopcntdq -mno-avx512vbmi2 -mno-gfni -mno-vpclmulqdq -mno-avx512vnni -mno-avx512bitalg -mno-avx512bf16 -mno-avx512vp2intersect -mno-3dnow -mno-adx -mno-abm -mno-cldemote -mno-clflushopt -mno-clwb -mno-clzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mno-lzcnt -mno-movbe -mno-movdir64b -mno-movdiri -mno-mwaitx -mno-pconfig -mno-pku -mno-prefetchwt1 -mno-prfchw -mno-ptwrite -mno-rdpid -mrdrnd -mno-rdseed -mno-rtm -mno-serialize -mno-sgx -mno-sha -mno-shstk -mno-tbm -mno-tsxldtrk -mno-vaes -mno-waitpkg -mno-wbnoinvd -mxsave -mno-xsavec -mxsaveopt -mno-xsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=ivybridge"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox 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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="fr fr_FR fr_BE nl nl_BE nl_NL"
MAKEOPTS="-j7 -l5"
PKGDIR="/var/portage/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"
SHELL="/bin/bash"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 apng branding bzip2 cairo cdda cli crossdev crypt css cups dbus display-manager dlna dri dssi dts dvd elogind exif fftw flac fluidsynth gif glamor gnome-keyring gpm gtk gudev gui iconv imagemagick joystick jpeg ladspa lash lcms libcanberra libglvnd libinput libnotify libsamplerate libtirpc mad midi mmx mng mp3 mpeg ncurses nls nptl ogg opengl openmp opus osc pam pango pcre pdf png policykit powermanagement printsupport python3 qt5 readline rubberband sddm sdl seccomp sna sndfile snmp spell split-usr sqlite sse sse2 ssl startup-notification svg symlink system-bootstrap system-llvm tiff timidity truetype udev udisks unicode upnp upower usb vaapi vdpau vorbis wmf x264 xattr xcb xinerama xkb xml xosd xscreensaver xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel usb-audio virmidi" 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_X86="aes avx f16c mmx mmxext pclmul popcnt rdrand 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="keyboard mouse libinput joystick" KERNEL="linux" L10N="fr nl en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86 AMDGPU" 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_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm i386" QEMU_USER_TARGETS="arm i386" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i915" 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, 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 2 Xavier Miller 2022-03-16 08:39:04 UTC
# cat /proc/cpuinfo                                                                                                                                                                                                                   
processor       : 0                                                                                                                                                                                                                           
vendor_id       : GenuineIntel                                                                                                                                                                                                                
cpu family      : 6                                                                                                                                                                                                                           
model           : 58                                                                                                                                                                                                                          
model name      : Intel(R) Core(TM) i5-3340M CPU @ 2.70GHz                                                                                                                                                                                    
stepping        : 9                                                                                                                                                                                                                           
microcode       : 0x15                                                                                                                                                                                                                        
cpu MHz         : 1200.000                                                                                                                                                                                                                    
cache size      : 3072 KB                                                                                                                                                                                                                     
physical id     : 0                                                                                                                                                                                                                           
siblings        : 4                                                                                                                                                                                                                           
core id         : 0                                                                                                                                                                                                                           
cpu cores       : 2                                                                                                                                                                                                                           
apicid          : 0                                                                                                                                                                                                                           
initial apicid  : 0                                                                                                                                                                                                                           
fpu             : yes                                                                                                                                                                                                                         
fpu_exception   : yes                                                                                                                                                                                                                         
cpuid level     : 13                                                                                                                                                                                                                          
wp              : yes                                                                                                                                                                                                                         
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid ap
erfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase sme
p erms xsaveopt dtherm ida arat pln pts                                                                                                                                                                                                       
vmx flags       : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest                                                                                                                 
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds                                                                                                                                    
bogomips        : 5382.16                                                                                                                                                                                                                     
clflush size    : 64                                                                                                                                                                                                                          
cache_alignment : 64                                                                                                                                                                                                                          
address sizes   : 36 bits physical, 48 bits virtual                                                                                                                                                                                           
power management:
Comment 3 Xavier Miller 2022-03-16 08:42:32 UTC
Created attachment 767162 [details]
build log
Comment 4 Xavier Miller 2022-03-16 08:44:59 UTC
Created attachment 767163 [details]
config.log
Comment 5 Xavier Miller 2022-03-16 08:47:38 UTC
I see -mavx2 has been added at the compile lines, which is not desired
Comment 6 Xavier Miller 2022-03-16 14:34:10 UTC
This ebuild needs flag-o-matic in order to build libraries for all features. Those features are tested and eventually executed at run-time.
Comment 7 Xavier Miller 2022-03-16 14:35:44 UTC
Created attachment 767179 [details, diff]
patch for the ebuild

Added flag-o-matic to remove some CFLAGS (-mno*)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-17 02:32:11 UTC
Yeah, it does seem to have runtime detection, so I guess that's good enough.
Comment 9 Xavier Miller 2022-03-17 08:05:32 UTC
Created attachment 767223 [details, diff]
patch for the ebuild -v2

this patch is based on all flags enabled in the makefiles
Comment 10 Xavier Miller 2022-03-17 08:41:57 UTC
Created attachment 767248 [details, diff]
patch for the ebuild -v2a

oops...
Comment 11 Naohiro Aota gentoo-dev 2023-02-08 09:53:34 UTC
I have a similar issue with "-mno-avx512*" and with the above patch, I could properly compile the package. I modified the filter-flags line to "-mno-avx*" to catch all the avx flags.