Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924431 - media-video/ffmpeg-6.0.1-r2 - src/libavcodec/libjxldec.c:201:54: error: incompatible type for argument 2 of ‘JxlDecoderGetICCProfileSize’
Summary: media-video/ffmpeg-6.0.1-r2 - src/libavcodec/libjxldec.c:201:54: error: incom...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-02-13 15:50 UTC by latex
Modified: 2024-03-12 03:37 UTC (History)
6 users (show)

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


Attachments
gzipped log: emerge -avuN ffmpeg (media-video:ffmpeg-6.0.1-r2:20240213-153629.log.gz,71.69 KB, application/gzip)
2024-02-13 15:53 UTC, latex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description latex 2024-02-13 15:50:21 UTC
ffmpeg 6.0.1-rc2 won't build with the jpegxl useflag. See attachment file for log.

emerge --info:
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r10, 6.6.13-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.13-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-glibc2.38
KiB Mem:    24544560 total,   3060092 free
KiB Swap:   33553400 total,  31257848 free
Timestamp of repository gentoo: Mon, 12 Feb 2024 10:30:01 +0000
Head commit of repository gentoo: ce2d16de0bbe523847891ce791aea100b64b10e6
Timestamp of repository 4nykey: Sat, 10 Feb 2024 11:03:19 +0000
Head commit of repository 4nykey: 839ae1d74c19dec8bfd0eec9e06ac46340489e5a

Timestamp of repository ROKO__: Sat, 10 Feb 2024 11:03:17 +0000
Head commit of repository ROKO__: 2a07377b5c56854219f5872e6a0b54fb8802c3b1

Timestamp of repository audio-overlay: Tue, 06 Feb 2024 03:18:31 +0000
Head commit of repository audio-overlay: c5215e63b3f639ef357bd01719d5d236b283451b

Timestamp of repository booboo: Tue, 06 Feb 2024 03:18:27 +0000
Head commit of repository booboo: df3bd2091a2cee1d5bbd381ff71c7429704fbe2a

Timestamp of repository cova: Tue, 06 Feb 2024 08:03:14 +0000
Head commit of repository cova: 272718aaa4dccc90381dfbe53ef5ae59922204f1

Timestamp of repository edgets: Tue, 06 Feb 2024 03:18:35 +0000
Head commit of repository edgets: 54724435125541da4652dd3a5c9e9a361c0e6006

Timestamp of repository guru: Sun, 11 Feb 2024 18:03:20 +0000
Head commit of repository guru: 9b61371ebd67841ccd3414a52ea68be1c21caa33

Timestamp of repository java: Sat, 27 Jan 2024 17:35:02 +0000
Head commit of repository java: a1dee02b8c6bfec00d3c741d66bb0b34f2a384dd

Timestamp of repository kde: Sun, 11 Feb 2024 20:33:23 +0000
Head commit of repository kde: b5b6ed729e393135544cde84160b8d9881e1d895

Head commit of repository librewolf: 1ca22da1c168b765ef877e9e21258d84438ab66a

Timestamp of repository menelkir: Sun, 11 Feb 2024 13:33:23 +0000
Head commit of repository menelkir: 988988b0e12b9f8f399a98c899a8d7f4ea81f7ee

Timestamp of repository nest: Sun, 11 Feb 2024 13:18:20 +0000
Head commit of repository nest: 575f5120f72e682344df6cada626c8fe297d1102

Timestamp of repository palemoon: Tue, 06 Feb 2024 03:18:27 +0000
Head commit of repository palemoon: 7725fb96b505c1820eb35074ef6b5f09c5f17a03

Timestamp of repository pentoo: Mon, 12 Feb 2024 09:48:24 +0000
Head commit of repository pentoo: 31ebfea915f86ca74c9d6dc5c75662fbaa09809a

Timestamp of repository pf4public: Sat, 10 Feb 2024 20:33:22 +0000
Head commit of repository pf4public: 0a0fb4ee901b08f7d9a2b97781f656a105e8e4e2

Timestamp of repository torbrowser: Sat, 10 Feb 2024 11:03:17 +0000
Head commit of repository torbrowser: ef0fb7eea12e0774cdec4e1b0f4b48509062c574

Timestamp of repository xarblu-overlay: Sun, 11 Feb 2024 12:18:26 +0000
Head commit of repository xarblu-overlay: aa27f7f4d6fdedab697c6f799da68fafd9c19568

Timestamp of repository zugaina: Fri, 16 Jun 2023 08:32:15 +0000
Head commit of repository zugaina: a31fcec20b159a13ccd069d4e13b92d18bc0ffec

