Rusticl OpenCL compilation fails in Houdini 20.5 with "nir_shader not fully linked"

Hi,

I’m using Fedora 44 with an AMD Radeon RX580 (8GB) and SideFX Houdini 20.5.684. When I use any OpenCL assisted features in Houdini, it fails. For eg; When I create a Copernicus network and add an SDF Shape node or a Pyrosolver node in Houdini 20.5, I get this error:

Error
Invalid source /obj/copnet1/sdfshape1/opencl1.
(Error: OpenCL Exception: Internal compilation error: nir_shader not fully linkedclBuildProgram (-11)).

and this is what I see on the terminal:
=== Rusticl warning: Patched Mesa libclc not detected. Upstream libclc may contain known bugs or breaking changes and isn't guaranteed to work reliably. Please visit Making sure you're not a bot! for more information. === OpenCL Exception: Internal compilation error: nir_shader not fully linkedclBuildProgram (-11)`

To confirm it was a GPU related issue, I switched the OpenCL settings in Houdini to CPU mode and that made the problematic functions/nodes were working again. Clearing Houdini’s OCL_CodeCache did not solve the problem.

I also have another version of houdini installed (v20.0) on the same machine and that version works with OpenCL through the GPU just fine.

Is this a known Fedora 44 Mesa/Rusticl/libclc compatibility issue?
Is there a recommended fix for this?

My System:
OS: Fedora 44 KDE
GPU: AMD Radeon RX 580 8gb (Polaris 10)
Houdini version: 20.5.684
Mesa/Rusticl package: mesa-libOpenCL-26.2.4-1.fc44
libclc: 22.1.8-1.fc44
libclc-spirv: 22.1.8-1.fc44
OpenCL implementation: Mesa Rusticl, RadeonSI
OpenCL device version: OpenCL 3.1
OpenCL C version: 1.2

Thanks,

Houdini is not a Fedora package.
You may find help here, but have you asked the houdini maintainers for help?

I understand. The question was regarding OpenCL/Rusticl compilation error in Mesa and I wanted to ask if there is a solution for it.

Besides houdini, it affects other applications as well that rely on OpenCL, like Darktable: RustiCL is the preferred OpenCL driver instead ROCm on AMD systems. - darktable - discuss.pixls.us

As per the discussion thread linked above: “The cause is that Fedora builds Mesa against upstream libclc rather than the patched mesa-libclc fork RustiCL expects. RustiCL warns about it on stderr, but it’s easy to miss. Building mesa-libclc and rebuilding Mesa against it fixed it entirely. Filed downstream — but worth knowing, since “RustiCL doesn’t work” reports on Fedora may share this cause.”

Another relevant discussion thread: AMD Rusticl OpenCL won't compile with llvm22 (upstream issue) · Issue #21662 · darktable-org/darktable · GitHub

I’m not a developer, so I was not able to fix this issue by reading these posts and I was hoping there was a solution/update from Fedora which resolves this error. I’ll be sharing this problem in the Houdini forums as well, so that their devs are also aware of this anomaly/error.

I’m guessing; but this is compiling a shader and the shader code comes from Houdini not Mesa.

If you provoke the bug with software packaged in Fedora you would be able to report as a bug.

I faced this same error while running Arri Reference Tool: “=== Rusticl warning: Patched Mesa libclc not detected. Upstream libclc may contain known bugs or breaking changes and isn’t guaranteed to work reliably. Please visit Making sure you're not a bot! for more information. ===[2026-10-22 17:28:25.404] [default]”

I also faced this error while opening DarkTable. I know that Houdini, Darktable and Arri are not Fedora packages, but there’s an underlying issue within Mesa RustiCL that’s breaking many GPU assisted functions in several softwares.

I found a Debian bug report about this exact same issue that does a better job of articulating the issue and proposed solution: I Challenge Thee