Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on Ubuntu #4985

Closed
mfraser opened this issue Mar 1, 2023 · 3 comments
Closed

Can't build on Ubuntu #4985

mfraser opened this issue Mar 1, 2023 · 3 comments

Comments

@mfraser
Copy link

mfraser commented Mar 1, 2023

Problem Description

I tried compiling Handbrake this morning and it fails with
result: FAILURE (code 2)

Activity Log, Crash Log or any other details

libavutil/hwcontext_cuda.c: In function ‘cuda_device_derive’:
libavutil/hwcontext_cuda.c:448:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  448 |     VkPhysicalDeviceIDProperties vk_idp = {
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavutil/hwcontext_vulkan.c:363: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’?
  363 |     { VK_EXT_VIDEO_DECODE_H264_EXTENSION_NAME,                FF_VK_EXT_NO_FLAG                },
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       VK_EXT_VIDEO_ENCODE_H264_EXTENSION_NAME
/usr/bin/gcc -I. -I./ -I/home/mfraser/git/HandBrake/build/contrib/include  -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_avutil -I/home/mfraser/git/HandBrake/build/contrib/include -std=gnu99 -mfpmath=sse -msse2 -fstack-protector-strong -D_FORTIFY_SOURCE=2  -mfpmath=sse -msse2 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -I/home/mfraser/git/HandBrake/build/contrib/include -DNDEBUG -std=c11 -fomit-frame-pointer -fPIC   -I/home/mfraser/git/HandBrake/build/contrib//include -pthread  -pthread -I/home/mfraser/git/HandBrake/build/contrib/include -I/usr/include/opus -I/usr/include/opus  -I/home/mfraser/git/HandBrake/build/contrib/include/svt-av1   -I/home/mfraser/git/HandBrake/build/contrib/include       -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -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 -O3 -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   -MMD -MF libavutil/integer.d -MT libavutil/integer.o -c -o libavutil/integer.o libavutil/integer.c
libavutil/hwcontext_vulkan.c:364: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’?
  364 |     { VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME,                FF_VK_EXT_NO_FLAG                },
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       VK_EXT_VIDEO_ENCODE_H265_EXTENSION_NAME
gmake[1]: *** [ffbuild/common.mak:81: libavutil/hwcontext_vulkan.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory '/home/mfraser/git/HandBrake/build/contrib/ffmpeg/ffmpeg-5.1.2'
gmake: *** [../contrib/ffmpeg/module.rules:3: contrib/ffmpeg/.stamp.ffmpeg.build] Error 2
time end: Wed Mar  1 08:10:54 2023
duration: 1 minute, 52 seconds (113.00s)
result: FAILURE (code 2)

What Operating System are you running?

Ubuntu 22.04

What version of HandBrake are you running?

Nightly 9e3af80

Where did you download HandBrake from?

github

@mfraser
Copy link
Author

mfraser commented Mar 1, 2023

build.tar.gz

@galad87
Copy link
Contributor

galad87 commented Mar 1, 2023

It looks like those symbols were removed from the Vulkan SDK, and removed in libavutil in FFmpeg/FFmpeg@eb0455d646 .

We will soon update to FFmpeg 6, which will contain the commit above.

@sr55
Copy link
Contributor

sr55 commented Mar 3, 2023

Closing since it's a dependency compatibility issue.

#4981 is ffmpeg 6 Pull request so this will also land in the main branch soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants