pkg-config definition file is missing

Bug #1957119 reported by ckie
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-cuda-toolkit (Ubuntu)

Bug Description


I expected pkg-config to be able to give me information about "cuda", but instead I got:
root@71f807687755:/alvr# pkg-config --libs --cflags cuda
Package cuda was not found in the pkg-config search path.
Perhaps you should add the directory containing `cuda.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cuda' found

Adding a file /usr/share/pkgconfig/cuda.pc fixes it:

root@71f807687755:/alvr# pkg-config --libs --cflags cuda
-I/usr/lib/cuda/include -L/usr/lib/cuda/lib64/stubs -lcuda

--- Versions ---
This is just a Docker container running `ubuntu:latest`.
root@71f807687755:/alvr# lsb_release -rd
Description: Ubuntu 20.04.3 LTS
Release: 20.04
root@71f807687755:/alvr# apt-cache policy nvidia-cuda-toolkit
  Installed: 10.1.243-3
  Candidate: 10.1.243-3
  Version table:
 *** 10.1.243-3 500
        500 focal/multiverse amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
CasperMD5CheckResult: skip
DistroRelease: Ubuntu 20.04
Package: nvidia-cuda-toolkit 10.1.243-3
PackageArchitecture: amd64
 PATH=(custom, no user)
Tags: focal
Uname: Linux 5.15.11-zen1 x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True

Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1957119

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at

Revision history for this message
ckie (ckie) wrote : Dependencies.txt

apport information

tags: added: apport-collected focal
description: updated
Revision history for this message
ckie (ckie) wrote : ProcCpuinfoMinimal.txt

apport information

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers