Bug 1582884 - pocl should depend on clang-devel
Summary: pocl should depend on clang-devel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-27 16:50 UTC by Steve Holland
Modified: 2018-10-14 23:39 UTC (History)
8 users (show)

Fixed In Version: clang-6.0.1-2.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-14 23:39:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Steve Holland 2018-05-27 16:50:26 UTC
Description of problem:
Pocl needs to be able to compile OpenCL kernels in order to be used. 
it depends on the 'compiler-rt' package (which is part of clang) in order to do this. 

It requires the file: /usr/lib64/clang/6.0.0/include/opencl-c.h
which is provided by the main clang package to be available in order to compile many OpenCL kernels

Else the build fails:  
error: <built-in>:2:10: '/usr/lib64/clang/6.0.0/include/opencl-c.h' file not found


Version-Release number of selected component (if applicable):
pocl-1.1-2

How reproducible:
Always

Steps to Reproduce:
1. Install pocl, compiler-rt, pyopencl, and other dependencies
2. make sure clang  is NOT installed (rpm -e clang)
3. Run the following Python testcase
import pyopencl as cl
ctx = cl.create_some_context()
prg = cl.Program(ctx, """
__kernel void testcase(
    __global const float *a_g, __global float *res_g)
{
  int gid = get_global_id(0);
  res_g[gid] = a_g[gid]*M_PI;
}
""").build()


Actual results:
error: <built-in>:2:10: '/usr/lib64/clang/6.0.0/include/opencl-c.h' file not found

Expected results:
Successful compile of OpenCL kernel


Additional info:
Possible fix: 
  * pocl could depend on clang as well as compiler-rt

Comment 1 Tom Stellard 2018-09-19 04:35:18 UTC
I think this is a clang bug.  The headers should be moved into the clang-libs package, because the clang libraries reference the headers.

Comment 2 Fedora Update System 2018-10-05 01:39:09 UTC
clang-6.0.1-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-f61cc29110

Comment 3 Fedora Update System 2018-10-05 19:32:00 UTC
clang-6.0.1-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-f61cc29110

Comment 4 Fedora Update System 2018-10-14 23:39:06 UTC
clang-6.0.1-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.