Skip to content

Status -11: CL_BUILD_PROGRAM_FAILURE when dynamic load opencl #24435

@ghost

Description

System Information

OpenCV version: 4.8.0
Operating System / Platform: Ubuntu 20.04
Compiler & compiler version: GCC 9.3.0
CROSS_COMPILE to rk3588 platform

Detailed description

OpenCL program build log: imgproc/remap
Status -11: CL_BUILD_PROGRAM_FAILURE
-D INTER_LINEAR -D BORDER_CONSTANT -D T=uchar3 -D rowsPerWI=1 -D WT=float3 -D convertToT=convert_uchar3_sat_rte -D convertToWT=convert_float3 -D convertToWT2=convert_float2 -D WT2=float2 -D T=uchar3 -D T1=uchar -D cn=3 -D ST=uchar4 -D depth=0
:175:9: error: expected member name or ';' after declaration specifiers
int32_t depth; /**< The image depth. */

<built-in>:14:15: note: expanded from here
#define depth 0
              ^

<built-in>:175:8: error: expected ';' at end of declaration list
int32_t depth;             /**< The image depth. */
       ^

error: Compiler frontend failed (error code 62)

### Steps to reproduce

int main() {
cv::remap();
}

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [ ] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions