Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-04-11, 09:11 AM   #1
ThunderRd
Registered User
 
Join Date: Apr 2011
Posts: 5
Default gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)

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
Attached Files
File Type: gz nvidia-bug-report.log.gz (39.0 KB, 66 views)
ThunderRd is offline   Reply With Quote
Old 04-04-11, 09:22 AM   #2
Licaon
Registered User
 
Licaon's Avatar
 
Join Date: Nov 2004
Location: Between the keyboard and the chair.
Posts: 490
Default 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
:-\
Licaon is offline   Reply With Quote
Old 04-04-11, 09:42 AM   #3
ThunderRd
Registered User
 
Join Date: Apr 2011
Posts: 5
Default Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)

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.
Attached Files
File Type: txt nvidia-drivers-270.30.ebuild.txt (15.1 KB, 86 views)
ThunderRd is offline   Reply With Quote
Old 04-04-11, 11:42 AM   #4
ThunderRd
Registered User
 
Join Date: Apr 2011
Posts: 5
Default 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.
ThunderRd is offline   Reply With Quote
Old 04-04-11, 12:04 PM   #5
Txema
Registered User
 
Join Date: Aug 2008
Posts: 50
Default 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
Txema is offline   Reply With Quote
Old 04-05-11, 11:01 AM   #6
danix
NVIDIA Corporation
 
danix's Avatar
 
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
Default 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.
danix is offline   Reply With Quote
Old 04-05-11, 11:30 AM   #7
ThunderRd
Registered User
 
Join Date: Apr 2011
Posts: 5
Default 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.
ThunderRd is offline   Reply With Quote
Old 04-05-11, 12:32 PM   #8
P.Kosunen
Registered User
 
Join Date: Jan 2009
Posts: 57
Default Re: gentoo with 270.30 - broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)

Quote:
Originally Posted by danix View Post
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.
P.Kosunen is offline   Reply With Quote

Old 04-05-11, 11:39 PM   #9
ThunderRd
Registered User
 
Join Date: Apr 2011
Posts: 5
Default 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.
ThunderRd is offline   Reply With Quote
Old 04-06-11, 12:22 AM   #10
conky
Registered User
 
Join Date: Nov 2007
Posts: 70
Default 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.
conky is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:57 AM.


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