Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705604 - virtual/opencl provider media-libs/mesa[opencl] does not always provide OpenCL
Summary: virtual/opencl provider media-libs/mesa[opencl] does not always provide OpenCL
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-16 22:10 UTC by Maciej S. Szmigiero
Modified: 2020-05-14 20:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2020-01-16 22:10:41 UTC
virtual/opencl provider media-libs/mesa[opencl] doesn't always provide OpenCL,
since media-libs/mesa ignores opencl USE flag in some cases, that is:
if VIDEO_CARDS does not contain at least one of r600 or radeonsi, or if built
without either llvm or gallium USE flag.

In this case media-libs/mesa[opencl] will falsely satisfy virtual/opencl
dependency and then packages that depend on virtual/opencl will fail to build,
for example app-text/tesseract fails with:
checking for clGetPlatformIDs in -lOpenCL... no
configure: error: Required OpenCL library not found!

I guess media-libs/mesa should have its REQUIRED_USE set in a way that if its
opencl USE flag is set then this package other OpenCL dependencies are required,
too.
Comment 1 Matt Turner gentoo-dev 2020-05-14 20:25:39 UTC
With virtual/opencl-3-r1 we've changed things so that we always have an ICD loader that satisfies the virtual. With that in place, it's up to the user to install a package that provides a driver for their particular hardware.