[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
Rebecca N. Palmer
rebecca_palmer at zoho.com
Mon Jan 4 23:02:15 UTC 2016
> [ 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).
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.
More information about the Pkg-opencl-devel
mailing list