#3004(build system:new): OpenCL Version detection broken (at least on OSX)
#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
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: new Type: defect | Component: build Priority: important | system Version: git-master | Resolution: Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: opencl configure => regression opencl * priority: normal => important * version: unspecified => git-master Comment: Probably a regression since 1235e91b, related to ticket #2422. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:1> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: new Type: defect | Component: build Priority: important | system Version: git-master | Resolution: Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by thilo.borgmann): Indeed, reverting 1235e91b results in proper OpenCL version check. I still can't find any reason why 1235e91b does not work as expected. Thus I'm still lacking an idea for a solution. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:2> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: new Type: defect | Component: build Priority: important | system Version: git-master | Resolution: Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by cehoyos): I can't test atm but isn't replacing {{{} &&}}} with {{{} ||}}} sufficient to fix the bug? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:3> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: new Type: defect | Component: build Priority: important | system Version: git-master | Resolution: Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by thilo.borgmann): I don't think you want to OR the version condition... "enable_any || die" does not make sense. You might verify that any following {} blocks are skipped after the {enable_any ...} block - no need for actually having a CL machine. I don't see the reason in the logics but I'm not used to so much script magic anyway... -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:4> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: new Type: defect | Component: build Priority: important | system Version: git-master | Resolution: Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by cehoyos): Untested patch attached. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:5> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: new Type: defect | Component: build Priority: important | system Version: git-master | Resolution: Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by thilo.borgmann): Ok that kind of works. However, I'll send the following patch to devel that uses the same "positive" logic like everywhere else instead. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:6> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: new Type: defect | Component: build Priority: important | system Version: git-master | Resolution: Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by cehoyos): New untested patch attached. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:7> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: new Type: defect | Component: build Priority: important | system Version: git-master | Resolution: Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by thilo.borgmann): Tested and posted on devel, too. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:8> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#3004: OpenCL Version detection broken (at least on OSX) -------------------------------------+------------------------------------- Reporter: | Owner: thilo.borgmann | Status: closed Type: defect | Component: build Priority: important | system Version: git-master | Resolution: fixed Keywords: regression | Blocked By: opencl | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * status: new => closed * resolution: => fixed Comment: Should be fixed. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3004#comment:9> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg