apache / apache/arrow

[C++] arrow-cuda pkgconf file incorrectly requires 'cuda'

Open
#48,136 2 comments 0 reactions 0 assignees View on GitHub
Component: C++ Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

The pkgconf file for arrow-cuda hardcodes a `Requires` of cuda:

https://github.com/apache/arrow/blob/46b033f0bd18ce5c0fcc69cd6523cdbb7acd48cd/cpp/src/arrow/gpu/arrow-cuda.pc.in#L25

Unfortunately using the nvidia/cuda docker image:

https://hub.docker.com/r/nvidia/cuda

The name of the requirement is actually `cuda-13.0`, and querying arrow-cuda as a result will return an error:

```
$ pkgconf --libs arrow-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
Package 'cuda', required by 'arrow-cuda', not found
```

If you manually edit the arrow-cuda.pc file to require `cuda-13.0` things work

I'm not sure how stable the cuda names are - maybe its worth removing?

cc @zeroshade in case of any insights

### Component(s)

C++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.