Doing revdep-rebuild and emerge freeglut fails, m.so -Wl,-O1 -Wl,-soname -Wl,libglut.so.3 -o .libs/libglut.so.3.8.0 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL collect2: ld returned 1 exit status make[2]: *** [libglut.la] Error 1 make[2]: Leaving directory `/nfs1/var/tmp/portage/portage/media-libs/freeglut-2.4.0-r1/work/freeglut-2.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/nfs1/var/tmp/portage/portage/media-libs/freeglut-2.4.0-r1/work/freeglut-2.4.0' make: *** [all] Error 2 * * ERROR: media-libs/freeglut-2.4.0-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2945: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/nfs1/var/tmp/portage/portage/media-libs/freeglut-2.4.0-r1/temp/build.log'. * The ebuild environment file is located at '/nfs1/var/tmp/portage/portage/media-libs/freeglut-2.4.0-r1/temp/environment'. * Reproducible: Always Steps to Reproduce: 1. rm /usr/portage/distfiles/freeglut-2.4.0.tar.gz 2. emerge -av freeglut 3. Actual Results: emerge freeglut fail Expected Results: emerge freeglut should not fail emerge --info Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r0, 2.6.28-gentoo-r3 x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-r3-x86_64-Intel-R-_Core-TM-2_CPU_6400_@_2.13GHz-with-gentoo-1.12.11.1 Timestamp of tree: Tue, 03 Nov 2009 16:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 1.3.7-r1, 2.1.9-r1 dev-lang/python: 2.5.4-r3, 2.6.2-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.binarycompass.org http://prometheus.cs.wmich.edu/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ " LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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="/nfs1/var/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X acl alsa amd64 aspell berkdb bzip2 cli cracklib crypt cups dbus dri gdbm gnome gpm gstreamer gtk hal iconv jpeg ldap mmx modules mudflap multilib ncurses nls nptl nptlonly nsplugin openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl svg sysfs tcpd unicode 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 209158 [details] build.log attached build.log
In such cases, if in doubt always use/blame 'eselect opengl' first. What does 'eselect opengl list' print ? What's the output of 'ls -l /usr/lib/libGL.so' ?
Thank you for your response, my reply below, eselect opengl list Available OpenGL implementations: [1] ati * [2] xorg-x11 ls -l /usr/lib/libGL.so ls: cannot access /usr/lib/libGL.so: No such file or directory
find /usr -name libGL.so /usr/lib64/opengl/xorg-x11/lib/libGL.so /usr/lib32/opengl/xorg-x11/lib/libGL.so
If you are planing to use open driver (as your VIDEO_CARDS suggest) you should select xorg-x11 (and close this bug as INVALID).
(In reply to comment #5) > If you are planing to use open driver (as your VIDEO_CARDS suggest) > you should select xorg-x11 (and close this bug as INVALID). > I can do this and then I can mark this bug invalid, but I don't quite understand why I should not use opensource 'ati' driver? I had to switch over to opensource driver from fglrx since AMD stopped developing drivers for my card and so I followed, gentoo's guide : http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml By the way, when I set opengl to 2, the glxinfo and glxgears don't work, is this normal?
Cause 'ati' in 'eselect opengl' stands for fglrx. It's thre probably cause you still have ati-drivers emerged.
And glxinfo should work with xorg-x11 - check ldd output if things get resolved correctly.
(In reply to comment #7) > Cause 'ati' in 'eselect opengl' stands for fglrx. > It's thre probably cause you still have ati-drivers emerged. > No, Ati-drivers package is not installed on my machine it was removed as per the instruction at http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml eix ati-drivers * x11-drivers/ati-drivers Available versions: (0) [M]8.552-r2 [M](~)8.593 (1) [m]9.9-r2 ~9.10 {acpi debug kernel_linux modules multilib} Homepage: http://www.ati.com Description: Ati precompiled drivers for r600 (HD Series) and newer chipsets this ati must be corresponding to radeon than fglrx?
(In reply to comment #8) > And glxinfo should work with xorg-x11 - > check ldd output if things get resolved correctly. > It's working fine now. Last time it did not work, don't understand why so I had switched to ati(radeon)
No, I've got an ati card - xorg-x11 comes from mesa (you may need to rebuild it, if you were switching), ati comes from fglrx. Check 'emerge -1pv mesa', if among video cards radeon is new, you need to rebuild it.
(In reply to comment #11) > No, I've got an ati card - xorg-x11 comes from mesa > (you may need to rebuild it, if you were switching), > ati comes from fglrx. > > Check 'emerge -1pv mesa', if among video cards radeon is new, > you need to rebuild it. > emerge -1pv mesa These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/mesa-7.5.2 USE="nptl -debug -motif -pic -xcb" VIDEO_CARDS="radeon -intel -mach64 -mga -none -r128 -radeonhd -s3virge -savage -sis (-sunffb) -tdfx -trident -via" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB eix mesa [I] media-libs/mesa Available versions: (~)7.1 (~)7.2 7.3-r1 (~)7.4.4 7.5.1 (~)7.5.2 {debug kernel_FreeBSD motif nptl pic video_cards_intel video_cards_mach64 video_cards_mga video_cards_none video_cards_r128 video_cards_radeon video_cards_radeonhd video_cards_s3virge video_cards_savage video_cards_sis video_cards_sunffb video_cards_tdfx video_cards_trident video_cards_via xcb} Installed versions: 7.5.2(11:38:39 11/04/09)(nptl video_cards_radeon -debug -kernel_FreeBSD -motif -pic -video_cards_intel -video_cards_mach64 -video_cards_mga -video_cards_none -video_cards_r128 -video_cards_radeonhd -video_cards_s3virge -video_cards_savage -video_cards_sis -video_cards_sunffb -video_cards_tdfx -video_cards_trident -video_cards_via -xcb) Homepage: http://mesa3d.sourceforge.net/ Description: OpenGL-like graphic library for Linux so I need to rebuild mesa and xorg-x11?