missing ocl_stdlib.h

Bug #1255323 reported by Robert Jobbagy
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
beignet (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I installed beignet 0.3-1 package and run sample program, I gave this error :

fatal error: malformed or corrupted PCH file: 'could not find file '/build/buildd/beignet-0.3/obj-x86_64-linux-gnu/backend/src/ocl_stdlib.h' referenced by AST file'
1 error generated.
*** build of 'sum' on 'Intel HD Graphics Family' said:

*** (end of message)
*** 'clBuildProgram' in 'cl-helper.c' on line 470 failed with error 'invalid program'.
Aborted (core dumped)

and made some investigation here :

https://launchpadlibrarian.net/154856263/buildlog_ubuntu-trusty-amd64.beignet_0.3-1_UPLOADING.txt.gz

and I found that compile mistake :

missing ocl_stdlib.h here :

-- Install configuration: "RelWithDebInfo"
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/cl_platform.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/cl.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/cl_ext.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/cl_gl.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/opencl.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/cl_gl_ext.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/cl_d3d10.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/cl_intel.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/CL/cl.hpp
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/lib/beignet/libgbe.so
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/lib/beignet/ocl_stdlib.h.pch
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/include/gen/program.h
-- Installing: /build/buildd/beignet-0.3/debian/tmp/usr/lib/beignet/libcl.so

and here too :

chroot-autobuild/build/buildd/beignet-dev_0.3-1_amd64.deb:
drwxr-xr-x root/root 0 2013-10-24 05:10 ./
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/share/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/share/doc/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/share/doc/beignet-dev/
-rw-r--r-- root/root 2348 2013-04-09 15:13 ./usr/share/doc/beignet-dev/copyright
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/include/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/include/CL/
-rw-r--r-- root/root 4974 2013-10-22 07:06 ./usr/include/CL/cl_intel.h
lrwxrwxrwx root/root 0 2013-10-24 05:10 ./usr/share/doc/beignet-dev/changelog.Debian.gz -> ../beignet/changelog.Debian.gz

chroot-autobuild/build/buildd/beignet_0.3-1_amd64.deb:
drwxr-xr-x root/root 0 2013-10-24 05:10 ./
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/lib/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/lib/beignet/
-rw-r--r-- root/root 19695160 2013-10-24 05:10 ./usr/lib/beignet/libgbe.so
-rw-r--r-- root/root 123248 2013-10-24 05:10 ./usr/lib/beignet/libcl.so
-rw-r--r-- root/root 4957604 2013-10-24 05:09 ./usr/lib/beignet/ocl_stdlib.h.pch
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/share/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/share/doc/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./usr/share/doc/beignet/
-rw-r--r-- root/root 2348 2013-04-09 15:13 ./usr/share/doc/beignet/copyright
-rw-r--r-- root/root 443 2013-10-24 05:10 ./usr/share/doc/beignet/changelog.Debian.gz
drwxr-xr-x root/root 0 2013-10-24 05:10 ./etc/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./etc/OpenCL/
drwxr-xr-x root/root 0 2013-10-24 05:10 ./etc/OpenCL/vendors/
-rw-r--r-- root/root 26 2013-05-21 07:27 ./etc/OpenCL/vendors/intel.icd

please fix it. Thanks

Revision history for this message
Robert Jobbagy (jobbagy-robert) wrote :

or /build/buildd/beignet-0.3/debian/tmp/usr/lib/beignet/ocl_stdlib.h.pch is broken

Revision history for this message
adi sis (adisis23) wrote :

I got this to
3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 07:38:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in beignet (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert Jobbagy (jobbagy-robert) wrote :

Now available beignet 0.8 stable version, if you can please replace this package with it.

Revision history for this message
Lars (larsmans) wrote :

But 0.8 is only available as a package in Ubuntu utopic. Any chance that the fix will be backported to trusty? The Beignet in that distro is unusable due to this issue -- even this kernel doesn't compile:

    __kernel void empty()
    {
    }

Revision history for this message
Rebecca Palmer (rebecca-palmer) wrote :

This file is present in 0.8 (utopic) and later, so I am closing this bug.

Note that due to a different bug, beignet may not work with linux 3.16 (utopic):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767148

Rebuilding the Vivid source package (_not_ trying to install the binary) in Trusty will probably work.

Changed in beignet (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.