fail to build with error /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe -fopenmp -Wl,-O1 -Wl,--as-needed -L/opt/nvidia-cg-toolkit/lib64 -shared -Wl,-soname,libprojectM.so.2 -o libprojectM.so.2.1.0 CMakeFiles/projectM.dir/projectM.cpp.o CMakeFiles/projectM.dir/PCM.cpp.o CMakeFiles/projectM.dir/Preset.cpp.o CMakeFiles/projectM.dir/fftsg.cpp.o CMakeFiles/projectM.dir/KeyHandler.cpp.o CMakeFiles/projectM.dir/timer.cpp.o CMakeFiles/projectM.dir/wipemalloc.cpp.o CMakeFiles/projectM.dir/PresetLoader.cpp.o CMakeFiles/projectM.dir/PresetChooser.cpp.o CMakeFiles/projectM.dir/PipelineMerger.cpp.o CMakeFiles/projectM.dir/ConfigFile.cpp.o CMakeFiles/projectM.dir/TimeKeeper.cpp.o CMakeFiles/projectM.dir/PresetFactory.cpp.o CMakeFiles/projectM.dir/PresetFactoryManager.cpp.o Renderer/libRenderer.a -lCg -lCgGL NativePresetFactory/libNativePresetFactory.a MilkdropPresetFactory/libMilkdropPresetFactory.a -lGLEW -lftgl -lfreetype -lm -ldl -lGLU -lGL -lSM -lICE -lX11 -lXext -ldl Renderer/libRenderer.a -lCg -lCgGL -lm /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCg /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCgGL /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCg /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCgGL collect2: ld returned 1 exit status make[2]: *** [libprojectM.so.2.1.0] Error 1 Reproducible: Always
emerge --info '=media-libs/libprojectm-2.1.0-r1' Portage 2.1.11.50 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.6.8-gentoo-jms-3.6.8 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.6.8-gentoo-jms-3.6.8-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1 KiB Mem: 4046884 total, 564068 free KiB Swap: 4208992 total, 4189132 free Timestamp of tree: Sat, 26 Jan 2013 04:45:01 +0000 ld GNU ld (GNU Binutils) 2.22 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.8 [disabled] app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.6.8, 2.7.3-r2, 3.2.3 dev-util/ccache: 3.1.8 dev-util/cmake: 2.8.10.2-r1 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo gamerlay sunrise x-jms ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/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="/portage" PORTDIR_OVERLAY="/var/lib/layman/gamerlay /var/lib/layman/sunrise /usr/local/portage/jms" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi aim alsa amd64 ao apm autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus dga dhcpcd directfb dri dts dv dvb dvd dvdnav dvdr emboss encode evdev exif fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif gimp gnutls gphoto2 gpm gstreamer gtk gzip hdri iconv icq icu ieee1394 imagemagick imap imlib ipod ipv6 jabber jpeg jpeg2k kde kipi kontact lame laptop lastfm lcms ldap libcaca libnotify libwww lm_sensor lzma lzo mad maildir matroska mdnsresponder-compat memlimit mhash mikmod mime mmap mmx mng modules motif mozilla mp3 mp4 mpeg mplayer msn mtp mudflap multilib musepack musicbrainz mysql ncurse ncurses networkmanager nls nptl nsplugin nvidia ofx ogg openal openexr opengl openmp oss pam pango pcmcia pcre pdf phonon php plasma png policykit ppds projectm pulseaudio qt3support qt4 quicktime raw readline resolvconf scanner sdl semantic-desktop session smp speex spell sse sse2 ssl ssse3 startup-notification svg syslog taglib tcpd theora thumbnail tidy tiff truetype udev udisks unicode upower usb v4l v4l2 vcd vdpau video vim-syntax vorbis webkit wifi wxwidgets x x264 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreesaver xulrunner xv xvid xvmc yahoo zip 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="authn_core authz_core socache_shmcb unixd 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 sheets 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en es fr en" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
[ebuild U ] media-libs/libprojectm-2.1.0-r1 [2.0.1-r1] USE="openmp -debug" VIDEO_CARDS="nvidia"
Created attachment 336874 [details] build log jms
Created attachment 336876 [details] environment jms
Same here, but somewhat solved. I found a similar bug (#259169) that did the trick for media-libs/libprojectm also. So I emerged media-libs/libprojectm successfully with 'LDFLAGS="-L/opt/nvidia-cg-toolkit/lib/" emerge libprojectm'. Have a nice day :)
yes can confirm LDFLAGS="-L/opt/nvidia-cg-toolkit/lib/" emerge -vu libprojectm did the trick
Hi! I have the same problem with the builds of the package. In cache ld.so.conf required libraries are present and they have to drive, but when compiling some reason are not used. miheev ~ # ldconfig -p | grep Cg libCgGL.so (libc6,x86-64) => /opt/nvidia-cg-toolkit/lib/libCgGL.so libCg.so (libc6,x86-64) => /opt/nvidia-cg-toolkit/lib/libCg.so miheev ~ # ls -la /opt/nvidia-cg-toolkit/lib/ итого 11424 drwxr-xr-x 2 root root 4096 янв. 26 18:05 . drwxr-xr-x 5 root root 4096 янв. 14 16:33 .. -rwxr-xr-x 1 root root 389000 янв. 26 18:05 libCgGL.so -rwxr-xr-x 1 root root 11296784 янв. 26 18:05 libCg.so Please add the correct ebuild LD_FLAG in file!
================================================================= Package Settings ================================================================= media-libs/libprojectm-2.1.0-r1 was built with the following: USE="openmp -debug" VIDEO_CARDS="nvidia" LDFLAGS="-Wl,-O1 -Wl,--as-needed -L/opt/nvidia-cg-toolkit/lib64" Path in LD_FLAGS is /opt/nvidia-cg-toolkit/lib64, but correct path in filesystem /opt/nvidia-cg-toolkit/lib/
Created attachment 336926 [details] Emerge failed outout. I wanted to recompile it because if i start it, it shows me: projectM-jack: error while loading shared libraries: libGLEW.so.1.6: cannot open shared object file: No such file or directory But i have glew 1.9 installed. normaly a revdep rebuild or rebuild of projectm-jack should solve the problem, right? But if i want to recompile it it happens what is in my emerge output.
*** This bug has been marked as a duplicate of bug 443546 ***
resync and try again.