Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922333 - media-video/ffmpeg-4.4.4-r8 fails with useflag glslang
Summary: media-video/ffmpeg-4.4.4-r8 fails with useflag glslang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-17 20:34 UTC by Benjamin Schulz
Modified: 2025-03-11 09:04 UTC (History)
4 users (show)

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


Attachments
glslang-1.3.275-ffmpeg6.patch (glslang-1.3.275-ffmpeg6.patch,956 bytes, patch)
2024-01-18 19:12 UTC, Ionen Wolkens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schulz 2024-01-17 20:34:29 UTC
Unpacking source...
 * Verifying ffmpeg-4.4.4.tar.xz ...
INFO     File /var/tmp/portage/media-video/ffmpeg-4.4.4-r8/distdir/ffmpeg-4.4.4.tar.xz verified successfully against the signature in /var/tmp/portage/media-video/ffmpeg-4.4.4-r8/distdir/ffmpeg-4.4.4.tar.xz.asc:                      
INFO     - status: OpenPGPSignatureStatus.GOOD                                                                                                                                                                                           
INFO     - valid: True, trusted: True                                                                                                                                                                                                    
INFO     - primary key: FCF986EA15E6E293A5644F10B4322F04D67658D8                                                                                                                                                                         
INFO     - subkey: FCF986EA15E6E293A5644F10B4322F04D67658D8                                                                                                                                                                              
INFO     - timestamp: 2023-04-12 18:55:01 UTC                                                                                                                                                                                            
>>> Unpacking ffmpeg-4.4.4.tar.xz to /var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work
>>> Unpacking ffmpeg-4.4.4-texinfo.patch.xz to /var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work
>>> Unpacking ffmpeg-4.4.4.tar.xz.asc to /var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work
unpack ffmpeg-4.4.4.tar.xz.asc: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work
>>> Preparing source in /var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work/ffmpeg-4.4.4 ...
 * Applying vmaf-models-default-path.patch ...
patching file libavfilter/vf_libvmaf.c
Hunk #1 succeeded at 72 with fuzz 2.                                                                                                                                                                                              [ ok ]
 * Applying chromium-r1.patch ...                                                                                                                                                                                                 [ ok ]
 * Applying ffmpeg-5.0-backport-ranlib-build-fix.patch ...                                                                                                                                                                        [ ok ]
 * Applying ffmpeg-4.4.3-clang-14-ff_seek_frame_binary-crash.patch ...                                                                                                                                                            [ ok ]
 * Applying ffmpeg-4.4.3-get_cabac_inline_x86-32-bit.patch ...                                                                                                                                                                    [ ok ]
 * Applying ffmpeg-4.4.4-wint-conversion-vulkan.patch ...                                                                                                                                                                         [ ok ]
 * Applying ffmpeg-4.4.4-fix-build-svt-av1-1.5.0.patch ...                                                                                                                                                                        [ ok ]
 * Applying ffmpeg-5.1.3-binutils-2.41.patch ...                                                                                                                                                                                  [ ok ]
 * Applying ffmpeg-4.4.4-texinfo.patch ...
