Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402407 - x11-drivers/nvidia-drivers-290.10-r1 ebuild breaks cuda-rt applications
Summary: x11-drivers/nvidia-drivers-290.10-r1 ebuild breaks cuda-rt applications
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Kacper Kowalik (Xarthisius) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-06 14:43 UTC by Benjamin Schindler
Modified: 2012-02-07 15:49 UTC (History)
3 users (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 Benjamin Schindler 2012-02-06 14:43:55 UTC
I have a program I'm working on which uses the cuda-runtime (version 4.1, installed by portage). Since the revbump (290.10-r1), my application reports: CUDA driver version is insufficient for CUDA runtime version.

Downgrading to 290.10 fixes the problem. Also, (may be its related): I'm using cmake to locate the cuda libraries. Since the revbump, the cuda-library is not found and I have to point directly to /usr/lib64/OpenCL/vendor/nvidia/libcuda.so

Reproducible: Always

Steps to Reproduce:
1. Install cuda-toolkit-4.1
2. Install the 290.10-r1 driver
3. Compile an application using the cuda runtime (I guess the sdk examples should do)
4. run the example. It should fail with the mentioned error
Actual Results:  
CUDA driver version is insufficient for CUDA runtime version.

Expected Results:  
Working application

Portage 2.1.10.45 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Xeon-R-_CPU_E5430_@_2.66GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 06 Feb 2012 07:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.2-r3, 3.1.4-r3, 3.2-r2
dev-util/cmake:           2.8.7-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.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
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo wdzierzan local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
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 xattr"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/wdzierzan /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac accessibility acl alsa amd64 bash-completion berkdb bzip2 cairo chm cleartype cli cmake consolekit cracklib crypt cups cupsddk curl cxx dbus dri dvd encode exif expat fam ffmpeg fontconfig fortran gdbm gif git gnome gphoto2 gpm gtk iconv imagemagick inotify ipv6 jpeg jpeg2k kde kdrive kerberos kpathsea latex ldap libnotify lm_sensors mad mercurial mmx mng modules mp3 msn mudflap multilib mysql ncurses nls nptl nptlonly ogg opencl opengl openmp oscar pam pch pcre pdf perl plasma png policykit ppds pppd pulseaudio python qt3support qt4 raw rdp readline samba sasl sdl semantic-desktop session snmp sound spell sql sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora threads tiff truetype udev unicode upnp valgrind vim-syntax vorbis webkit x264 xattr xcb xcomposite xinerama xmp xorg xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="en" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-02-06 22:44:47 UTC
xathisius,

I believe this is related to your addition of the OpenCL eselect support, can you please look into this?
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-07 09:48:45 UTC
(In reply to comment #0)
> I have a program I'm working on which uses the cuda-runtime (version 4.1,
> installed by portage). Since the revbump (290.10-r1), my application reports:
> CUDA driver version is insufficient for CUDA runtime version.
> 
> Downgrading to 290.10 fixes the problem. Also, (may be its related): I'm using
> cmake to locate the cuda libraries. Since the revbump, the cuda-library is not
> found and I have to point directly to
> /usr/lib64/OpenCL/vendor/nvidia/libcuda.so

Could you check if:
eselect opencl set nvidia
fixes this for you? It's prolly my fault not doing eselect during postinst...
Comment 3 Benjamin Schindler 2012-02-07 10:36:37 UTC
Yes, this fixes the problem here. Also, detection of cuda libraries works again in cmake (which is not surprising as links are created)

Thank you
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-07 15:49:58 UTC
  07 Feb 2012; Kacper Kowalik <xarthisius@gentoo.org>
  nvidia-drivers-290.10-r1.ebuild:
  Run eselect opencl during pkg_postinst wrt bug 402407 by Benjamin Schindler
  <bschindler@student.ethz.ch> Add missing files to QA_* though some warnigs
  still slip through