Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109256 - media-gfx/nvidia-cg-toolkit - libCg does not work
Summary: media-gfx/nvidia-cg-toolkit - libCg does not work
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-14 02:59 UTC by Wojciech Jaskowski
Modified: 2006-09-21 10:27 UTC (History)
0 users

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 Wojciech Jaskowski 2005-10-14 02:59:23 UTC
When try to compile program (g++) with -lCg linker says that installed library
is incompatible.


Reproducible: Always
Steps to Reproduce:
1. emerge nvidia-cg-toolkit
2. download sample code from
http://sourceforge.net/project/showfiles.php?group_id=104004&package_id=117303&release_id=245078
3. try to compile the program:  g++ -lCg -lCgGL -lGL -lglut -lGLU -pthread
helloGPGPU.cpp -o helloGPGPU

Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/../libCg
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib64/libCg
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible /usr/lib/libCg
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lCg
collect2: ld returned 1 exit status



Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r10 x86_64 AMD Opteron(tm) Processor 150
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa apache2 avi bash-completion bcmath berkdb
bitmap-fonts bzip2 cdparanoia cdr crypt cscope ctype cups dbus dri dv dvb dvd
dvdr dvdread eds emboss encode ethereal examples exif ffmpeg fftw foomaticdb
fortran ftp gcj gd gif glut gnustep gphoto2 gpm gps gstreamer gtk gtk2 icq
ieee1394 imagemagic imap imlib ipv6 jabber java javascript jikes jpeg ldap
libedit libg++ lm_sensors lzw lzw-tiff mad mime mng mp3 mpeg msn ncurses nls
nvidia objc ogg opengl pam pda pdflib perl png postgres python qt quicktime
readline samba sdl session slang sockets spell ssl tcpd tiff truetype
truetype-fonts type1-fonts unicode usb userlocales v4l vcd vim-with-x vorbis
wifi wxwindows xface xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Wojciech Jaskowski 2005-10-14 03:00:02 UTC
Workaround: Download Cg toolkit from Nvidia site.
Comment 2 Bart Lauwers (RETIRED) gentoo-dev 2005-10-27 17:49:14 UTC
Can you let us know which version you tried that doesn't work on amd64?

Thanks!
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 09:45:31 UTC
There's no such thing like libCg in portage, reopen w/ ebuild name and version that installs this library.
Comment 4 Wojciech Jaskowski 2006-09-21 10:23:15 UTC
(In reply to comment #3)
> There's no such thing like libCg in portage, reopen w/ ebuild name and version
> that installs this library.

nvidia-cg-toolkit, as I stated in "Steps to Reproduce". I don't remember the version. It was nearly a year ago when I submitted the bug! Then it was the latest version.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 10:27:56 UTC
So hmmm, can you test w/ something up-to-date? 1.4.0.4 or 1.4.1