Timestamp of repository haskell: Sun, 11 Feb 2024 21:18:14 +0000
Head commit of repository haskell: c5ed753ac1736e635adbb9ca45a67f5096b85fd7

sh dash 0.5.12
ld GNU ld (Gentoo 2.41 p4) 2.41.0
ccache version 4.9.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::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:           2.7.18_p16-r1::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust-bin:         1.75.0::gentoo
dev-util/ccache:           4.9.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::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:             6.5.0-r4::gentoo, 9.4.0::gentoo, 11.4.1_p20240111::gentoo, 12.3.1_p20240112::gentoo, 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             16.0.6::gentoo, 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.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::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-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

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

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

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

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

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

edgets
    location: /var/db/repos/edgets
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/edgets.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

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

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

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

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

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

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

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

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

rubbery
    location: /var/db/repos/rubbery
    masters: gentoo
    volatile: False

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

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

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

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

Binary Repositories:

gentoo-binpkg
    priority: 9999
    sync-uri: https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -g"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3"
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 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ rsync://mirror.leaseweb.com/gentoo/ https://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j3"
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/fish"
USE="X accessibility acl aio alsa amd64 bittorrent bzip2 cdda cli crypt cue curl dbus dist-kernel dnscrypt dri dssi dvd elogind fbcon ffmpeg flac fluidsynth fortran gdbm gemini gif gme gopher gpm heif iconv id3tag ipv6 jack jpeg jpeg2k jpegxl ladspa lame lash libsamplerate libtirpc lv2 lvm matroska midi multilib ncurses nls nvenc ogg opencl opengl openmp openmpt opus osc pam pcre pipewire png pulseaudio raw readline rtmp sasl seccomp sftp shout sid split-usr srt ssl test-rust threads tiff truetype udev unicode upnp vaapi vdpau vorbis vpx vulkan wavpack wayland webp xattr xinerama zlib" 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="aes avx avx2 f16c fma3 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en nl" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" 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 nouveau amdgpu radeon" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, 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 1 latex 2024-02-13 15:52:04 UTC
Grrr! The attached log was too big!
Here is a link to it: https://0x0.st/Hdx1.log
Comment 2 latex 2024-02-13 15:53:51 UTC
Created attachment 884869 [details]
gzipped log: emerge -avuN ffmpeg
Comment 3 James Le Cuirot gentoo-dev 2024-02-15 21:28:22 UTC
I don't think this is a USE=soc issue. Re-add me if you find otherwise.
Comment 4 Bob Johnson 2024-03-09 17:15:46 UTC
Still not confirmed? I have exactly the same error--fails every time with the jpegxl USE flag.

# emerge --info media-video/ffmpeg
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.38-r10, 6.6.13-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.13-gentoo-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.38
KiB Mem:    65788148 total,  45289364 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sat, 09 Mar 2024 14:45:00 +0000
Head commit of repository gentoo: d38f78ea04a320010191fa69b9087f1a531b5896
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

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

local
    location: /usr/local/portage
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=32"
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 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install 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 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="--jobs=32 --load-average=35"
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="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus declarative doc dri dts dvd dvdr elogind encode examples exif flac fontconfig fortran gdbm gif gtk gtk-doc gui handbook iconv icu ipv6 jack java jbig jpeg kde kwallet lcms libnotify libtirpc lzma mad mbox mng mp3 mp4 mpeg multilib ncurses nls nptl odbc ogg openexr opengl openmp pam pango pcre pdf pipewire plasma png policykit postgres ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound source spell split-usr ssl startup-notification svg test-rust threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis vulkan wayland webp widgets wxwidgets x264 xattr xcb xft xinerama xml xpm xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2021" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers http2 ident imagemap include info lbmethod_byrequests log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http proxy_http2 rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 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 wacom joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="epson2" VIDEO_CARDS="amdgpu radeonsi fbdev vesa" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, 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

=================================================================
                        Package Settings
=================================================================

