Blender 2.78a Cycles GPU: OpenCL build failed #49897

Closed
opened 2016-10-31 20:59:12 +01:00 by Katharsas · 11 comments

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

**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 ](https://community.amd.com/message/2757616#comment-2757616): 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
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Katharsas

Added subscriber: @Katharsas
Katharsas changed title from Blender 2.78 Cycles GPU: OpenCL build failed to Blender 2.78a Cycles GPU: OpenCL build failed 2016-10-31 21:16:18 +01:00

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic
expression must have pointer-to-struct-or-union type
      float altitude = fabsf(safe_asinf(D->z))

This error is the same as #49874 and it should should be solved by a recent commit 5aa6a2ec06

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

``` expression must have pointer-to-struct-or-union type float altitude = fabsf(safe_asinf(D->z)) ``` This error is the same as #49874 and it should should be solved by a recent commit 5aa6a2ec06 Download the latest developer build and see if the error is fixed. Let us know if it worked, so we can take further actions.
Author

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.
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 the error is already reported in #49901. You can subscribe to that task to follow when it gets fixed.

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

@Katharsas the error is already reported in #49901. You can subscribe to that task to follow when it gets fixed. Since the original bug was fixed, i'll close this task.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Vuk Gardašević self-assigned this 2016-11-01 17:03:38 +01:00

Added subscriber: @PierreReyes

Added subscriber: @PierreReyes

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

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

Added subscriber: @orexisx89

Added subscriber: @orexisx89

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.

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.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#49897
No description provided.