opencl error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram
**Describe the bug**
Try to run on AMD 6750 with opencl and there is a compilation/build failure and error
**To Reproduce**
./xmrig --no-cpu --opencl --opencl-platform=1 -o gulf.moneroocean.stream:10128
**Expected behavior**
Mining works
**Required data**
xmrig-v6.22.2-mo1-lin64
- Miner log as text or screenshot

[2025-06-02 17:44:37.010] opencl GPU #0 compiling...
[2025-06-02 17:44:37.252] opencl error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram
BUILD LOG:
input.cl:156:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:156:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:156:54: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:156:73: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:157:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:157:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:157:54: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:157:73: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:158:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:158:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:158:54: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:158:73: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:159:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:159:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:159:54: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:159:73: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:164:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:164:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:164:61: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:164:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:165:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:165:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:165:61: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:165:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:166:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:166:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:166:61: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:166:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:167:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:167:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:167:61: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:167:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:194:31: error: use of undeclared identifier 'amd_bfe'
input.cl:190:29: note: expanded from macro 'SubWord'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:194:31: error: use of undeclared identifier 'amd_bfe'
input.cl:190:58: note: expanded from macro 'SubWord'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:194:31: error: use of undeclared identifier 'amd_bfe'
input.cl:190:87: note: expanded from macro 'SubWord'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:194:31: error: use of undeclared identifier 'amd_bfe'
input.cl:190:114: note: expanded from macro 'SubWord'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:241:17: error: use of undeclared identifier 'amd_bitalign'
input.cl:244:17: error: use of undeclared identifier 'amd_bitalign'
input.cl:1102:14: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1102:36: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1102:58: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1102:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1103:14: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1103:36: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1103:58: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1103:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1104:14: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1104:36: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1104:58: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1104:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1105:14: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1105:36: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1105:58: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1105:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
[2025-06-02 17:44:37.252] opencl thread #1 failed with error CL_INVALID_PROGRAM
[2025-06-02 17:44:37.252] opencl thread #1 self-test failed
[2025-06-02 17:44:37.252] opencl GPU #0 compiling...
[2025-06-02 17:44:37.492] opencl error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram
BUILD LOG:
input.cl:156:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:156:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:156:54: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:156:73: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:157:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:157:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:157:54: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:157:73: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:158:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:158:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:158:54: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:158:73: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:159:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:159:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:159:54: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:159:73: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:164:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:164:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:164:61: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:164:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:165:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:165:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:165:61: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:165:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:166:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:166:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:166:61: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:166:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:167:16: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:167:35: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:167:61: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:167:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:194:31: error: use of undeclared identifier 'amd_bfe'
input.cl:190:29: note: expanded from macro 'SubWord'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:194:31: error: use of undeclared identifier 'amd_bfe'
input.cl:190:58: note: expanded from macro 'SubWord'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:194:31: error: use of undeclared identifier 'amd_bfe'
input.cl:190:87: note: expanded from macro 'SubWord'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:194:31: error: use of undeclared identifier 'amd_bfe'
input.cl:190:114: note: expanded from macro 'SubWord'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:241:17: error: use of undeclared identifier 'amd_bitalign'
input.cl:244:17: error: use of undeclared identifier 'amd_bitalign'
input.cl:1102:14: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1102:36: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1102:58: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1102:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1103:14: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1103:36: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1103:58: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1103:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1104:14: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1104:36: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1104:58: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1104:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1105:14: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1105:36: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1105:58: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
input.cl:1105:80: error: use of undeclared identifier 'amd_bfe'
input.cl:139:21: note: expanded from macro 'BYTE'
[2025-06-02 17:44:37.492] opencl thread #0 failed with error CL_INVALID_PROGRAM
[2025-06-02 17:44:37.492] opencl thread #0 self-test failed
[2025-06-02 17:44:37.492] opencl disabled (failed to start threads)
- OS: Pop_OS (based on ubuntu 22.04)
-
-
- For GPU related issues: information about GPUs and driver version.
This GPU is in a thunderbolt external GPU enclosure.
Platform Name Clover
Number of devices 1
Device Name AMD Radeon RX 6750 XT (radeonsi, navi22, LLVM 15.0.7, DRM 3.63, 6.12.10-76061203-generic)
Device Vendor AMD
Device Vendor ID 0x1002
Device Version OpenCL 1.1 Mesa 25.0.5 - kisak-mesa PPA
Device Numeric Version 0x401000 (1.1.0)
Driver Version 25.0.5 - kisak-mesa PPA
Device OpenCL C Version OpenCL C 1.1
Device Type GPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Max compute units 40
Max clock frequency 2880MHz
Max work item dimensions 3
Max work item sizes 256x256x256
Max work group size 256
Preferred work group size multiple (kernel) 64
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 0 / 0 (n/a)
float 4 / 4
double 2 / 2 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 12884901888 (12GiB)
Error Correction support No
Max memory allocation 3221225472 (3GiB)
Unified memory for Host and Device No
Minimum alignment for any data type 128 bytes
Alignment of base address 32768 bits (4096 bytes)
Global Memory cache type None
Image support No
Local memory type Local
Local memory size 65536 (64KiB)
Max number of constant args 16
Max constant buffer size 67108864 (64MiB)
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Profiling timer resolution 0ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
ILs with version (n/a)
Built-in kernels with version (n/a)
Device Extensions cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64 cl_khr_extended_versioning
Device Extensions with Version cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_int64_base_atomics 0x400000 (1.0.0)
cl_khr_int64_extended_atomics 0x400000 (1.0.0)
cl_khr_fp64 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Intel(R) OpenCL HD Graphics
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [INTEL]
clCreateContext(NULL, ...) [default] Success [INTEL]
clCreateContext(NULL, ...) [other] Success [MESA]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name Intel(R) OpenCL HD Graphics
Device Name Intel(R) Graphics [0x46a6]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name Intel(R) OpenCL HD Graphics
Device Name Intel(R) Graphics [0x46a6]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name Intel(R) OpenCL HD Graphics
Device Name Intel(R) Graphics [0x46a6]
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.14
ICD loader Profile OpenCL 3.0
关闭于 2025-06-03 1 条评论