media-video/ffmpeg-6.0.1-r2::gentoo was built with the following:
USE="X alsa amr amrenc bluray bzip2 cdio chromaprint chromium dav1d doc encode fdk fontconfig gme gnutls gpl iconv jack jpeg2k kvazaar ladspa lcms libaom libass libdrm librtmp lzma mp3 network openal opengl opus pic postproc pulseaudio sdl svg theora threads truetype v4l vaapi vdpau vidstab vorbis vpx vulkan webp x264 x265 xvid zlib (-amf) (-appkit) -bs2b -codec2 -cpudetection (-cuda) -debug -flite -frei0r -fribidi -gcrypt -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jpegxl -libaribb24 -libcaca -libilbc -libplacebo -libsoxr -libtesseract -libv4l -libxml2 -lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -opencl -openh264 -openssl -oss (-qsv) -rav1e -rubberband -samba -snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -test -twolame -verify-sig (-vmaf) -zeromq -zimg -zvbi" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher"
FEATURES="userpriv ipc-sandbox userfetch config-protect-if-modified pkgdir-index-trusted merge-sync sandbox unknown-features-warn qa-unresolved-soname-deps xattr ebuild-locks binpkg-logs parallel-fetch pid-sandbox network-sandbox preserve-libs unmerge-logs usersandbox protect-owned news buildpkg-live sfperms parallel-install multilib-strict binpkg-dostrip assume-digests strict unmerge-orphans fixlafiles usersync binpkg-docompress distlocks"
Comment 5 Михаил 2024-03-09 20:59:42 UTC
media-video/ffmpeg-6.1.1-r4 builds OK.
Comment 6 J. Paul Reed 2024-03-10 00:20:13 UTC
I'm experiencing this build failure too.

The problem is libjxl changed their API between 0.8.x and 0.9.x.

ffmpeg 6.1.1 guards against this by checking which version of libjxl its building against: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/release/6.1:/libavcodec/libjxldec.c#l217 for one of many examples

ffmpeg 6.0.1 does not have these checks: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/release/6.0:/libavcodec/libjxldec.c#l200

The bug here, really, is in the ebuild: ffmpeg-6.0.1-r2.ebuild says:

        jpegxl? ( >=media-libs/libjxl-0.7.0[$MULTILIB_USEDEP] )

This probably needs to be something approximating:

        jpegxl? ( >=media-libs/libjxl-0.7.0[$MULTILIB_USEDEP]
    		<media-libs/libjxl-0.9
        )
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-10 00:40:11 UTC
(In reply to J. Paul Reed from comment #6)
> The bug here, really, is in the ebuild: ffmpeg-6.0.1-r2.ebuild says:
> [...]

Well, no, the bug is in ffmpeg for not supporting it. Such a change in the ebuild would be a workaround.
Comment 8 J. Paul Reed 2024-03-10 00:53:00 UTC
(In reply to Sam James from comment #7)
> (In reply to J. Paul Reed from comment #6)
> > The bug here, really, is in the ebuild: ffmpeg-6.0.1-r2.ebuild says:
> > [...]
> 
> Well, no, the bug is in ffmpeg for not supporting it. Such a change in the
> ebuild would be a workaround.

You say tomato, I say spaghetti sauce. 🙃

FWIW, technically, they do support it on the 6.0.x branch: https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/000934830620c03be55644e054f9ffaaadac2a0a

It looks like they just haven't had a 6.0.x release since that patch landed.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-10 00:55:14 UTC
Thanks, I'll backport it later.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-10 00:59:04 UTC
That commit is in 6.0 already, I think.

(In reply to J. Paul Reed from comment #6)
> [...]
> ffmpeg 6.0.1 does not have these checks:
> https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/release/6.0:/
> libavcodec/libjxldec.c#l200

... indeed, this link is for the tip of the 6.0 branch, so it's definitely not been committed there either.
Comment 12 J. Paul Reed 2024-03-10 01:13:53 UTC
(In reply to Sam James from comment #10)
> That commit is in 6.0 already, I think.

Hah, you're right; I was looking at the dates on those patches, and it was February 2023... but uhh... it's not 2023. Derp.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-12 01:04:02 UTC
Can someone confirm if one or both patches help?
Comment 14 mcendu 2024-03-12 03:20:33 UTC
First patch makes it build at least.
Comment 15 Larry the Git Cow gentoo-dev 2024-03-12 03:37:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b5305498974c036f83c71adc8fb4a40106858c7

commit 0b5305498974c036f83c71adc8fb4a40106858c7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-12 03:35:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-12 03:36:54 +0000

    media-video/ffmpeg: fix build w/ newer libjxl
    
    Closes: https://bugs.gentoo.org/924431
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/ffmpeg/ffmpeg-6.0.1-r3.ebuild          |   1 +
 .../ffmpeg/files/ffmpeg-6.0.1-libjxl-0.9.patch     | 112 +++++++++++++++++++++
 2 files changed, 113 insertions(+)