[Pkg-opencl-devel] Bug#809263: beignet: FTBFS: /usr/include/CL/cl_egl.h:31:21: fatal error: EGL/egl.h: No such file or directory

Brice Videau brice.videau at imag.fr
Tue Jan 5 09:42:31 UTC 2016


On 05-Jan-16 00:02, Rebecca N. Palmer wrote:
>>    [ 31%] Building C object src/CMakeFiles/cl.dir/cl_khr_icd.c.o
>>    cd 
>> /home/lamby/temp/cdt.20151228220726.tJcO28ENAf/beignet-1.1.1/obj-x86_64-linux-gnu/src 
>> && /usr/bin/cc  -DGEN7_SAMPLER_CLAMP_BORDER_WORKAROUND -DLLVM_36 
>> -Dcl_EXPORTS 
>> -I/home/lamby/temp/cdt.20151228220726.tJcO28ENAf/beignet-1.1.1/obj-x86_64-linux-gnu 
>> -I/home/lamby/temp/cdt.20151228220726.tJcO28ENAf/beignet-1.1.1 
>> -I/usr/include/libdrm 
>> -I/home/lamby/temp/cdt.20151228220726.tJcO28ENAf/beignet-1.1.1/src 
>> -I/usr/include/libdrm/.. 
>> -I/home/lamby/temp/cdt.20151228220726.tJcO28ENAf/beignet-1.1.1/src/../backend/src/backend 
>> -I/home/lamby/temp/cdt.20151228220726.tJcO28ENAf/beignet-1.1.1/src/../include 
>> -I/usr/lib/llvm-3.6/include  -DHAS_SUBSLICE_TOTAL -DHAS_EU_TOTAL 
>> -DHAS_USERPTR -DHAS_OCLIcd -DHAS_X11 -g -O2 -fstack-protector-strong 
>> -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
>> -DGBE_DEBUG=1   -funroll-loops -fstrict-aliasing -fPIC -Wall 
>> -Wcast-align -Wl,-E -fPIC   -o CMakeFiles/cl.dir/cl_khr_icd.c.o   -c 
>> /home/lamby/temp/cdt.20151228220726.tJcO28ENAf/beignet-1.1.!
> 1/src/cl_
> k
> hr_icd.c
>>    In file included from /usr/include/ocl_icd.h:40:0,
>>                     from 
>> /home/lamby/temp/cdt.20151228220726.tJcO28ENAf/beignet-1.1.1/src/cl_khr_icd.c:17:
>>    /usr/include/CL/cl_egl.h:31:21: fatal error: EGL/egl.h: No such 
>> file or directory
>
> This is probably due to ocl-icd 2.2.8 adding CL/cl_egl.h to the 
> headers #included by ocl_icd.h 
> (https://anonscm.debian.org/cgit/collab-maint/ocl-icd.git/commit/icd_generator.rb?id=9fdd8caf362d9b848f6a722e05e4f79768a82f72).
>
I reported this problem to Khronos. The worst is that commenting the 
#include <EGL/egl.h> results in functional headers. This dependency is 
not needed... So I asked if they could remove the include like they did 
for OpenGL... So far no answer. Maybe we could distribute modified 
cl_egl.h without the problematic includes.
> The obvious (but untested) fix is to add a dependency on 
> libegl1-mesa-dev, but does that belong in ocl-icd-dev or beignet?
>
> It is likely that pocl (the other user of ocl-icd-dev in main) is also 
> affected, but I haven't tested this.
>
> _______________________________________________
> Pkg-opencl-devel mailing list
> Pkg-opencl-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-opencl-devel
>




More information about the Pkg-opencl-devel mailing list