Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 733556

Summary: media-video/ffmpeg-4.2.3: fails to build on i486 (src/libswscale/x86/rgb2rgb_template.c:1665:9: error: ‘asm’ operand has impossible constraints)
Product: Gentoo Linux Reporter: vanilkovy.puding
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: CONFIRMED ---    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=901099
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/tmp/portage/media-video/ffmpeg-4.2.3/work/ffmpeg-4.2.3-abi_x86_32.x86/ffbuild/config.mak
/var/tmp/portage/media-video/ffmpeg-4.2.3/temp/build.log

Description vanilkovy.puding 2020-07-22 18:14:34 UTC
Created attachment 650212 [details]
/var/tmp/portage/media-video/ffmpeg-4.2.3/work/ffmpeg-4.2.3-abi_x86_32.x86/ffbuild/config.mak

Failed to emerge media-video/ffmpeg-4.2.3
Arch x86, CPU K6-2.
This is an update from the older version. I dont recall any issues with 4.2.2.

Calculating dependencies... done!
[ebuild     U  ] media-video/ffmpeg-4.2.3:0/56.58.58::gentoo [4.2.2:0/56.58.58::gentoo] USE="X alsa bzip2 encode gpl iconv mp3 network opengl postproc pulseaudio sdl svg threads truetype vorbis x264 xvid zlib -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection (-cuda) -dav1d -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libaom -libaribb24 -libass -libcaca -libdrm -libilbc -libressl -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -openal -opencl -openh264 -openssl -opus -oss -pic -rubberband -samba -snappy -speex -srt -ssh -static-libs -test -theora -twolame -v4l -vaapi -vdpau -vidstab -vpx -wavpack -webp -x265 -zeromq -zimg -zvbi (-altivec%)" CPU_FLAGS_X86="3dnow mmx -3dnowext -aes -avx -avx2 -fma3 -fma4 -mmxext -sse -sse2 -sse3 -sse4_1 -sse4_2 -ssse3 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" VIDEO_CARDS="(-nvidia)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB


p5a ~ # cat /tmp/emerge--info.txt
Portage 2.3.99 (python 3.7.8-final-0, default/linux/x86/17.0/desktop, gcc-9.3.0, glibc-2.30-r8, 5.4.38-gentoo i586)
=================================================================
System uname: Linux-5.4.38-gentoo-i586-AMD-K6-tm-_3D_processor-with-gentoo-2.6
KiB Mem:      250432 total,    120376 free
KiB Swap:     208808 total,    201128 free
Timestamp of repository gentoo: Fri, 17 Jul 2020 00:45:01 +0000
Head commit of repository gentoo: 91bc690ff1e9a2d1dedc60e033e67b7e47bb82c5
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.8-r1::gentoo, 3.8.3-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::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-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop"
CHOST="i486-pc-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/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="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="-Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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"
FFLAGS="-Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="sk_SK.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif fbcon flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xattr xcb xml xv xvid zlib" ABI_X86="32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="3dnow mmx" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


############################
Build fails with:

