[FFmpeg-trac] #10900(undetermined:open): unable to build v6.1.1 without pthreads.
FFmpeg
trac at avcodec.org
Tue Mar 12 06:05:09 EET 2024
#10900: unable to build v6.1.1 without pthreads.
----------------------------------+----------------------------------------
Reporter: glennmcc | Owner: (none)
Type: defect | Status: open
Priority: normal | Component: undetermined
Version: 6.1 | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+----------------------------------------
Changes (by Gyan):
* status: new => open
Old description:
> root at glennmcc-i7:~/build/ffmpeg-6.1.1# ./configure --disable-pthreads
>
> root at glennmcc-i7:~/build/ffmpeg-6.1.1# time make
>
> Even tho I disabled pthreads.... it still got these errors and it did not
> build ffmpeg, ffprobe, ffplay for Linux.
>
> In file included from libavcodec/vulkan.c:19:
> ./libavutil/vulkan.c: In function 'ff_vk_exec_pool_free':
> ./libavutil/vulkan.c:267:9: error: implicit declaration of function
> 'pthread_mutex_destroy'; did you mean 'ff_mutex_destroy'? [-Werror
> =implicit-function-declaration]
> 267 | pthread_mutex_destroy(&e->lock);
> | ^~~~~~~~~~~~~~~~~~~~~
> | ff_mutex_destroy
> ./libavutil/vulkan.c: In function 'ff_vk_exec_pool_init':
> ./libavutil/vulkan.c:410:15: error: implicit declaration of function
> 'pthread_mutex_init' [-Werror=implicit-function-declaration]
> 410 | err = pthread_mutex_init(&e->lock, NULL);
> | ^~~~~~~~~~~~~~~~~~
> ./libavutil/vulkan.c: In function 'ff_vk_exec_wait':
> ./libavutil/vulkan.c:507:5: error: implicit declaration of function
> 'pthread_mutex_lock' [-Werror=implicit-function-declaration]
> 507 | pthread_mutex_lock(&e->lock);
> | ^~~~~~~~~~~~~~~~~~
> ./libavutil/vulkan.c:510:5: error: implicit declaration of function
> 'pthread_mutex_unlock'; did you mean 'ff_mutex_unlock'? [-Werror
> =implicit-function-declaration]
> 510 | pthread_mutex_unlock(&e->lock);
> | ^~~~~~~~~~~~~~~~~~~~
> | ff_mutex_unlock
> cc1: some warnings being treated as errors
> make: *** [ffbuild/common.mak:81: libavcodec/vulkan.o] Error 1
New description:
root at glennmcc-i7:~/build/ffmpeg-6.1.1# ./configure --disable-pthreads
root at glennmcc-i7:~/build/ffmpeg-6.1.1# time make
Even tho I disabled pthreads.... it still got these errors and it did not
build ffmpeg, ffprobe, ffplay for Linux.
In file included from libavcodec/vulkan.c:19:
./libavutil/vulkan.c: In function 'ff_vk_exec_pool_free':
./libavutil/vulkan.c:267:9: error: implicit declaration of function
'pthread_mutex_destroy'; did you mean 'ff_mutex_destroy'? [-Werror
=implicit-function-declaration]
267 | pthread_mutex_destroy(&e->lock);
| ^~~~~~~~~~~~~~~~~~~~~
| ff_mutex_destroy
./libavutil/vulkan.c: In function 'ff_vk_exec_pool_init':
./libavutil/vulkan.c:410:15: error: implicit declaration of function
'pthread_mutex_init' [-Werror=implicit-function-declaration]
410 | err = pthread_mutex_init(&e->lock, NULL);
| ^~~~~~~~~~~~~~~~~~
./libavutil/vulkan.c: In function 'ff_vk_exec_wait':
./libavutil/vulkan.c:507:5: error: implicit declaration of function
'pthread_mutex_lock' [-Werror=implicit-function-declaration]
507 | pthread_mutex_lock(&e->lock);
| ^~~~~~~~~~~~~~~~~~
./libavutil/vulkan.c:510:5: error: implicit declaration of function
'pthread_mutex_unlock'; did you mean 'ff_mutex_unlock'? [-Werror=implicit-
function-declaration]
510 | pthread_mutex_unlock(&e->lock);
| ^~~~~~~~~~~~~~~~~~~~
| ff_mutex_unlock
cc1: some warnings being treated as errors
make: *** [ffbuild/common.mak:81: libavcodec/vulkan.o] Error 1
--
Comment:
ffmpeg has required threading support since
760ce4bc0bd11f74f0851c0a662dd5cae888df83 (Jul 2022)
The vulkan make failure looks to be an oversight in the configure script
but threading is required for vulkan as well.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10900#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list