#10833(undetermined:new): build fails with gcc-14: -Wint-conversion in libavfilter/vsrc_testsrc_vulkan.c
#10833: build fails with gcc-14: -Wint-conversion in libavfilter/vsrc_testsrc_vulkan.c -------------------------------------+------------------------------------- Reporter: Nicolas | Type: defect Chauvet | Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- There is a build failure with some arches with gcc-14 https://fedoraproject.org/wiki/Changes/GNUToolchainF40 https://fedoraproject.org/wiki/Changes/PortingToModernC {{{ In file included from libavfilter/vulkan.h:22, from libavfilter/vulkan_filter.h:26, from libavfilter/vsrc_testsrc_vulkan.c:24: ./libavutil/vulkan.h:227:1: note: the alignment of ‘_Atomic long long int’ fields changed in GCC 11.1 227 | } FFVkExecPool; | ^ libavfilter/vsrc_testsrc_vulkan.c: In function ‘testsrc_vulkan_activate’: libavfilter/vsrc_testsrc_vulkan.c:234:47: error: passing argument 6 of ‘ff_vk_filter_process_simple’ makes integer from pointer without a cast [-Wint-conversion] 234 | NULL, &s->opts, sizeof(s->opts)); | ^~~~ | | | void * libavfilter/vulkan_filter.h:47:43: note: expected ‘VkSampler’ {aka ‘long long unsigned int’} but argument is of type ‘void *’ 47 | VkSampler sampler, void *push_src, size_t push_size); | ~~~~~~~~~~^~~~~~~ libavfilter/vsrc_testsrc_vulkan.c:253:43: error: passing argument 6 of ‘ff_vk_filter_process_simple’ makes integer from pointer without a cast [-Wint-conversion] 253 | NULL, &s->opts, sizeof(s->opts)); | ^~~~ | | | void * libavfilter/vulkan_filter.h:47:43: note: expected ‘VkSampler’ {aka ‘long long unsigned int’} but argument is of type ‘void *’ 47 | VkSampler sampler, void *push_src, size_t push_size); | ~~~~~~~~~~^~~~~~~ make: *** [ffbuild/common.mak:81: libavfilter/vsrc_testsrc_vulkan.o] Error 1 }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/10833> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10833: build fails with gcc-14: -Wint-conversion in libavfilter/vsrc_testsrc_vulkan.c -------------------------------------+------------------------------------- Reporter: Nicolas | Owner: (none) Chauvet | Type: defect | Status: new Priority: normal | Component: avfilter Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Nicolas Chauvet): * version: unspecified => git-master * component: undetermined => avfilter -- Ticket URL: <https://trac.ffmpeg.org/ticket/10833#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10833: build fails with gcc-14: -Wint-conversion in libavfilter/vsrc_testsrc_vulkan.c -------------------------------------+------------------------------------- Reporter: Nicolas | Owner: (none) Chauvet | Type: defect | Status: new Priority: normal | Component: avfilter Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Description changed by Nicolas Chauvet: Old description:
There is a build failure with some arches with gcc-14
https://fedoraproject.org/wiki/Changes/GNUToolchainF40 https://fedoraproject.org/wiki/Changes/PortingToModernC
{{{
In file included from libavfilter/vulkan.h:22, from libavfilter/vulkan_filter.h:26, from libavfilter/vsrc_testsrc_vulkan.c:24: ./libavutil/vulkan.h:227:1: note: the alignment of ‘_Atomic long long int’ fields changed in GCC 11.1 227 | } FFVkExecPool; | ^ libavfilter/vsrc_testsrc_vulkan.c: In function ‘testsrc_vulkan_activate’: libavfilter/vsrc_testsrc_vulkan.c:234:47: error: passing argument 6 of ‘ff_vk_filter_process_simple’ makes integer from pointer without a cast [-Wint-conversion] 234 | NULL, &s->opts, sizeof(s->opts)); | ^~~~ | | | void * libavfilter/vulkan_filter.h:47:43: note: expected ‘VkSampler’ {aka ‘long long unsigned int’} but argument is of type ‘void *’ 47 | VkSampler sampler, void *push_src, size_t push_size); | ~~~~~~~~~~^~~~~~~ libavfilter/vsrc_testsrc_vulkan.c:253:43: error: passing argument 6 of ‘ff_vk_filter_process_simple’ makes integer from pointer without a cast [-Wint-conversion] 253 | NULL, &s->opts, sizeof(s->opts)); | ^~~~ | | | void * libavfilter/vulkan_filter.h:47:43: note: expected ‘VkSampler’ {aka ‘long long unsigned int’} but argument is of type ‘void *’ 47 | VkSampler sampler, void *push_src, size_t push_size); | ~~~~~~~~~~^~~~~~~ make: *** [ffbuild/common.mak:81: libavfilter/vsrc_testsrc_vulkan.o] Error 1 }}}
New description: There is a build failure with some arches with gcc-14 https://fedoraproject.org/wiki/Changes/GNUToolchainF40 https://fedoraproject.org/wiki/Changes/PortingToModernC It seems like the error only occurs for i686, but not for x86_64 or aarch64. {{{ In file included from libavfilter/vulkan.h:22, from libavfilter/vulkan_filter.h:26, from libavfilter/vsrc_testsrc_vulkan.c:24: ./libavutil/vulkan.h:227:1: note: the alignment of ‘_Atomic long long int’ fields changed in GCC 11.1 227 | } FFVkExecPool; | ^ libavfilter/vsrc_testsrc_vulkan.c: In function ‘testsrc_vulkan_activate’: libavfilter/vsrc_testsrc_vulkan.c:234:47: error: passing argument 6 of ‘ff_vk_filter_process_simple’ makes integer from pointer without a cast [-Wint-conversion] 234 | NULL, &s->opts, sizeof(s->opts)); | ^~~~ | | | void * libavfilter/vulkan_filter.h:47:43: note: expected ‘VkSampler’ {aka ‘long long unsigned int’} but argument is of type ‘void *’ 47 | VkSampler sampler, void *push_src, size_t push_size); | ~~~~~~~~~~^~~~~~~ libavfilter/vsrc_testsrc_vulkan.c:253:43: error: passing argument 6 of ‘ff_vk_filter_process_simple’ makes integer from pointer without a cast [-Wint-conversion] 253 | NULL, &s->opts, sizeof(s->opts)); | ^~~~ | | | void * libavfilter/vulkan_filter.h:47:43: note: expected ‘VkSampler’ {aka ‘long long unsigned int’} but argument is of type ‘void *’ 47 | VkSampler sampler, void *push_src, size_t push_size); | ~~~~~~~~~~^~~~~~~ make: *** [ffbuild/common.mak:81: libavfilter/vsrc_testsrc_vulkan.o] Error 1 }}} -- -- Ticket URL: <https://trac.ffmpeg.org/ticket/10833#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10833: build fails with gcc-14: -Wint-conversion in libavfilter/vsrc_testsrc_vulkan.c -------------------------------------+------------------------------------- Reporter: Nicolas | Owner: (none) Chauvet | Type: defect | Status: closed Priority: normal | Component: avfilter Version: git-master | Resolution: fixed Keywords: | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 1 | -------------------------------------+------------------------------------- Changes (by Lynne): * analyzed: 0 => 1 * status: new => closed * resolution: => fixed * reproduced: 0 => 1 Comment: Fixed in 5860a966d2fffbbda1af0014f0a4d37a21c4f2ca Thanks -- Ticket URL: <https://trac.ffmpeg.org/ticket/10833#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#10833: build fails with gcc-14: -Wint-conversion in libavfilter/vsrc_testsrc_vulkan.c -------------------------------------+------------------------------------- Reporter: Nicolas | Owner: (none) Chauvet | Type: defect | Status: closed Priority: normal | Component: avfilter Version: git-master | Resolution: fixed Keywords: | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 1 | -------------------------------------+------------------------------------- Comment (by Nicolas Chauvet): Thanks for the fix. Seems like there are missing patch https://src.fedoraproject.org/fork/smani/rpms/ffmpeg/c/774d42a0072430fdef97c... But for some reason the patch author didn't manage to send to ffmpeg-devel Subscriber needs approval ? Also as rpmfusion.org is concerned, we hope theses patches to land down to ffmpeg-4.x branch at some point. -- Ticket URL: <https://trac.ffmpeg.org/ticket/10833#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg