Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387991 - x11-drivers/nvidia-drivers-285.05.09 breaks nvidia-smi due to missing libnvidia-ml.so.1 symlink (QA issue?)
Summary: x11-drivers/nvidia-drivers-285.05.09 breaks nvidia-smi due to missing libnvid...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 09:54 UTC by Rick Harris
Modified: 2011-10-27 20:24 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nvidia-drivers-285.05.09_libnvidia-ml_fix.diff (nvidia-drivers-285.05.09_libnvidia-ml_fix.diff,556 bytes, text/plain)
2011-10-21 09:54 UTC, Rick Harris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Harris 2011-10-21 09:54:07 UTC
Created attachment 290439 [details]
nvidia-drivers-285.05.09_libnvidia-ml_fix.diff

# nvidia-smi
nvidia-smi: error while loading shared libraries: libnvidia-ml.so.1: cannot open shared object file: No such file or directory

# equery f nvidia-drivers | grep libnvidia-ml
/usr/lib/libnvidia-ml.so
/usr/lib/libnvidia-ml.so.285.05.09

Ebuild diff attached to create symlink libnvidia-ml.so.1 pointing to /usr/lib/libnvidia-ml.so.285.05.09
Comment 1 Robert Cabrera 2011-10-21 13:23:59 UTC
I can confirm this issue. After updating this morning I ran revdep-rebuild and nvidia-drivers was pulled into the rebuild cue with the following output:

* 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
[ 19% ]  *   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 --complete-graph=y --oneshot   x11-drivers/nvidia-drivers:0
..........
Calculating dependencies       ... done!                           

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-285.05.09
 * NVIDIA-Linux-x86_64-285.05.09.run RMD160 SHA1 SHA256 size ;-) ..................................................................
                                                                             
No matter how many times I rebuild nvidia-drivers it still gets pulled back in with the same error.
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2011-10-23 02:36:43 UTC
..  When I did a test install, I got:

 * Installing nvidia module
>>> Completed installing nvidia-drivers-285.05.09 into /var/tmp/portage/x11-drivers/nvidia-drivers-285.05.09/image/

ecompressdir: bzip2 -9 /usr/share/man
 * QA Notice: Missing soname symlink(s) will be automatically created:
 * 
 *      usr/lib/libnvcuvid.so.1 -> libnvcuvid.so.285.05.09
 *      usr/lib/libnvidia-ml.so.1 -> libnvidia-ml.so.285.05.09
 *      usr/lib/libXvMCNVIDIA_dynamic.so.1 -> libXvMCNVIDIA.so.285.05.09
 *      usr/lib/libnvidia-cfg.so.1 -> libnvidia-cfg.so.285.05.09
 * 

..which certainly implies that the ebuild itself isn't creating these symlinks and should be, but at the same time the end result would seem to be that they are created.

Could one of you please attach your emerge --info so as to confirm why the automatically generated symlinks are not generated for you?
Comment 3 giovanni.bobbio 2011-10-23 13:08:01 UTC
(In reply to comment #2)
> ..  When I did a test install, I got:
> 
>  * Installing nvidia module
> >>> Completed installing nvidia-drivers-285.05.09 into /var/tmp/portage/x11-drivers/nvidia-drivers-285.05.09/image/
> 
> ecompressdir: bzip2 -9 /usr/share/man
>  * QA Notice: Missing soname symlink(s) will be automatically created:
>  * 
>  *      usr/lib/libnvcuvid.so.1 -> libnvcuvid.so.285.05.09
>  *      usr/lib/libnvidia-ml.so.1 -> libnvidia-ml.so.285.05.09
>  *      usr/lib/libXvMCNVIDIA_dynamic.so.1 -> libXvMCNVIDIA.so.285.05.09
>  *      usr/lib/libnvidia-cfg.so.1 -> libnvidia-cfg.so.285.05.09
>  * 
> 
> ..which certainly implies that the ebuild itself isn't creating these symlinks
> and should be, but at the same time the end result would seem to be that they
> are created.
> 
> Could one of you please attach your emerge --info so as to confirm why the
> automatically generated symlinks are not generated for you?

root ~ # ls -la /usr/lib/libnvidia-ml.so.1
ls: cannot access /usr/lib/libnvidia-ml.so.1: No such file or directory
root ~ # ls -la /usr/lib/libnvidia-ml.so*
lrwxrwxrwx 1 root root     34 Oct 23 12:31 /usr/lib/libnvidia-ml.so -> /usr/lib/libnvidia-ml.so.285.05.09
-rwxr-xr-x 1 root root 231428 Oct 23 12:31 /usr/lib/libnvidia-ml.so.285.05.09

Same for the other libs. emerge --info follows

root ~ # emerge --info
Portage 2.1.10.30 (default/linux/x86/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.0.7-gentoo i686)
=================================================================
System uname: Linux-3.0.7-gentoo-i686-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Sun, 23 Oct 2011 10:00:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula googleearth AdobeFlash-10.1 dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going --jobs"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en it"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apng bash-completion bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dhcpcd dri dts dvd dvdr embedded emboss encode exif extensions fam firefox flac gd gdbm gdu gif git gnutls gpm iconv id3tag idn ipod java jpeg kde kipi lastfm lcms libnotify lm_sensors mad matroska mdnsresponder-compat minizip mmx mmxext mng modules mp3 mp4 mpeg mudflap mysql ncurses networkmanager nls nptl nptlonly ntp nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 rdesktop readline samba sdl secure-delete semantic-desktop sensord session spell sql sse sse2 sse3 sse4 ssl ssse3 startup-notification svg symlink sysfs tcpd thumbnail tiff truetype udev unicode usb vcd vnc vorbis wifi win32codecs x264 x86 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="mustek_usb" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Maksym 2011-10-24 08:36:15 UTC
Same for me:


revdep-rebuild -p
 * 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
[ 15% ]  *   broken /usr/bin/nvidia-smi (requires libnvidia-ml.so.1)
...

again and again

Portage 2.1.10.31 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Mon, 24 Oct 2011 05:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: sunrise gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.inode.at/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/local/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 apm aspell berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cvs cxx dbus declarative djvu dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran ftp gdbm gdu gif git gpm graphite gtk iconv icq ipv6 jabber jpeg kde kipi lame lcms libnotify lm_sensors lzo mad matroska mime mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf phonon plasma pm-utilspng png policykit ppds pppd qt3support qt4 raw readline savedconfig sdl semantic-desktop session spell sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora tiff truetype udev unicode usb v4l v4l2 vdpau vorbis wifi x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Tim Ryan 2011-10-26 18:30:17 UTC
Had the same problem. Running ldconfig -v fixes it.
Comment 6 giovanni.bobbio 2011-10-26 21:57:17 UTC
(In reply to comment #5)
> Had the same problem. Running ldconfig -v fixes it.

indeed
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2011-10-27 20:24:07 UTC
Fixed 285.05.09-r1.