[FFmpeg-trac] #3004(build system:new): OpenCL Version detection broken (at least on OSX)

FFmpeg trac at avcodec.org
Thu Sep 26 17:19:19 CEST 2013


#3004: OpenCL Version detection broken (at least on OSX)
-------------------------------------+-------------------------------------
               Reporter:             |                  Owner:
  thilo.borgmann                     |                 Status:  new
                   Type:  defect     |              Component:  build
               Priority:  normal     |  system
                Version:             |               Keywords:  opencl
  unspecified                        |  configure
             Blocked By:             |               Blocking:
Reproduced by developer:  0          |  Analyzed by developer:  0
-------------------------------------+-------------------------------------
 Summary of the bug:

 configure accepts any installed version of OpenCL if any is installed.

 In configure, it seems like the block starting in line 4263 is not
 executed (not mentioned anywhere in config.log, see config.log.unpatched):
 {{{
 {...} &&
 {...} &&
 { check_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
   check_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||
   die "ERROR: opencl must be installed and version must be 1.2 or
 compatible"; }
 }}}

 If I reorder the three blocks for opencl, a version prior to 1.2 is found
 and rejected properly (see config.log.patched).

 How to reproduce:
 1) Install OpenCL 1.0 or 1.1
 2) Run:
 {{{
 ./configure --enable-opencl
 }}}

 I can't find a reason why the test is skipped in the unpatched configure
 and thus I cannot send a patch to really fix it without further
 assistance. I also don't have a non-Mac machine ready now to test if this
 is really just a Mac problem.

 Attached are a patch for the reordering workaround and two corresponding
 config.log files.

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


More information about the FFmpeg-trac mailing list