In file included from src/libswscale/x86/rgb2rgb.c:102:
src/libswscale/x86/rgb2rgb_template.c: In function ‘rgb24toyv12_mmx’:
src/libswscale/x86/rgb2rgb_template.c:1665:9: error: ‘asm’ operand has impossible constraints
 1665 |         __asm__ volatile(
      |         ^~~~~~~

When I execute the gcc command in a shell i get the same result.
p5a /var/tmp/portage/media-video/ffmpeg-4.2.3/work/ffmpeg-4.2.3-abi_x86_32.x86 # i486-pc-linux-gnu-gcc -I. -Isrc/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_swscale -Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop   -march=k6-2 -std=c11 -fPIC -pthread  -I/usr/include/freetype2 -D_REENTRANT -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gdk-pixbuf-2.0 -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng16         -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -Wno-char-subscripts -Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized -I/usr/include/SDL2 -D_REENTRANT  -MMD -MF libswscale/x86/rgb2rgb.d -MT libswscale/x86/rgb2rgb.o -c -o libswscale/x86/rgb2rgb.o src/libswscale/x86/rgb2rgb.c
In file included from src/libswscale/x86/rgb2rgb.c:102:
src/libswscale/x86/rgb2rgb_template.c: In function ‘rgb24toyv12_mmx’:
src/libswscale/x86/rgb2rgb_template.c:1665:9: error: ‘asm’ operand has impossible constraints
 1665 |         __asm__ volatile(
      |         ^~~~~~~

#### 
Even command without extra CFLAGS returns the same error.

p5a /var/tmp/portage/media-video/ffmpeg-4.2.3/work/ffmpeg-4.2.3-abi_x86_32.x86 # i486-pc-linux-gnu-gcc -I. -Isrc/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_swscale -Os -march=k6-2 -std=c11 -pthread  -I/usr/include/freetype2 -D_REENTRANT -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gdk-pixbuf-2.0 -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng16 -pipe -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Wall -fdiagnostics-color=auto -Wno-maybe-uninitialized -I/usr/include/SDL2 -D_REENTRANT -MMD -MF libswscale/x86/rgb2rgb.d -MT libswscale/x86/rgb2rgb.o -c -o libswscale/x86/rgb2rgb.o src/libswscale/x86/rgb2rgb.c
In file included from src/libswscale/x86/rgb2rgb.c:102:
src/libswscale/x86/rgb2rgb_template.c: In function ‘rgb24toyv12_mmx’:
src/libswscale/x86/rgb2rgb_template.c:1665:9: error: ‘asm’ operand has impossible constraints
 1665 |         __asm__ volatile(
      |         ^~~~~~~
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-22 18:16:53 UTC
Can you attach the full build.log too? 

Interestingly, I built this fine on x86 before, but it may have been with a different set of CPU_FLAGS_X86 or something like that.
Comment 2 vanilkovy.puding 2020-07-23 14:45:14 UTC
Hi,
In the meantime i completed this command emerge -eva @world and all almost 600 packages on my system rebuild just fine except for that ffmpeg. I did that just to confirm there is nothing wrong with gcc, libs, dependencies and so on.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-23 14:47:13 UTC
(In reply to vanilkovy.puding from comment #2)
> Hi,
> In the meantime i completed this command emerge -eva @world and all almost
> 600 packages on my system rebuild just fine except for that ffmpeg. I did
> that just to confirm there is nothing wrong with gcc, libs, dependencies and
> so on.

Okay, thanks. Can you attach the full build.log now too?
Comment 4 vanilkovy.puding 2020-07-23 14:55:18 UTC
Created attachment 650280 [details]
/var/tmp/portage/media-video/ffmpeg-4.2.3/temp/build.log

attached the build.log. Had to compress it as it is rather large.
Comment 5 vanilkovy.puding 2020-07-23 17:44:56 UTC
I now tried to compile ffmpeg by hand. With the build options the same as emerge uses it compiles just fine. So it doesn't seem like a bug introduced by ffmpeg developers.

cd /var/tmp/portage/
df -h .
mkdir ffmpeg
cd ffmpeg/
git clone -b n4.2.3 https://git.ffmpeg.org/ffmpeg.git
cd ffmpeg/

./configure --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --docdir=/usr/share/doc/ffmpeg-4.2.3/html --mandir=/usr/share/man --enable-shared --cc=i486-pc-linux-gnu-gcc --cxx=i486-pc-linux-gnu-g++ --ar=i486-pc-linux-gnu-ar --optflags="-Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop" --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libtls --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --enable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libdav1d --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libtesseract --disable-lv2 --enable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --enable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnowext --disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-mmxext --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=k6-2 --disable-doc --disable-htmlpages --enable-manpages

PATH="/var/tmp/portage/ffmpeg/ffmpeg/bin:$PATH" make
echo $? #prints 0
./ffmpeg -version #prints ffmpeg version n4.2.3 Copyright (c) 2000-2020 ...
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-01 22:32:29 UTC
i486-pc-linux-gnu-gcc -I. -Isrc/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_swscale -Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop   -march=k6-2 -std=c11 -fPIC -pthread  -I/usr/include/freetype2 -D_REENTRANT -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gdk-pixbuf-2.0 -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng16         -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -Wno-char-subscripts -Os -march=k6-2 -mmmx -m3dnow -fomit-frame-pointer -pipe -mno-aes -mno-avx -mno-f16c -mno-fma -mno-fma4 -mno-pclmul -mno-popcnt -mno-sse -mno-sse2 -mno-sse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-ssse3 -mno-xop -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized -I/usr/include/SDL2 -D_REENTRANT  -MMD -MF libswscale/x86/rgb2rgb.d -MT libswscale/x86/rgb2rgb.o -c -o libswscale/x86/rgb2rgb.o src/libswscale/x86/rgb2rgb.c
In file included from src/libswscale/x86/rgb2rgb.c:102:
src/libswscale/x86/rgb2rgb_template.c: In function ‘rgb24toyv12_mmx’:
src/libswscale/x86/rgb2rgb_template.c:1665:9: error: ‘asm’ operand has impossible constraints
 1665 |         __asm__ volatile(
      |         ^~~~~~~
make: *** [/var/tmp/portage/media-video/ffmpeg-4.2.3/work/ffmpeg-4.2.3/ffbuild/common.mak:59: libswscale/x86/rgb2rgb.o] Error 1
make: *** Waiting for unfinished jobs....