Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76845 - [opencl-mesa] Required dependencies are not installed

Attached to Project: Arch Linux
Opened by firescry (firescry) - Friday, 16 December 2022, 13:59 GMT
Last edited by Laurent Carlier (lordheavy) - Thursday, 16 February 2023, 18:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Laurent Carlier (lordheavy)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Libraries delivered by "opencl-mesa" package have run-time dependency for other libraries, which are delivered by "spirv-tools" and "spirv-llvm-translator" packages, but they are not installed as dependencies for "opencl-mesa" (there is only "make" dependency between them).
OpenCL installation is not working without these libs (clinfo shows no available OpenCL platforms). After installing manually these two dependencies clinfo shows 2 OpenCL platforms correctly (Clover + Rusticl).

Additional info:
* opencl-mesa 22.3.1-1

Steps to reproduce:
Install "opencl-mesa" package on the system without prior instillation for "spirv-tools" and "spirv-llvm-translator".
This task depends upon

Closed by  Laurent Carlier (lordheavy)
Thursday, 16 February 2023, 18:45 GMT
Reason for closing:  Fixed
Comment by Laurent Carlier (lordheavy) - Sunday, 18 December 2022, 13:15 GMT
Please check mesa 22.3.1-2 in testing
Comment by firescry (firescry) - Sunday, 18 December 2022, 13:58 GMT
I confirm that opencl-mesa 22.3.1-2 solves the problem I reported. Thank you! :)

I additionally checked the package with namcap and it reports missing dependency for "lm_sensors":

$ namcap /var/cache/pacman/pkg/opencl-mesa-22.3.1-2-x86_64.pkg.tar.zst
opencl-mesa W: Unused shared library '/usr/lib/libz.so.1' by file ('usr/lib/gallium-pipe/pipe_r300.so')
opencl-mesa W: Unused shared library '/usr/lib/libzstd.so.1' by file ('usr/lib/gallium-pipe/pipe_r300.so')
opencl-mesa E: Dependency lm_sensors detected and not included (libraries ['usr/lib/libsensors.so.5'] needed in files ['usr/lib/libRusticlOpenCL.so.1.0.0'])
opencl-mesa W: Dependency included and not needed ('libclc')

Although it doesn't seem like a problem from user perspective as "lm_sensors" is installed as dependency for "mesa" package and "opencl-mesa" probably wouldn't work without "mesa" anyway.

Loading...