[FFmpeg-trac] #2448(avutil:new): Compilation with OpenCL fails when threading is disabled

FFmpeg trac at avcodec.org
Mon Apr 8 10:25:29 CEST 2013


#2448: Compilation with OpenCL fails when threading is disabled
--------------------------------------+--------------------------------
               Reporter:  jamal       |                  Owner:
                   Type:  defect      |                 Status:  new
               Priority:  important   |              Component:  avutil
                Version:  git-master  |               Keywords:  opencl
             Blocked By:              |               Blocking:
Reproduced by developer:  0           |  Analyzed by developer:  0
--------------------------------------+--------------------------------
 {{{
 $ ./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.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2448>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list