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
Workaround: Download Cg toolkit from Nvidia site.
Can you let us know which version you tried that doesn't work on amd64? Thanks!
There's no such thing like libCg in portage, reopen w/ ebuild name and version that installs this library.
(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.
So hmmm, can you test w/ something up-to-date? 1.4.0.4 or 1.4.1