patching file doc/t2h.pm
patching file doc/t2h.pm
patching file doc/t2h.pm
patching file doc/bootstrap.min.css                                                                                                                                                                                               [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work/ffmpeg-4.4.4 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
/var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work/ffmpeg-4.4.4/configure --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --docdir=/usr/share/doc/ffmpeg-4.4.4-r8/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse --cxx=x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags=-march=native -O3 -pipe --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --enable-version3 --enable-version3 --enable-version3 --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --enable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-libxml2 --enable-lzma --enable-network --enable-opencl --enable-openssl --enable-postproc --enable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi --enable-vdpau --enable-vulkan --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --enable-libcdio --enable-libiec61883 --enable-libdc1394 --enable-libcaca --enable-openal --enable-opengl --enable-libv4l2 --enable-libpulse --enable-libdrm --enable-libjack --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libcodec2 --enable-libdav1d --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libgme --enable-libgsm --enable-libaribb24 --disable-mmal --enable-libmodplug --enable-libopus --disable-libmfx --enable-libilbc --enable-librtmp --enable-libssh --enable-libspeex --enable-libsrt --enable-librsvg --enable-ffnvcodec --enable-libvorbis --enable-libvpx --enable-libzvbi --disable-appkit --enable-libbs2b --disable-chromaprint --disable-cuda-llvm --enable-libflite --enable-frei0r --enable-libfribidi --enable-fontconfig --enable-libglslang --enable-ladspa --enable-libass --enable-libtesseract --enable-lv2 --enable-libfreetype --enable-libvidstab --disable-libvmaf --enable-librubberband --enable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --disable-amf --enable-libvo-amrwbenc --enable-libkvazaar --enable-libaom --enable-libmp3lame --enable-libopenh264 --enable-librav1e --enable-libsnappy --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-gnutls --disable-librav1e --disable-libzmq --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-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --enable-pic --disable-asm --cpu=host --disable-doc --disable-htmlpages --disable-manpages
ERROR: libglslang not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
 * ERROR: media-video/ffmpeg-4.4.4-r8::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2644:  Called multilib-minimal_src_configure
 *   environment, line 1862:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2112:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1817:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1815:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  900:  Called multilib-minimal_abi_src_configure
 *   environment, line 1856:  Called multilib_src_configure
 *   environment, line 2425:  Called die
 * The specific snippet of code:
 *       "${@}" || die;
 * 
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-4.4.4-r8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-4.4.4-r8::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-4.4.4-r8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-4.4.4-r8/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work/ffmpeg-4.4.4-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-video/ffmpeg-4.4.4-r8/work/ffmpeg-4.4.4'
Comment 1 Benjamin Schulz 2024-01-17 20:35:55 UTC
# emerge --info
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r9, 6.1.67-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.67-gentoo-x86_64-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.38
KiB Mem:    32783524 total,  25378336 free
KiB Swap:   31249404 total,  31249404 free
Timestamp of repository gentoo: Wed, 17 Jan 2024 20:00:01 +0000
Head commit of repository gentoo: 16566ac69dfc6d2f8cb9b25be9b5ac3b6f98db0f
Timestamp of repository escpr2: Fri, 08 Dec 2023 17:18:01 +0000
Head commit of repository escpr2: 8d84a976f5df90476c9fa42f9497ad0000a0d82f

Timestamp of repository guru: Wed, 17 Jan 2024 17:18:54 +0000
Head commit of repository guru: 349f1061037e1e250a0fbc9dcf9c7ddc0b6366df

Timestamp of repository pixlra: Sun, 14 Jan 2024 19:33:38 +0000
Head commit of repository pixlra: 5135c35338618b0a326909b5275f39330803f7b0

Timestamp of repository sage-on-gentoo: Mon, 15 Jan 2024 16:18:23 +0000
Head commit of repository sage-on-gentoo: 705f848fd0b515765a2b6e4287f17cdcc83b44a1

Timestamp of repository science: Mon, 15 Jan 2024 16:18:33 +0000
Head commit of repository science: fd2d873ed9e5c0ddefc82317fa95f6c7385e9604

Timestamp of repository ssnb: Mon, 15 Jan 2024 16:18:26 +0000
Head commit of repository ssnb: 15bbb911dc2d0c768edb0255ef48ef1d877b2d4f

Timestamp of repository steam-overlay: Mon, 15 Jan 2024 16:18:24 +0000
Head commit of repository steam-overlay: e2c585d13cfab05881ff77b0254dcb40ef2a1d8c

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230825::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

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

escpr2
    location: /var/db/repos/escpr2
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/escpr2.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

pixlra
    location: /var/db/repos/pixlra
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pixlra.git
    masters: gentoo
    volatile: False

sage-on-gentoo
    location: /var/db/repos/sage-on-gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/sage-on-gentoo.git
    masters: gentoo
    volatile: False

science
    location: /var/db/repos/science
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/science.git
    masters: gentoo
    volatile: False

ssnb
    location: /var/db/repos/ssnb
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ssnb.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=native -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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 -O3 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.iso885915@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de en"
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"
SHELL="/bin/bash"
USE="7zip R X a52 aac acl acpi activities addc addressbook admin ads alsa amd64 amr amrenc appstream aprs aptx archive asm aspell assistant avif base bittorrent bluetooth bluray boost branding broadway bs2b bzip2 cairo calendar caps cdda cddb cdio cdr cdrom chromium cinnamon clamav cli clippy codec2 color-management colord contrib contribcvv contribdnn contribfreetype contribhdf contribxfeatures2d cpudetection crypt cryptsetup cuda cups cvs d3d11 dbus designer dhcp-tools dhcpcd dia discover distributed djvu download dri drm dropbox dts dv dvb dvd dvdr dvi eds education efiemu eigen elogind encode epub equalizer escprlib evdev examples excel exif extra faad fbgemm fdk ffmpeg fftw fits flac flite fltk font-styles fontconfig fortran fpx frei0r fribidi ftp fuse gdal gdbm gdbui geolocation gflags gif gimp git gloo gme gmp gnome gnome-keyring gnome-shell gnumeric gnuplot gnutls go goffice googledrive gpg gphoto2 gps grammar graphics graphite grub gsl gsm gstreamer gtk gtk3 gtk4 gts gui handbook hardcoded-tables hdf5 hex highlight html htmlreport http hunspell iconv icu iec61883 ieee1394 image image-backend imagemagick imagequant innodb-lz4 innodb-lzo ipv6 jack java javascript jit jpeg jpeg2k jpegxl json julia jupyter kaccounts kafka kate kbd kbindicator kcm kde kdesu kerberos keyring kpathsea kvazaar kwallet ladspa lapack latency-timing latex lcms ldac ldap libaom libaribb24 libcaca libdrm libilbc libnotify librtmp libsoxr libtesseract libtirpc libuv libv4l libxml2 linguist llvm lm-sensors logrotate lrz lspclient lto lv2 lzma lzo mad map marble markdown mate math mathml matio mediaplayer mercurial metapost mng mobi modplug modula2 mongodb mount mp3 mp4 mpeg multilib multimedia multitarget mysql nautilus ncurses netapi netcdf netlink network networkmanager nftables nls nnpack notebook nsight ntfs numpy nvcontrol nvdec nvenc nvidia objc objc++ objc-gc ogg okular openal opencl opencv opencvapps openexr opengl openh264 openmp openssl opus origin osmesa oss oxygen pam pango panorama pcap pcre pdf pdfimport pdfium perl pgplot phonon pim pipewire plasma png policykit positioning postgres postscript ppds ppp printsupport pstricks publishers pulseaudio pyqt6 python qalculate qdbus qml qnnpack qt5 qt6 qtaudio qtcamera qtdiag qtegrity qthelp qtmedia qtmultimedia qtplugininfo quick rar rav1e raw readline redland reviewboard rss rtf rubberband rust rust-analyzer rust-src rustfmt rustls samba sanitizer sasl scanner science scripttools sdk sdl sdl-image seccomp semantic-desktop sensord sensors serial serialport server session sha2 shapefile share sieve sim skins smartcard smp snappy sndfile sndio sound source-highlight spam-report spamassassin speech speex spell split-usr sql sqlite srt ssh ssl startup-notification subversion svg svg2 svt-av1 systemtap szip t1lib tcl telephony tensorpipe terminal tesseract test-rust tex4ht texi2html theora thesaurus threads tiff tk tools tor-hardening tpm truetype twolame udev udisks uefi ufw unicode upower usb utils v4l v4lutils vaapi vcd vdpau verify-file verify-sig vidstab vis-profiler vorbis vpx vtv vulkan wav wavpack webchannel webdav webengine webkit webp websockets widgets wifi winbind wineappdb wireless wma wmf wordperfect wxwidgets x11extras x264 x265 xattr xcb xft xine xinerama xkb xla xml xmlpatterns xmlwriter xmp xmss xorg xpm xps xrandr xray xrender xs xscreensaver xv xvid xxhash yassl zeromq zimg zlib zstd zvbi" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia d3d12" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Benjamin Schulz 2024-01-17 20:37:15 UTC
[ebuild   R    ] dev-util/glslang-1.3.268-r2:0/13::gentoo  ABI_X86="32 (64) (-x32)" 0 KiB


so glslang is there, just ffmpeg can not find it during configure phase.
Comment 3 Duncan 2024-01-18 06:08:20 UTC
ffmpeg-6.6.1-r1 is also affected... and wants a rebuild with --newuse due to the recent arm-cpu-flags additions.  I may be filing an appropriate bug if there's not a fix by the time I troubleshoot a bit, but meanwhile...

Here, today's --update --deep @world rebuild updated several related packages, all version-synced.  I /assumed/ it was related but now that I see your reported version is the one I replaced, likely not.  Still, it's related information that may be apropos.

All new version 1.3.275, replaced 1.3.268 (-r2 for glslang):
spirv-headers
spirv-tools
vulkan-headers
vulkan-loader
glslang

Meanwhile, I had /thought/ I saw glslang added to app-alternatives or some such but don't see it now and don't see an eselect for it either, so I have to figure out what I'm partially remembering in that regard as I'm guessing that's the culprit.
Comment 4 Duncan 2024-01-18 08:17:19 UTC
(In reply to Duncan from comment #3)
> ffmpeg-6.6.1-r1 is also affected...

> Here, today's --update --deep @world rebuild updated several related
> packages, all version-synced.  I /assumed/ it was related but now that I see
> your reported version is the one I replaced, likely not.  Still, it's
> related information that may be apropos.
> 
> All new version 1.3.275, replaced 1.3.268 (-r2 for glslang):
> spirv-headers
> spirv-tools
> vulkan-headers
> vulkan-loader
> glslang

Reverting all those to the 1.3.268 (-r2 for glslang) versions *DOES* unbreak the 6.6.1-r1 configure here -- it remerges just fine now!  Not sure how that relates to your 4.4 build against your reported 1.3.268, but given the similarity of my error (not finding glslang right after that hairy configure line), I'd definitely point further investigations in that direction.  (If you somehow got mixed versions of those packages maybe that's it?)
 
> Meanwhile, I had /thought/ I saw glslang added to app-alternatives or some
> such but don't see it now and don't see an eselect for it either, so I have
> to figure out what I'm partially remembering in that regard as I'm guessing
> that's the culprit.

Seems what I was partially remembering was that something (maybe ffmpeg since newer versions of it do, but not your 4.4 version I think) was allowing shaderc vs glslang switching for shader-compiling now, which allowed me to unmerge shaderc and just use glslang, since other things (mesa...) I have still hard-depend on glslang.  Unlikely to be related to this at all, tho since the ffmpeg-6.6.1-r1 I was having problems with does have shaderc as an alternative to glslang, if the downgrade of the above hadn't allowed ffmpeg to build here, remerging shaderc and trying with it was going to be my next test.
Comment 5 Ionen Wolkens gentoo-dev 2024-01-18 18:28:31 UTC
ld: cannot find -lOSDependent: No such file or directory
ld: cannot find -lHLSL: No such file or directory
ld: cannot find -lOGLCompiler: No such file or directory
collect2: error: ld returned 1 exit status

All these libraries are not only gone, but also not needed *if* linking with the shared library (the static ones would be still split I think but we don't install them anymore since upstream vulkan changes that makes that harder). So all it needs to link with is libglslang or so. I had a similar problem with retroarch due to HLSL but I just yanked it out to get a successful build.

libplacebo[glslang] used to have similar problem but upstream reworked how they search for static vs shared libraries. I was under the impression ffmpeg was doing it similarly but guess not (haven't looked at build system).

That aside, I tend to wonder if USE=glslang (on libplacebo too), is worth supporting when it has shaderc support which been a lot less fragile (libplacebo also defaults to shaderc, glslang is a fallback). It's hardly worth getting to depclean shaderc, especially on older ffmpeg I guess.
Comment 6 Ionen Wolkens gentoo-dev 2024-01-18 18:36:46 UTC
(In reply to Ionen Wolkens from comment #5)
> especially on older ffmpeg I guess
Or not, I see USE=shaderc was added in >=ffmpeg-5. But for those with recent enough ffmpeg, may want to just USE="shaderc -glslang" as a workaround and it should keep the same functionality without build issues.
Comment 7 Ionen Wolkens gentoo-dev 2024-01-18 19:12:28 UTC
Created attachment 882576 [details, diff]
glslang-1.3.275-ffmpeg6.patch

For a quick-n-dirty patch, hardly tested but this *should* work for ffmpeg-6.1.1 with USE=glslang. Not that it should be added to the ebuild as-is unless conditionally apply with has_version.

This notably may(?) cause issue for older glslang (not sure if it still want *least* HLSL on that one), and most likely will for static linking (not that we use the latter, but that makes it not upstreamable as-is).

Just to give the idea anyway. Similar can be done for ffmpeg4 (yank the libs, albeit need to rebase the patch), but seems to have missing #include issues on top that need looking into.
Comment 8 Larry the Git Cow gentoo-dev 2025-03-11 09:04:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00eddc65d7bd9ecaa9973fd46e544bbbfe5c9479

commit 00eddc65d7bd9ecaa9973fd46e544bbbfe5c9479
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2025-03-07 13:02:23 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2025-03-11 09:03:17 +0000

    media-video/ffmpeg: rewrite live ebuild
    
    This does not list all changes compared to original due to being
    essentially a rewrite (not much sense in looking at the diff
    given almost no lines in common), but to list or explain notable
    ones:
    
    * Cleanup a lot of obsolete logic, like mirror://gentoo snapshots,
      SCM type, <openssl-3 handling, etc...
    
    * Re-arrange IUSE=soc handling to drop the IUSE when FFMPEG_SOC_PATCH
      is empty until maintainer of the patch has time to look at that
      (easier to bump without it and removes the need to mask in 9999)
    
    * Drop some IUSE, ffmpeg has a bit too many often confusing users and,
      while debatable, some are not really useful to control bare at most
      for expert user that could use EXTRA_ECONF if *really* wanted:
    
      - debug (disabled): does very little beside override users' -g*,
        albeit if want nasm debug symbols will need to set X86ASMFLAGS.
    
      - encode (enabled): debated keeping it for disabling encoders
        without their own USE for bit of size/build time reduction despite
        no dependencies, but feel it is not really worth it as it
        complicates the ebuild and can break expectations for a lot
        of revdeps (many likely lack the [encode] that they need) --
        removal also handles bug #770439
    
      - fftools_* (disabled): almost no distros install these, many have
        rather generic names, we were missing installing new ones,
        upstream ffmpeg does not even have an install target for them,
        and a global USE_EXPAND for this feels wasteful (*could* consider
        adding a all-in-one IUSE=tools if some are wanted by users anyway
        but let us try without and see if anyone complains)
    
      - glslang (disabled): redundant with USE=shaderc and is a pain to
        use directly given glslang often breaks things, esp. worse for
        packages with a slow release cycle and old LTS versions like
        ffmpeg (bug #918989, bug #920283, bug #922333, bug #922433) --
        upstream also seems to favour shaderc: "libshaderc and libglslang
        are mutually exclusive, if in doubt, disable libglslang"
        (from ./configure)
    
      - harcoded-tables (disabled): off by default upstream and listed as a
        "experts only" option that seemingly provide little gains for a
        notable size increase, do not believe it is worth exposing as a USE
    
      - iconv (enabled): virtual/libiconv is essentially free anywhere but
        prefix and disabling iconv can be rather broken for a few things
    
      - network (enabled): no dependencies, fairly small, and many revdeps
        likely expect it to be enabled and just missing the [network]
        (tempting to do the same with USE=postproc but it would still be
        conditional through USE=gpl and be more confusing, and then forcing
        GPL also has its own issues)
    
      - oss (auto): does not have a dedicated option and just checks
        linux-headers and is very small, hardly anyone need this
        but that argument could be applied to a *ton* of in/outdevs,
        filters, de/encoders, and such and we would never see the end
        of it
    
      - pic (enabled): makes little sense not to enable nowadays and
        handles bug #903754 + bug #916067 -- USE had the secondary
        effect of disabling x86-32 asm which still doing given it is
        difficult to support either way due to textrels and
        >=binutils-2.41's enforcing (bug #916067, bug #920808), and
        it is possibly broken for older hardware (bug #733556) -- as
        a minor bonus, this should also let LTO work with abi_x86_32
        (bug #654118)
    
      - static-libs (disabled): cannot think of much of a use for this
        esp. given how massive these libraries are and it would still
        require to link with all its shared-only dependencies
    
      - test (irrelevant): tests are not gone but there is no dependencies
        (bc and wget are not needed) nor REQUIRED_USE to handle anymore,
        thus USE is useless
    
      - threads (auto): no real sense in disabling (bug #868471), and
        leaving it auto let ffmpeg figure out the right implementation
        to use which in most cases means default --enable-pthreads
    
      - cpu_flags_* + cpudetection (enabled): tentatively anyway, just
        let ffmpeg do its thing normally -- simplifies the ebuild a lot,
        "should" fix bug #915384, and also handles whatever ebuild
        was doing wrong wrt bug #752507 + bug #778035 (one minor "issue"
        however is that all these flags being removed will leave users
        confused as to what happened, if reading this and worried about
        optimizations.. then no they are *not* disabled, and it is fine
        for other machines thanks to detection at runtime)
    
    * New IUSE:
    
      - openmpt: requested in bug #921313
    
      - npp: requested in bug #695210 -- note have not tested the
        arm64 (sbsa) support, but it should work in theory as cuda
        toolkit does install npp prebuilt arm64 libraries
    
      - rabbitmq: trivial, may as well add support
    
      (meant to add more but others did not fare as well and will leave
      for later rather than during big changes, kept some minor notes in
      the ebuild about things still not supported)
    
    * Renamed IUSE:
    
      - mp3->lame: this is only for encoding but it made it "sound"
        needed for decoding (not the only case like this but this one
        felt too generic), may surprise those that had it actually
        enabled for encoding
    
      - libxml2->xml and libdrm->drm: given newly enabling these by
        default (see below), it's a good occasion to rename to the
        more commonly used USE without causing issues
    
      - libv4l->v4l: to be precise IUSE=v4l was removed and it gained
        the meaning that IUSE=libv4l had -- old v4l is always enabled
        (if linux) due to the hard dependency on linux-headers (see below)
        -- given the old REQUIRED_USE with libv4l? ( v4l ), all users of
        libv4l will have the new USE enabled already
    
      - libdvdnav+libdvdread->dvd(combined): similar to mpv, simpler
        for users when they just want dvds to work than worry about
        each library (dvd support is new in ffmpeg-7, so this only
        ever been masked)
    
    * Enable a few extra IUSE by default that, while not everyone needs,
      are useful and have dependencies that many users will already have.
    
      - libass,truetype,fontconfig: for proper text/subtitles drawing
        (kdenlive also wants [libass]), albeit video players tend to
        have their own handling (that pull the same depdencies)
    
      - drm: used in various pieces of code and little reason to
        disable when mesa depends on libdrm either way
    
      - xml: needed for DASH-type streams, notably used by youtube,
        and about everyone has libxml2
    
      (one downside of new defaults is MULTILIB_USEDEP, users that only
      selectively enable abi_x86_32 rather than globally may be faced with
      conflicts when updating)
    
    * Always depend on linux-headers if linux, not *required* (except for
      v4l) but this prevents a lot of automagic and going through alternate
      code paths if missing (also go with >=6 which is needed for v4l2m2m
      and I believe also USE=soc for v4l2request)
    
    * Add missing vulkan-headers dependency wrt bug #865201, and also
      opencl-headers wrt bug #941506 (not 100% sure that this is what
      happened for the latter, but given binhost is setup it is likely).
    
    * Bump nv-codec-headers min req to 12.1.14.0, while not *required*
      it spares us for setting up ranges and 11.x is due for cleanup.
    
    * Add missing x11-base/xorg-proto wrt bug #934196 -- technically
      was longer an issue given libX11 RDEPENDs on it "now", but would
      still rather keep these for now.
    
    * Depend on >=librsvg-2.52 wrt bug #918613, USE=svg is not essential
      for arches without rust and upstream bug been went 1.5 years without
      activity.
    
    * Update REQUIRED_USE a bit, cuda does not *need* nvenc (just get
      one filter in less), libplacebo does nothing without sdl(ffplay)
      or vulkan, and few others like these (likely still missing some).
    
    * Drop musl HAVE_POSIX_IOCTL workaround, this is automatically set by
      ./configure since ffmpeg-7.1. However, note that there is another
      related issue with libv4l (not v4l) that is not fixed (bug #911499).
    
    * No longer ignore ffmpeg-spec-disposition test, fixed in 7.1.1.
    
    * Fix verify-sig paths on prefix wrt bug #947253 (untested)
    
    * No longer pass e.g. --disable-indev=alsa when already doing
      --disable-alsa, ./configure seem to figure this out just fine.
    
    * No longer pass --cpu, this expects the -march=<exact> reported by
      the compiler or probes compiler with =native if =host), however it
      does not account for -mno-* both passed or implied by =native and
      could enable things it shouldn't. Furthermore, it adds -march=<exact>
      after the users' -march=native (which is more correct, can enable
      or disable additional features). This option only seem like trouble
      and likely does not get tested much. Removing also handles
      bug #830165 albeit ffmpeg-chromium is still affected.
    
    * Replace EXTRA_FFMPEG_CONF by EXTRA_ECONF, while it is not using
      econf nor autoconf, the latter is more widely known while the former
      needs users to look at the ebuild -- also die if old variable is set
      so users know about this change.
    
    * Skip installing doc/*.txt, that seems mostly oriented at ffmpeg devs,
      and feels noisy in the docdir, but do keep doc/APIChanges
    
    * Replace all *GPL* by the + version given ./configure always output
      with "or later" when listing the final license.
    
    * Maybe not best way to go about this, but when doing incompatible
      --enable-gpl --enable-nonfree, on top of the RESTRICT="bindist"
      also add "all-rights-reserved" so a typical freedom ACCEPT_LICENSE
      can block it.
    
    * Rearrange chromium patch a bit to need less ebuild logic, and make
      it unused for ffmpeg-compat.
    
    * Drop EGIT_MIN_CLONE_TYPE, shallow clones seem fine now? If not,
      could consider just using the official github mirror by default.
    
    List of closed bugs may not be complete, plans are to recheck
    still-open bugs after this is merged.
    
    Bug: https://bugs.gentoo.org/830165
    Closes: https://bugs.gentoo.org/654118
    Closes: https://bugs.gentoo.org/695210
    Closes: https://bugs.gentoo.org/733556
    Closes: https://bugs.gentoo.org/752507
    Closes: https://bugs.gentoo.org/770439
    Closes: https://bugs.gentoo.org/778035
    Closes: https://bugs.gentoo.org/865201
    Closes: https://bugs.gentoo.org/868471
    Closes: https://bugs.gentoo.org/903754
    Closes: https://bugs.gentoo.org/915384
    Closes: https://bugs.gentoo.org/916067
    Closes: https://bugs.gentoo.org/918613
    Closes: https://bugs.gentoo.org/918989
    Closes: https://bugs.gentoo.org/920283
    Closes: https://bugs.gentoo.org/920808
    Closes: https://bugs.gentoo.org/921313
    Closes: https://bugs.gentoo.org/922333
    Closes: https://bugs.gentoo.org/922433
    Closes: https://bugs.gentoo.org/934196
    Closes: https://bugs.gentoo.org/941506
    Closes: https://bugs.gentoo.org/947253
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-video/ffmpeg/ffmpeg-9999.ebuild      | 1014 +++++++++++++---------------
 media-video/ffmpeg/files/chromium-r3.patch |   53 ++
 media-video/ffmpeg/metadata.xml            |    8 +
 3 files changed, 538 insertions(+), 537 deletions(-)