Compilation with OpenCL fails when threading is disabled
$ ./configure --enable-opencl --disable-pthreads --disable-w32threads --disable-os2threads
[...]
$ grep 'THREADS' config.mak
!HAVE_PTHREADS=yes
!HAVE_W32THREADS=yes
!HAVE_OS2THREADS=yes
!HAVE_THREADS=yes
$ grep 'OPENCL' config.mak
CONFIG_OPENCL=yes
$ make
[...]
CC libavutil/opencl.o
D:/MinGW/msys/1.0/ffmpeg/src/libavutil/opencl.c: In function 'av_opencl_release_kernel':
D:/MinGW/msys/1.0/ffmpeg/src/libavutil/opencl.c:270:1: error: label at end of compound statement
D:/MinGW/msys/1.0/ffmpeg/src/libavutil/opencl.c: In function 'av_opencl_uninit':
D:/MinGW/msys/1.0/ffmpeg/src/libavutil/opencl.c:599:1: error: label at end of compound statement
make: *** [libavutil/opencl.o] Error 1
UNLOCK_OPENCL is the only line after the "end:" label in those two functions, and it's empty when compiling with no threads.
Change History
(4)
Resolution: |
→ worksforme
|
Status: |
new → closed
|
Resolution: |
worksforme → fixed
|
Reproduced by developer: |
set
|
Maybe this was fixed by cf6ed1f1293c2dd69b76d9246a916925b58b7bbf