Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474450 - media-libs/mesa-9.2_pre20130619 cannot find libLLVM-3.3.so
Summary: media-libs/mesa-9.2_pre20130619 cannot find libLLVM-3.3.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 477432
Blocks:
  Show dependency tree
 
Reported: 2013-06-23 00:48 UTC by Francisco Blas Izquierdo Riera
Modified: 2013-10-22 15:18 UTC (History)
1 user (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 Francisco Blas Izquierdo Riera gentoo-dev 2013-06-23 00:48:05 UTC
Hi!

Both mesa's opencl.so, r600g_dri.so and swrastg_dri.so are unable to open libLLVM-3.3.so since /usr/lib64/llvm/ is not in the libraries' RPATH.

With the CL applications this manifests with the applications refusing to run showing "error while loading shared libraries: libLLVM-3.4svn.so: cannot open shared object file: No such file or directory" whilst with opengl the following are the relevant lines in the xorg.log 
[    60.099] (EE) AIGLX error: dlopen of /usr/lib64/dri/r600_dri.so failed (libLLVM-3.3.so: cannot open shared object file: No such file or directory)
[    60.099] (EE) AIGLX: reverting to software rendering
[    60.099] (II) AIGLX: Screen 0 is not DRI capable
[    60.155] (EE) AIGLX error: dlopen of /usr/lib64/dri/swrast_dri.so failed (libLLVM-3.3.so: cannot open shared object file: No such file or directory)
[    60.155] (EE) GLX: could not load software renderer
[    60.155] (II) GLX: no usable GL providers found for screen 0

Bug #473690 may be related.

http://blog.tremily.us/posts/rpath/ lists some solutions, one would be using  LDFLAGS=-Wl,-rpath=/usr/lib64/llvm another would be using chrpath to mangle these. Another (worse) solution is using LDPATH on the environment.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-23 20:08:15 UTC
It might be related to bug 428460.
As a temporary workaround, you can add an entry for /usr/$(get_libdir)/llvm to /etc/ld.so.conf.d/
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-31 23:00:24 UTC
This should be fixed in -3.3-r1 and -9999.