#10115 closed defect (fixed)

ffmpeg fails to build after recent commit in vulkan_headers git et al

Reported by: hydra3333 Owned by:
Priority: important Component: avutil
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Per https://github.com/m-ab-s/media-autobuild_suite/issues/2345 which shows an ffmpeg build failure log and discussion relating to vulkan_headers and the latest ffmpeg git head.
The cross-compile used to work.

Post https://github.com/m-ab-s/media-autobuild_suite/issues/2345#issuecomment-1359555300 says

The VK_EXT_VIDEO_DECODE_H264_EXTENSION_NAME was removed from vulkan headers (include/vulkan/vulkan_beta.h) in this commit KhronosGroup/Vulkan-Headers@00671c6#diff-b1e4e7ea6a31d516e9a13c9e08028fb3959058081965270ac94d587d9ec1758dL90

I am not sure if this should be reported to ffmpeg. But one can try.

The vulkan_headers git is https://github.com/KhronosGroup/Vulkan-Headers

Build log showing error:

05:21:10 ├ Running make...
Likely error (tail of the failed operation logfile):
CC      libavutil/hwcontext_vulkan.o
C:/Download/Media-Autobuild/build/ffmpeg-git/libavutil/hwcontext_vulkan.c:367:7: error: 'VK_EXT_VIDEO_DECODE_H264_EXTENSION_NAME' undeclared here (not in a function); did you mean 'VK_EXT_VIDEO_ENCODE_H264_EXTENSION_NAME'?
  367 |     { VK_EXT_VIDEO_DECODE_H264_EXTENSION_NAME,                FF_VK_EXT_NO_FLAG                },
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       VK_EXT_VIDEO_ENCODE_H264_EXTENSION_NAME
C:/Download/Media-Autobuild/build/ffmpeg-git/libavutil/hwcontext_vulkan.c:368:7: error: 'VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME' undeclared here (not in a function); did you mean 'VK_EXT_VIDEO_ENCODE_H265_EXTENSION_NAME'?
  368 |     { VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME,                FF_VK_EXT_NO_FLAG                },
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       VK_EXT_VIDEO_ENCODE_H265_EXTENSION_NAM
[logs.zip](https://github.com/m-ab-s/media-autobuild_suite/files/10265276/logs.zip)
E
make: *** [/build/ffmpeg-git/ffbuild/common.mak:81: libavutil/hwcontext_vulkan.o] Error 1
make failed. 

Change History (3)

comment:1 by hydra3333, 16 months ago

It seems affixing both vulkan_loader and vulkan_headers to git tag "sdk-1.3.236.0" bypasses that error ? (a temporary "solution" of course)

Last edited 16 months ago by hydra3333 (previous) (diff)

comment:2 by hydra3333, 16 months ago

Priority: normalimportant

comment:3 by hydra3333, 16 months ago

Resolution: fixed
Status: newclosed

It seems to have been resolved by a recent ffmpeg commit

Note: See TracTickets for help on using tickets.