Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270292 - sci-misc/boinc-6.4.5 - "Can't load libcudart" message in boinc manager
Summary: sci-misc/boinc-6.4.5 - "Can't load libcudart" message in boinc manager
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-05-18 13:09 UTC by Francois Chenier
Modified: 2009-05-29 17:01 UTC (History)
2 users (show)

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


Attachments
boinc-dont_seek_cuda_in_lib64_dir.diff (boinc-dont_seek_cuda_in_lib64_dir.diff,1.16 KB, patch)
2009-05-19 23:19 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Chenier 2009-05-18 13:09:46 UTC
For some funny reason, it seems there is an inconsistency between dev-util/nvidia-cuda-toolkit package and sci-misc/boinc init script. To works and get rid of "Can't load libcudart" message in boinc manager, I need to change the path (in /etc/init.d/boinc) where to look for libcudart.so library is as nvidia-cuda-toolkit install library files in /opt/cuda/lib AND NOT /opt/cuda/lib64 folder.

FIX
---

1) Update sci-misc/boinc init script to check if libcudart.so library is in /opt/cuda/lib OR /opt/cuda/lib64 directory.

-OR-

2) Fix nvidia-cuda-toolkit package to install library files in /opt/cuda/lib64 directory (and optionally add a soft link lib->lib64).

Users affected : amd64 having nvidia video cards and compiling boinc with USE="cuda" flag.
Comment 1 Sebastian Luther (few) 2009-05-18 15:17:19 UTC
Please provide emerge --info and "emerge -pvq boinc dev-util/nvidia-cuda-toolkit".
Comment 2 Francois Chenier 2009-05-18 22:12:16 UTC
(In reply to comment #1)
> Please provide emerge --info and "emerge -pvq boinc
> dev-util/nvidia-cuda-toolkit".
> 

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.30-rc4! x86_64)
=================================================================                                   
System uname: Linux-2.6.30-rc4!-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.0 
Timestamp of tree: Sun, 17 May 2009 20:30:01 +0000                                                  
app-shells/bash:     4.0_p17-r1                                                                     
dev-java/java-config: 2.1.7                                                                         
dev-lang/python:     2.6.2                                                                          
dev-util/cmake:      2.6.4                                                                          
sys-apps/baselayout: 2.0.0                                                                          
sys-apps/openrc:     0.4.3-r2                                                                       
sys-apps/sandbox:    1.9                                                                            
sys-devel/autoconf:  2.13, 2.63-r1                                                                  
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2                                                     
sys-devel/binutils:  2.19.1-r1                                                                      
sys-devel/gcc-config: 1.4.1                                                                         
sys-devel/libtool:   2.2.6a                                                                         
virtual/os-headers:  2.6.29                                                                         
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                      
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -Os -pipe"
DISTDIR="/home/Linux/Src"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/home/Linux"
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="/home/Linux/Overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="/ X alsa amd64 berkdb bzip2 cli cracklib crypt cups dbus dri fortran gdbm gpm iconv isdnlog jpeg midi mmx mudflap multilib ncurses nptl nptlonly ntplonly opengl openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd threads truetype unicode xcomposite xorg 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_default authz_default authz_host /     autoindex cache deflate dir disk_cache env expires ext_filter file_cache /      filter headers include info mem_cache mime mime_magic negotiation /   rewrite setenvif speling status vhost_alias unique_id" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

belgix@blackhill ~ $ emerge -pvq boinc nvidia-cuda-toolkit
[ebuild   R   ] dev-util/nvidia-cuda-toolkit-2.1  USE="-doc"
[ebuild   R   ] sci-misc/boinc-6.4.5-r2  USE="X cuda -server"
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-05-19 23:19:40 UTC
Created attachment 191850 [details, diff]
boinc-dont_seek_cuda_in_lib64_dir.diff

This is due to a patch which I submitted in bug #266637
Seems like cuda gets installed into /opt/cuda/lib on amd64 by intention (see bug #265722)

How about this possible fix?
Comment 4 Francois Chenier 2009-05-20 10:51:24 UTC
(In reply to comment #3)
> 
> How about this possible fix?
> 

BOINC is now happy on AMD64 ... (I deleted the soft link first in /var/lib/boinc just to be sure).

Wed May 20 20:16:12 2009 Local time is UTC +9 hours
Wed May 20 20:16:12 2009 Not using a proxy
Wed May 20 20:16:12 2009 CUDA devices found
Wed May 20 20:16:12 2009 Coprocessor: GeForce 9300M GS (1)

Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2009-05-21 14:52:09 UTC
@Spock:
please would you mind telling me which is the correct aproach.
Nvidia-cuda-toolkit installed itself into lib64, but now it installs into lib.
Is it the final destination, or it will change again?

Thx
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-05-29 16:43:31 UTC
No reponse from maintainer.
Fixing with the way we have patch for and closing as fixed.
Sorry for delay
Comment 7 Michal Januszewski (RETIRED) gentoo-dev 2009-05-29 16:57:37 UTC
(In reply to comment #6)
> No reponse from maintainer.
> Fixing with the way we have patch for and closing as fixed.

I'm sorry, I somehow missed that question :(

The patch is correct and /opt/cuda/lib is the final destination. 


Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2009-05-29 17:01:10 UTC
(In reply to comment #7)
> 
> I'm sorry, I somehow missed that question :(
> 
> The patch is correct and /opt/cuda/lib is the final destination. 
> 

No problem. Better late than never :]
Now i at least know i dont have to fear about stabilising that thing (as soon as you stabilise cuda) :]

Cheers