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 packages | Assignee: | 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
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. 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. (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? 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.
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 ... 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.... |