Bug 1044646

Summary: Missing libclc dependency in Mesa-libOpenCL
Product: [openSUSE] openSUSE Tumbleweed Reporter: Petr Cervinka <petr>
Component: X.OrgAssignee: E-mail List <xorg-maintainer-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P3 - Medium    
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Petr Cervinka 2017-06-16 07:51:46 UTC
I tried clinfo on latest/updated Tumbleweed with clinfo and Mesa-libOpenCL installed:
Mesa-libOpenCLL Version: 17.1.1-163.2              
clinfo          Version: 2.1.17.02.09-1.2 

It ended with error:
=== CL_PROGRAM_BUILD_LOG ===
fatal error: cannot open file '/usr/lib64/clc//tonga-amdgcn-mesa-mesa3d.bc': No such file or directory
  Preferred work group size multiple              <getWGsizes:500: build program : error -11>

I found that directory /usr/lib64/clc/ is missing, because libclc package was not installed. 

Simple "zypper in libclc" solved the problem.

I believe that Mesa-libOpenCL package should have libclc as dependency.

It can be probably resolved by "Requires" update in Mesa.spec file:

%if 0%{with_opencl}
BuildRequires:  libclc
BuildRequires:  llvm-clang-devel
Requires:       libclc
%endif
Comment 1 Petr Cervinka 2017-06-16 07:56:22 UTC
I will do a fix in factory.
Comment 2 Stefan Dirsch 2017-06-16 08:20:55 UTC
Already fixed. ;-) Thanks!
Comment 3 Bernhard Wiedemann 2017-06-16 10:03:45 UTC
This is an autogenerated message for OBS integration:
This bug (1044646) was mentioned in
https://build.opensuse.org/request/show/504023 Factory / Mesa