Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#2448 closed defect (fixed)

Compilation with OpenCL fails when threading is disabled

Reported by: jamal Owned by:
Priority: important Component: avutil
Version: git-master Keywords: opencl
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

$ ./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)

comment:1 Changed 4 years ago by michael

  • Resolution set to worksforme
  • Status changed from new to closed

comment:2 Changed 4 years ago by cehoyos

Ticket #2603 was a related ticket.

comment:3 Changed 4 years ago by cehoyos

  • Resolution changed from worksforme to fixed

comment:4 Changed 4 years ago by cehoyos

  • Reproduced by developer set
Note: See TracTickets for help on using tickets.