nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1) (http://www.nvnews.net/vbulletin/showthread.php?t=161206)

ThunderRd 04-04-11 10:11 AM

gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
1 Attachment(s)
On my 64-bit Gentoo install the driver seems to install and function correctly with xorg-server-1.10, but Gentoo reports a reverse dependency problem as stated in the title:
Code:

Q6600 ~ # revdep-rebuild -ip
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 16% ]  *  broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
[ 100% ]               
 * Generated new 3_broken.rr
 * Assigning files to packages
 *  /usr/bin/nvidia-smi -> x11-drivers/nvidia-drivers
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --oneshot  --pretend x11-drivers/nvidia-drivers:0

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  R  #] x11-drivers/nvidia-drivers-270.30

After allowing the system to rebuild the driver (which happens successfully) revdep-rebuild reports the same, as if nothing has been solved.

nvidia-smi does exist in /usr/bin, but libnvidia-ml* does not exist anywhere:

Code:

Q6600 ~ # ls -al /usr/lib/libnvidia-ml.so.1
ls: cannot access /usr/lib/libnvidia-ml.so.1: No such file or directory

Code:

Q6600 ~ # locate libnvidia
/usr/lib32/libnvidia-compiler.so
/usr/lib32/libnvidia-compiler.so.1
/usr/lib32/libnvidia-compiler.so.270.30
/usr/lib32/libnvidia-glcore.so
/usr/lib32/libnvidia-glcore.so.1
/usr/lib32/libnvidia-glcore.so.270.30
/usr/lib32/opengl/nvidia/lib/libnvidia-tls.so
/usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.1
/usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.270.30
/usr/lib64/libnvidia-cfg.so.1
/usr/lib64/libnvidia-cfg.so.270.30
/usr/lib64/libnvidia-compiler.so
/usr/lib64/libnvidia-compiler.so.1
/usr/lib64/libnvidia-compiler.so.270.30
/usr/lib64/libnvidia-glcore.so
/usr/lib64/libnvidia-glcore.so.1
/usr/lib64/libnvidia-glcore.so.270.30
/usr/lib64/opengl/nvidia/lib/libnvidia-tls.so
/usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.1
/usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.270.30


Licaon 04-04-11 10:22 AM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
the ebuild is broken then ?

that lib is in the official driver: http://www.nvnews.net/vbulletin/show....php?p=2404906

also attaching the bug-report is useless here since your system does not contain the nvidia install build log:
Quote:

*** /var/log/nvidia-installer.log does not exist
:-\

ThunderRd 04-04-11 10:42 AM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
1 Attachment(s)
Hmm...you're right about that log file. I wonder why it wasn't produced?

Unfortunately, xorg updated but gentoo does not have the 270.30 driver in portage as yet. I got the driver out of the stuff overlay, and it does seem to work properly, although it's reporting that unsatisfied dependency. What exactly is that library responsible for, and will I miss it until the 270.30 is in the tree?

AFAICT I won't miss it, but I'm not 100% sure yet.

ebuild is attached below, if you are interested.

ThunderRd 04-04-11 12:42 PM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
I seem to have solved the error by downloading an Arch tarball and extracting the missing libraries and symlinks to /usr/lib32 and /usr/lib64. Everything seems to work and revdep-rebuild is happy now.

Thanks for pointing me in the right direction.

Txema 04-04-11 01:04 PM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
I don't know what ebuild you are using but i renamed the ebuild of 270.26 version to 270.30 and all worked perfectly, even that file you said was missing is present in my installation ;)

danix 04-05-11 12:01 PM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
That's probably a Gentoo packaging bug.

libnvidia-ml is the NVIDIA Management Library. The cross-platform NVML API provides functions for querying and configuring the GPU. nvidia-smi, which was formerly a standalone app, is now an NVML client.

Since the libnvidia-ml DSO is new in the 270.xx drivers, it seems likely that some distro maintainers might have missed it when repackaging the driver.

ThunderRd 04-05-11 12:30 PM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
Thanks for that information, danix. I'll see if I can confirm that with people in the know from the Gentoo side.

P.Kosunen 04-05-11 01:32 PM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
Quote:

Originally Posted by danix (Post 2414802)
That's probably a Gentoo packaging bug.

http://packages.gentoo.org/package/x...nvidia-drivers

270.30 is not yet in portage.

I have no problems with /usr/lib/libnvidia-ml.so.1 file and older (official) ebuild copied to 270.30.

ThunderRd 04-06-11 12:39 AM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
It must be a problem with the ebuild in the stuff overlay. Just to test it I might do as you say and copy over the 270.18 to 270.30 and see if it installs correctly.

conky 04-06-11 01:22 AM

Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
 
He'll also need to change the xorg-server dependency from <x11-base/xorg-server-1.10.0 to <x11-base/xorg-server-1.10.99 when copying that ebuild, otherwise it will block xorg-server-1.10.0.


All times are GMT -5. The time now is 11:16 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.