Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928593 - media-video/ffmpeg-6.1.1-r5 - src/.../vulkan_av1.c: error: StdVideoAV1MESASequenceHeader undeclared (first use in this function)
Summary: media-video/ffmpeg-6.1.1-r5 - src/.../vulkan_av1.c: error: StdVideoAV1MESASeq...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PullRequest
: 928611 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-04-04 17:22 UTC by Toralf Förster
Modified: 2024-04-18 10:56 UTC (History)
16 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.78 KB, text/plain)
2024-04-04 17:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,57.91 KB, text/plain)
2024-04-04 17:22 UTC, Toralf Förster
Details
environment (environment,150.39 KB, text/plain)
2024-04-04 17:22 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.16 KB, application/x-xz)
2024-04-04 17:22 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,19.26 KB, application/x-xz)
2024-04-04 17:22 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,48.06 KB, application/x-xz)
2024-04-04 17:22 UTC, Toralf Förster
Details
media-video:ffmpeg-6.1.1-r5:20240404-170522.log.xz (media-video:ffmpeg-6.1.1-r5:20240404-170522.log.xz,48.44 KB, application/x-xz)
2024-04-04 17:22 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,135.62 KB, text/plain)
2024-04-04 17:22 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,74.72 KB, application/x-xz)
2024-04-04 17:22 UTC, Toralf Förster
Details
test results for vulkan rename patch (ffmpeg-tests.tar.gz,378.18 KB, application/gzip)
2024-04-10 02:06 UTC, germ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-04-04 17:22:11 UTC
too long lines were shrinked:

      |     VkVideoDecodeH265SessionParametersAddInfoKHR
src/libavcodec/vulkan_av1.c:115:5: error: unknown type name VkVideoDecodeAV1SessionParametersCreateInfoMESA; did you mean VkVideoDecodeAV1SessionParametersCreateInfoKHR?
  115 |     VkVideoDecodeAV1SessionParametersCreateInfoMESA av1_params;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     VkVideoDecodeAV1SessionParametersCreateInfoKHR
x86_64-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_avcodec -O2 -pipe -march=native -fno-diagnostics-color   -march=znver3 -std=c11 -fPIC    -pthread  -I/usr/inclu
src/libavcodec/vulkan_av1.c:120:28: error: StdVideoAV1MESASequenceHeader undeclared (first use in this function); did you mean StdVideoAV1SequenceHeader?
  120 |     av1_sequence_header = (StdVideoAV1MESASequenceHeader) {
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_systemd-20240403-050854

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.2
Python 3.11.8
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.1 linux/amd64

  HEAD of ::gentoo
commit 2339f9b5b33f89d6fca6292793d6c42fcd4e57eb
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Apr 4 16:34:14 2024 +0000

    2024-04-04 16:34:13 UTC

emerge -qpvO media-video/ffmpeg
[ebuild  N    ] media-video/ffmpeg-6.1.1-r5  USE="X alsa bzip2 dav1d encode fontconfig gnutls gpl iconv jpegxl lcms libass libcaca lzma mp3 network openal opengl opus pic postproc pulseaudio samba sdl threads verify-sig vorbis vulkan webp x264 xvid zlib -amf -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection -cuda -debug -doc -fdk -flite -frei0r -fribidi -gcrypt -glslang -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libaom -libaribb24 -libdrm -libilbc -libplacebo -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) -modplug -nvenc -opencl -openh264 -openssl -oss -qsv -rav1e -rubberband -shaderc -snappy -sndio -soc -speex -srt -ssh -static-libs -svg -svt-av1 -test -theora -truetype -twolame -v4l -vaapi -vdpau -vidstab -vmaf -vpx -x265 -zeromq -zimg -zvbi" ABI_X86="(64) -32 (-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"
Comment 1 Toralf Förster gentoo-dev 2024-04-04 17:22:12 UTC
Created attachment 889447 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-04 17:22:13 UTC
Created attachment 889448 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-04-04 17:22:14 UTC
Created attachment 889449 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-04-04 17:22:15 UTC
Created attachment 889450 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-04-04 17:22:16 UTC
Created attachment 889451 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-04 17:22:17 UTC
Created attachment 889452 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-04 17:22:18 UTC
Created attachment 889453 [details]
media-video:ffmpeg-6.1.1-r5:20240404-170522.log.xz
Comment 8 Toralf Förster gentoo-dev 2024-04-04 17:22:19 UTC
Created attachment 889454 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-04-04 17:22:22 UTC
Created attachment 889455 [details]
temp.tar.xz
Comment 10 Zoltan Puskas 2024-04-05 03:01:19 UTC
*** Bug 928611 has been marked as a duplicate of this bug. ***
Comment 11 Zoltan Puskas 2024-04-05 04:19:04 UTC
Build with USE="-vulcan" succeeds. Additionally I've built this version with USE="vulcan" was successful before this (on March 30th). Could it be related to the recent bump of dev-util/vulkan-headers to 1.3.280.0?
Comment 12 nurali 2024-04-05 04:27:33 UTC
(In reply to Zoltan Puskas from comment #11)
> Build with USE="-vulcan" succeeds. Additionally I've built this version with
> USE="vulcan" was successful before this (on March 30th). Could it be related
> to the recent bump of dev-util/vulkan-headers to 1.3.280.0?

It is not a very big problem but....you may want to say "vulkan" instead of "vulcan"
Comment 13 Zoltan Puskas 2024-04-05 06:21:54 UTC
Sorry that's a typo on my side, yes I meant USE="vulkan". 

I think the solution is in commit https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/ecdc94b97f809d5f2b88640842fd0541951ad295 of FFmpeg.

I've tried applying the exported commit as a patch but it won't apply cleanly via /etc/portage/patches mechanism, so it seems this has to be backported manually for Gentoo.
Comment 14 Perfect Gentleman 2024-04-09 15:00:27 UTC
(In reply to Zoltan Puskas from comment #13)
> Sorry that's a typo on my side, yes I meant USE="vulkan". 
> 
> I think the solution is in commit
> https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/
> ecdc94b97f809d5f2b88640842fd0541951ad295 of FFmpeg.
> 
> I've tried applying the exported commit as a patch but it won't apply
> cleanly via /etc/portage/patches mechanism, so it seems this has to be
> backported manually for Gentoo.

This is commit for 7.0, you need this commit https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/fef22c87ada4517441701e6e61e062c9f4399c8e for 6.1
Comment 15 Larry the Git Cow gentoo-dev 2024-04-10 01:47:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a7ae185d12135418fee061d38e3d2e9ae497ddd

commit 2a7ae185d12135418fee061d38e3d2e9ae497ddd
Author:     germ <germtoo@outlook.com>
AuthorDate: 2024-04-09 23:13:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-10 01:46:06 +0000

    media-video/ffmpeg: fix build with vulkan-headers-1.3.280.0
    
    Adds https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/fef22c87ada4517441701e6e61e062c9f4399c8e
    
    [sam: Fixup commit message and add references to patch.]
    
    Closes: https://bugs.gentoo.org/928593
    Signed-off-by: germ <germtoo@outlook.com>
    Closes: https://github.com/gentoo/gentoo/pull/36186
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/ffmpeg/ffmpeg-6.1.1-r5.ebuild          |   2 +
 .../ffmpeg/files/ffmpeg-6.1.1-vulkan-rename.patch  | 127 +++++++++++++++++++++
 2 files changed, 129 insertions(+)
Comment 16 germ 2024-04-10 02:06:04 UTC
Created attachment 890129 [details]
test results for vulkan rename patch

output of ebuild ffmpeg-6.1.1.ebuild clean test