Good morning guys, First of all thank you for your effort and time that you spent on maintain this port :) Unfortunately there is a problem with compilation this port on 14.0-STABLE on my system. I have installed the newest vulkan loader and headers. vulkan-headers-1.3.274 Headers for the Vulkan graphics API vulkan-loader-1.3.274 Driver loader for the Vulkan graphics API ffmpeg-6.1_1,1 Realtime audio/video encoder/converter and streaming server The error I currently get during compilation is presented below: 5 errors generated. gmake[2]: *** [ffbuild/common.mak:79: libavutil/hwcontext_vulkan.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... strip -x libswscale/x86/output.o strip -x libavcodec/x86/vp9itxfm.o gmake[2]: Leaving directory '/var/ports/basejail/usr/ports/multimedia/emby-server-devel/work/ffmpeg-2022_05_07_public' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Any ideas how to fix this issue?
I am running the same base version, STABLE14 and have the same updated vulkan headers, but I can not reproduce in Poudriere. Do you build on the host?
I am not using Poudriere. I prefer rather manual build from ports or using portmaster.
I build this port on my host in jail dedicated for emby.
I was able to double check error that I got during build. libavutil/hwcontext_vulkan.c:364:7: error: use of undeclared identifier 'VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME' { VK_EXT_VIDEO_DECODE_H265_EXTENSION_NAME, FF_VK_EXT_NO_FLAG }, ^ libavutil/hwcontext_vulkan.c:469:29: error: invalid application of 'sizeof' to an incomplete type 'const VulkanOptExtension[]' (aka 'const struct VulkanOptExtension[]') optional_exts_num = FF_ARRAY_ELEMS(optional_device_exts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libavutil/macros.h:53:34: note: expanded from macro 'FF_ARRAY_ELEMS' #define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0])) ^~~ libavutil/hwcontext_vulkan.c:1434:29: error: invalid application of 'sizeof' to an incomplete type 'const VulkanOptExtension[]' (aka 'const struct VulkanOptExtension[]') for (int j = 0; j < FF_ARRAY_ELEMS(optional_device_exts); j++) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libavutil/macros.h:53:34: note: expanded from macro 'FF_ARRAY_ELEMS' #define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
(In reply to tomasz.sowinski from comment #0) temp fix to your error (I also have the same error). edit Makefile in /usr/ports/multimedia/emby-server in the "CONFIGURE_ARGS= --cc="${CC}" \" section of the file add: --disable-vulkan \
Created attachment 247293 [details] Error details, build on host system
(In reply to Kevin Saccullo from comment #6) Thanks Kevin for valuable hint how to solve this problem. I was able to build emby successfully. Issue can be closed.
Dries, I request that this bug be reopened because it has not been fixed. The workaround proposed above involves the end user manually editing the Makefile in the ports tree. That is not a proper fix, and the issue still exists.
I misread the issue. Reopening.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=297331f5a88f554635f79289207c130749b4db2c commit 297331f5a88f554635f79289207c130749b4db2c Author: Dries Michiels <driesm@FreeBSD.org> AuthorDate: 2024-03-07 18:27:09 +0000 Commit: Dries Michiels <driesm@FreeBSD.org> CommitDate: 2024-03-07 18:27:09 +0000 multimedia/emby-server-(devel): fix autodetect of vulkan Vulkan headers are autodetected, meaning if they are installed on the host system they are enabled by the configure script which is unwanted. PR: 275857 multimedia/emby-server-devel/Makefile | 2 +- multimedia/emby-server/Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
Fixed :)
(In reply to Dries Michiels from comment #11) You're the man!