Page MenuHome

Blender 2.78a Cycles GPU: OpenCL build failed
Closed, InvalidPublic

Description

System Information
Win 10 64bit, i7 3820, Radeon R9 280

Blender Version
Broken: 2.78a (official)
Worked: 2.76, 2.77a, 2.78 (official)

Short description of error
As reported in AMD Forum:
Trying to set viewport shading to rendered or rendering with F12 produces error: OpenCL build failed: errors in console

Console output:

Device init success
Compiling base_kernel OpenCL kernel ...
Build flags: -D__NODES_MAX_GROUP__=3 -D__NODES_FEATURES__=15 -D__MAX_CLOSURE__=64 -D__NO_HAIR__ -D__NO_OBJECT_MOTION__ -D__NO_CAMERA_MOTION__ -D__NO_BAKING__ -D__NO_VOLUME__ -D__NO_SUBSURFACE__ -D__NO_BRANCHED_PATH__ -D__NO_PATCH_EVAL__
OpenCL kernel build output:
"C:\Program Files\Blender Foundation\Blender\2.78\scripts\addons\cycles\kernel\kernels/opencl\../../kernel_projection.h", line 238: error:
          expression must have pointer-to-struct-or-union type
                float altitude = fabsf(safe_asinf(D->z));
                                 ^

1 error detected in the compilation of "C:\Users\Jan\AppData\Local\Temp\OCL3304T2.cl".
Frontend phase failed compilation.

OpenCL build failed: errors in console
Build error: CL_BUILD_PROGRAM_FAILURE

Exact steps for others to reproduce the error
Download Blender 2.78, install, enable GPU, render default scene

Event Timeline

Katharsas (Katharsas) renamed this task from Blender 2.78 Cycles GPU: OpenCL build failed to Blender 2.78a Cycles GPU: OpenCL build failed.Oct 31 2016, 9:15 PM
Katharsas (Katharsas) updated the task description. (Show Details)
Vuk Gardašević (lijenstina) lowered the priority of this task from 90 to 30.Oct 31 2016, 9:34 PM
expression must have pointer-to-struct-or-union type
      float altitude = fabsf(safe_asinf(D->z))

This error is the same as T49874 and it should should be solved by a recent commit rB5aa6a2ec06bbfa9ddd255c90ee02da5f9be36f30

Download the latest developer build and see if the error is fixed.
Let us know if it worked, so we can take further actions.

I tried a build from today (blender-2.78-1ee43c5-win64) and the original error is gone, instead i get a different one:
Failed loading render kernel, see console for errors.

Console:

Device init success
Compiling OpenCL program base
OpenCL build failed with error CL_BUILD_PROGRAM_FAILURE, errors in console.
OpenCL program base build output: "C:\Users\xyz\Downloads\blender-2.78-1ee43c5-win64\blender-2.78.0-git.1ee43c5-windows64\2.78\scripts\addons\cycles\kernel\kernels/opencl\../..\../../kernel_shader.h", line 280: error:
          struct "ShaderData" has no field "ob_tfm"
                ccl_fetch(sd, ob_tfm)  = lamp_fetch_transform(kg, lamp, false);
                ^

"C:\Users\xyz\Downloads\blender-2.78-1ee43c5-win64\blender-2.78.0-git.1ee43c5-windows64\2.78\scripts\addons\cycles\kernel\kernels/opencl\../..\../../kernel_shader.h", line 281: error:
          struct "ShaderData" has no field "ob_itfm"
                ccl_fetch(sd, ob_itfm) = lamp_fetch_transform(kg, lamp, true);
                ^

2 errors detected in the compilation of "C:\Users\xyz\AppData\Local\Temp\OCL5004T1.cl".
Frontend phase failed compilation.

@Katharsas (Katharsas) the error is already reported in T49901. You can subscribe to that task to follow when it gets fixed.

Since the original bug was fixed, i'll close this task.

Vuk Gardašević (lijenstina) changed the task status from Unknown Status to Unknown Status.Nov 1 2016, 5:03 PM

hi there i wonder if you can please solve this issue with openCL with Asus HD7770, GPU Cape Verde XT, i can't display anything with cycles

I actually made an account so I could confirm that in the Daily build

blender-2.78-5e31e07-linux-glibc219-x86_64

While the main release still has this bug present.