Opened 11 years ago

Closed 11 years ago

Last modified 11 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 by Michael Niedermayer, 11 years ago

Resolution: worksforme
Status: newclosed

comment:2 by Carl Eugen Hoyos, 11 years ago

Ticket #2603 was a related ticket.

comment:3 by Carl Eugen Hoyos, 11 years ago

Resolution: worksformefixed

comment:4 by Carl Eugen Hoyos, 11 years ago

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