Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836864

Summary: media-libs/mesa-22.0.1 - fails to run properly with clang: libLLVM-13.so: cannot open shared object file: No such file or directory
Product: Gentoo Linux Reporter: Michael Egger <egger.m>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED OBSOLETE    
Severity: normal CC: dschridde+gentoobugs, herrtimson, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: emerge_info
build.log

Description Michael Egger 2022-04-05 21:58:37 UTC
Created attachment 768924 [details]
emerge_info

Starting with mesa 22.0.0 the clang built mesa drivers are reporting an issue that LLVM-13.so cannot be loaded.
As a result of this all games that require wine and dxvk cannot be started.

This can be always reproduced with LLVM 13 and 14, however this doesn't occur on mesa 21.x.y.
Compiling mesa 22.0.1 with gcc fixes this issue.


Relevant log lines:

cat .local/share/sddm/xorg-session.log
...
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva error: dlopen of /usr/lib64/va/drivers/radeonsi_drv_video.so failed: libLLVM-13.so: cannot open shared object file: No such file or directory
libva info: va_openDriver() returns -1
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva error: dlopen of /usr/lib64/va/drivers/radeonsi_drv_video.so failed: libLLVM-13.so: cannot open shared object file: No such file or directory
libva info: va_openDriver() returns -1
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva error: dlopen of /usr/lib64/va/drivers/radeonsi_drv_video.so failed: libLLVM-13.so: cannot open shared object file: No such file or directory
libva info: va_openDriver() returns -1
libva info: VA-API version 1.14.0
...
Comment 1 Michael Egger 2022-04-05 22:08:59 UTC
Created attachment 768925 [details]
build.log
Comment 2 Michael Egger 2022-05-31 11:10:06 UTC
This seems to be no longer an issue with media-libs/mesa-22.1.0::gentoo and sys-devel/llvm-14.0.3::gentoo.

Games can be played normally again with wine and dxvk, not sure what the culprit is here, but setting NODEVICE_SELECT=1 helped as suggested on different Github issues. I'm not very involved with mesa, but it might be not a problem with mesa?


However the log can still be seen:
May 31 12:21:31 gentoo3 plasmashell[3121]: libva info: va_openDriver() returns -1
May 31 12:21:31 gentoo3 plasmashell[3121]: libva error: dlopen of /usr/lib64/va/drivers/radeonsi_drv_video.so failed: libLLVM-14.so: cannot open shared object file: No such file or directory
May 31 12:21:31 gentoo3 plasmashell[3121]: libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
May 31 12:21:31 gentoo3 plasmashell[3121]: libva info: VA-API version 1.14.0

but the log lines seem to stem from firefox with experimental hardware acceleration enabled.