FS#53360 - [nvidia-340xx-utils] glxinfo/plasna/krunnex not working withour LD_LIBRARY_PATH

Attached to Project: Arch Linux
Opened by Mikołaj (travnick) - Saturday, 18 March 2017, 12:14 GMT
Last edited by Laurent Carlier (lordheavy) - Tuesday, 25 July 2017, 08:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Laurent Carlier (lordheavy)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No


After Update plasma stopped working (after login there is black screen with crash report about krunner)
It seem that libGL is not properly loaded.

glxinfo was not working until adding LD_LIBRARY_PATH=/usr/lib/nvidia or LD_PRELOAD=/usr/lib/nvidia/libGL.so

Additional info:
* package version(s)
extra/nvidia-340xx 340.102-4
extra/nvidia-340xx-utils 340.102-8

* config and/or log files etc.

Steps to reproduce:


add in /etc/profile.d/
file "ld_library_path_nvidia_fix.sh"

export LD_LIBRARY_PATH=/usr/lib/nvidia:#LD_LIBRARY_PATH

now plasma starts and every GL application
This task depends upon

Closed by  Laurent Carlier (lordheavy)
Tuesday, 25 July 2017, 08:46 GMT
Reason for closing:  No response
Comment by Jan de Groot (JGC) - Saturday, 18 March 2017, 13:36 GMT
PKGBUILD contains:
install -dm 755 "${pkgdir}"/etc/ld.so.conf.d
echo -e '/usr/lib/nvidia/' > "${pkgdir}"/etc/ld.so.conf.d/00-nvidia.conf

So /usr/lib/nvidia is added to the LD_LIBARY_PATH.

Only thing I could think of is that it should be without trailing / and echoed without "-e".
Comment by Laurent Carlier (lordheavy) - Saturday, 18 March 2017, 18:30 GMT
Can you paste the content of /etc/ld.so.conf.d/, also the output of 'lconfig -v' (ld-config -v > output.txt)
Comment by Simon Parzer (oncer) - Friday, 24 March 2017, 10:26 GMT
I have the same issue, where gnome-shell, gnome-control-center and some other apps (like glxinfo) fail to start.
Adding /usr/lib/nvidia to LD_LIBRARY_PATH temporarily fixes the problem.

simon@simon-desktop ~ » cat /etc/ld.so.conf.d/00-nvidia.conf

simon@simon-desktop ~ » ldconfig -v | less
libnvidia-encode.so.1 -> libnvidia-encode.so.340.102
libnvidia-glcore.so.340.102 -> libnvidia-glcore.so.340.102
libGLESv2.so.2 -> libGLESv2.so.340.102
libnvcuvid.so.1 -> libnvcuvid.so.340.102
libGLESv1_CM.so.1 -> libGLESv1_CM.so.340.102
libnvidia-cfg.so.1 -> libnvidia-cfg.so.340.102
libnvidia-fbc.so.1 -> libnvidia-fbc.so.340.102
libnvidia-eglcore.so.340.102 -> libnvidia-eglcore.so.340.102
libnvidia-glsi.so.340.102 -> libnvidia-glsi.so.340.102
libGL.so.1 -> libGL.so.340.102
libnvidia-ml.so.1 -> libnvidia-ml.so.340.102
libEGL.so.1 -> libEGL.so.340.102
libnvidia-tls.so.340.102 -> libnvidia-tls.so.340.102
libnvidia-ifr.so.1 -> libnvidia-ifr.so.340.102
libcuda.so.1 -> libcuda.so.340.102
Comment by Simon Parzer (oncer) - Friday, 24 March 2017, 10:32 GMT
» ldd /usr/bin/glxinfo
linux-vdso.so.1 (0x00007ffee71f2000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f339b604000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f339b2c5000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f339af21000)
libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007f339acf0000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f339aade000)
libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007f339a828000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f339a624000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f339a406000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f339a1dd000)
/lib64/ld-linux-x86-64.so.2 (0x00007f339b88f000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f3399fd9000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f3399dd3000)

» pacman -Qo /usr/lib/libGL.so
/usr/lib/libGL.so is owned by libglvnd 0.2.999+g4ba53457-1

Comment by Darek (blablo) - Monday, 01 May 2017, 08:29 GMT
Nvidia 340/304 does not support glvnd. Users of these cards should not be forced to install the libglvnd package at all.
Comment by Simon Parzer (oncer) - Monday, 01 May 2017, 18:48 GMT
Darek: gtk3 depends on mesa, mesa depends on libglvnd, so it's not easily possible to remove libglvnd if you want to keep the GNOME desktop installed
Comment by Darek (blablo) - Monday, 01 May 2017, 19:04 GMT
Please see  FS#53623 
Comment by Laurent Carlier (lordheavy) - Monday, 19 June 2017, 06:23 GMT
Do you have gnustep-make installed?