Opened 7 months ago
Last modified 3 months ago
#9983 new defect
Build error with clang on 32 bit Windows
Reported by: | Christoph Reiter | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avutil |
Version: | git-master | Keywords: | vulkan |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Looks like clang 15 got stricter somehow:
C:/msys64/home/user/M/mingw-w64-ffmpeg/src/ffmpeg-4.4.2/libavutil/hwcontext_vulkan.c:865:15: error: incompatible pointer to integer conversion assigning to 'VkCommandPool' (aka 'unsigned long long') from 'void *' [-Wint-conversion] cmd->pool = NULL;
Some searching suggests that VkCommandPool is a handle, and that VK_NULL_HANDLE should be used, but I don't know enough about vulkan. It builds fine with it at least.
Attachments (1)
Change History (4)
by , 7 months ago
Attachment: | 0003-fix-clang32-build.patch added |
---|
comment:1 by , 7 months ago
Component: | undetermined → avutil |
---|---|
Keywords: | vulkan added |
Version: | unspecified → git-master |
comment:2 by , 7 months ago
The configure line is a simple "./configure".
$ clang -v clang version 15.0.3 Target: i686-w64-windows-gnu Thread model: posix InstalledDir: C:/msys64/clang32/bin
I will try to look into providing a patch. I need to read up on the vulkan API first though.
comment:3 by , 3 months ago
Someone proposed a fix on the ML: https://ffmpeg.org/pipermail/ffmpeg-devel/2023-March/307142.html
Note:
See TracTickets
for help on using tickets.
Please either provide the configure line you tested and clang -v output to make this a valid ticket or - much better - send your patch made with git format-patch to the FFmpeg development mailing list.