Empty /usr/include/CL after installation of nvidia-current and nvidia-current-dev

Bug #540171 reported by Jaakko Pero
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers (Ubuntu)
Fix Released
Undecided
Alberto Milone
Lucid
Fix Released
Undecided
Unassigned

Bug Description

$ sudo apt-get install nvidia-current nvidia-current-dev

The standard way of including OpenCL headers fails:

$ echo '#include <CL/cl.h>' > opencltest.c
$ gcc opencltest.c -o opencltest
opencltest.c:1:19: error: CL/cl.h: No such file or directory

After installation an empty directory is created:
$ ls -la /usr/include/CL
total 16
drwxr-xr-x 2 root root 4096 2010-03-05 13:39 .
drwxr-xr-x 50 root root 12288 2010-03-17 12:56 ..

The files that should be in the directory are actually found here:

$ ls -la /usr/include/nvidia-current/CL
total 92
drwxr-xr-x 2 root root 4096 2010-03-17 12:56 .
drwxr-xr-x 6 root root 4096 2010-03-17 12:56 ..
-rw-r--r-- 1 root root 6331 2010-02-25 15:35 cl_gl.h
-rw-r--r-- 1 root root 42996 2010-02-25 15:35 cl.h
-rw-r--r-- 1 root root 32533 2010-02-25 15:35 cl_platform.h

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

confirmed here

Changed in nvidia-graphics-drivers (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
status: New → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

Hi Jaakko,

This bug was reported against an earlier version of Ubuntu, can you
test if it still occurs on Lucid?

Please note we also provide technical support for older versions of
Ubuntu, but not in the bug tracker. Instead, to raise the issue through
normal support channels, please see:

    http://www.ubuntu.com/support

If you are the original reporter and can still reproduce the issue on
Lucid, please run the following command to refresh the report:

  apport-collect 540171

If you are not the original reporter, please file a new bug report, so
we can work with you as the original reporter instead (you can reference
bug 540171 in your report if you think it may be related):

  ubuntu-bug xorg

If by chance you can no longer reproduce the issue on Lucid or if you
feel it is no longer relevant, please mark the bug report 'Fix Released'
or 'Invalid' as appropriate, at the following URL:

  https://bugs.launchpad.net/ubuntu/+bug/540171

Changed in nvidia-graphics-drivers (Ubuntu):
status: Triaged → Incomplete
tags: added: needs-retested-on-lucid-by-june
Timo Aaltonen (tjaalton)
tags: added: lucid
removed: needs-retested-on-lucid-by-june
Changed in nvidia-graphics-drivers (Ubuntu):
status: Incomplete → Confirmed
status: Confirmed → Triaged
Revision history for this message
Alberto Milone (albertomilone) wrote :

Jaakko, you'll need to pass gcc the path to the openCL headers.

Try with the following command (which works here):
gcc opencltest.c -o opencltest -I/usr/include/nvidia-current/

Even if I moved the headers into /usr/include/CL you would still have to pass "-I/usr/include/CL" to gcc.

Revision history for this message
Alberto Milone (albertomilone) wrote :

It looks like nvidia-current installs an empty directory i.e. /usr/include/CL and this is a bug.

Revision history for this message
Jaakko Pero (jaakko-pero) wrote :

> Jaakko, you'll need to pass gcc the path to the openCL headers.

That's a negative, Sir. I should not have to include the system header directories of the distro. On Ubuntu these happen to include "/usr/include", so if I tell gcc to #include <CL/cl.h> it will look for /usr/include/CL/cl.h.

( http://gcc.gnu.org/onlinedocs/gcc-4.3.2//cpp/Search-Path.html#Search-Path )

Revision history for this message
Alberto Milone (albertomilone) wrote :

Sorry, I wrote /usr/include but I kept thinking about /usr/lib/ (as nvidia drivers store several components in /usr/lib/nvidia-current in order to work with the new alternatives system), hence my comments.

I'll fix the installation path of the headers.

Revision history for this message
Alberto Milone (albertomilone) wrote :

On a second thought, the only problem here is what I mentioned in comment 4 i.e. the empty directory (which I should remove).

OpenCL is not specific to Nvidia and we're shipping it in /usr/include/nvidia-current/ because the right solution would be a having a separate OpenCL package with those headers, as we really don't want each graphics driver (we can't predict how many drivers will do so in the future) to install the same headers in /usr/share/include.

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

This bug was fixed in the package nvidia-graphics-drivers - 195.36.24-0ubuntu1

---------------
nvidia-graphics-drivers (195.36.24-0ubuntu1) maverick; urgency=low

  * New upstream release:
    - Added support for the following GPUs:
      o GeForce GTX 480
      o GeForce GTX 470
      o Tesla C2050
    - Fixed a problem that caused occasional red flashes in XVideo
      frames (LP: #580763).
    - Added official support for xserver 1.8. The -ignoreABI option
      is no longer required with this version of the server.
    - Updated the "Supported NVIDIA GPU Products" list to include
      various supported GPUs that were missing previously.
  * debian/nvidia-current.dirs.in:
    - Do not install empty directories (GL, CL, cuda) in
      /usr/share/include (LP: #540171).
 -- Alberto Milone <email address hidden> Mon, 17 May 2010 16:39:07 +0200

Changed in nvidia-graphics-drivers (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote : Please test proposed package

Accepted into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in nvidia-graphics-drivers (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-graphics-drivers - 195.36.24-0ubuntu1~10.04

---------------
nvidia-graphics-drivers (195.36.24-0ubuntu1~10.04) lucid-proposed; urgency=low

  * New upstream release:
    - Added support for the following GPUs:
      o GeForce GTX 480
      o GeForce GTX 470
      o Tesla C2050
    - Fixed a problem that caused occasional red flashes in XVideo
      frames (LP: #580763).
    - Added official support for xserver 1.8. The -ignoreABI option
      is no longer required with this version of the server.
    - Updated the "Supported NVIDIA GPU Products" list to include
      various supported GPUs that were missing previously.
  * debian/nvidia-current.dirs.in:
    - Do not install empty directories (GL, CL, cuda) in
      /usr/share/include (LP: #540171).
 -- Alberto Milone <email address hidden> Mon, 24 May 2010 13:38:24 +0200

Changed in nvidia-graphics-drivers (Ubuntu Lucid):
status: Fix Committed → 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.