Problemas al instalar distintos programas en Gentoo

No se si es que esto es un bug o es que hago algo mal pero al compilar distintos programas me suelen dar errores de compilacion. Por ejemplo para media-libs/mesa en amd64 me dice:

SeleccionarCopiarblablabla.....
SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_64_ASM -DNDEBUG -DLIBRARYBUILD libtess/tessmono.c -o libtess/tessmono.o
g++ -c -I../../../include -Iinclude -Iinternals -Ilibnurbs/internals -Ilibnurbs/interface -Ilibnurbs/nurbtess -Wall -O2 -pipe -march=nocona -fno-strict-aliasing -fPIC -m64 -DGLX_USE_TLS -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DNDEBUG -DLIBRARYBUILD libnurbs/interface/bezierEval.cc -o libnurbs/interface/bezierEval.o
make[5]: g++: Command not found
make[5]: *** [libnurbs/interface/bezierEval.o] Error 127
make[5]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.1-r1/work/Mesa-6.5.1/src/glu/sgi'
make[4]: *** [default] Error 2
make[4]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.1-r1/work/Mesa-6.5.1/src/glu/sgi'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.1-r1/work/Mesa-6.5.1/src/glu'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.1-r1/work/Mesa-6.5.1/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.1-r1/work/Mesa-6.5.1'
make: *** [linux-dri-x86-64] Error 2

!!! ERROR: media-libs/mesa-6.5.1-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3378:   Called src_compile
  mesa-6.5.1-r1.ebuild, line 215:   Called die

!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-libs/mesa-6.5.1-r1/temp/build.log'.
Total que no funciona. El g++ al parecer no lo tengo. Aqui informacion util.

SeleccionarCopiar# gcc-config -l
[1] x86_64-pc-linux-gnu-4.1.1 *

# cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="-gtk -gnome qt3 qt4 kde dvdr dvd alsa cdr hal opengl sdl truetype arts dbus X gif jpeg png svg tiff win32codecs matroska mp3 mpeg musepack ogg stream theora v4l vcd vorbis xv encode cdda cddb dts flac mod nsplugin rtsp optimisememory samba shout skins vlm xml acl async automount caps kerberos quotas syslog winbind wxwindows real usb bzip2 mp3rtp sndfile aac dv ffmpeg lame x264 jbig jpeg2k rle exif java mozdevelop xforms xprint foomaticdb scanner snmp cdparanoia cpudetection dga dv dvb dvdread enca jack libcaca openal rtc speex tga v4l2 xanim xvid xvmc rdesktop slp blender-game openexr addbookmarks divx threads cjk bootstrap nocxx tcl jikes jython alias autoreplace connectionstatus contactnotes gadu groupwise highlight history irc jingle latex wmp gmedia netmeeting nowlistening sametime sms statistics texteffect translator webpresence winpopup xscreensaver yahoo a52 avahi bidi corba daap fbcon ggi gnutls httpd libnotify realmedia lirc live sdl-image upnp xosd jfs ntfs xfs extrafilters fame imagemagick lzo network daap ifp ipod mtp musicbrainz njb visualization gnokii gs fuse Xaw3d lesstif motif neXt tk jack-tmpfs netjack portaudio parse-clocks rhino insecure-savers krb4 new-login offensive amr bindist bl custom-cflags joystick mmxext nas examples skey"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "
LINGUAS="es"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
PORTDIR_OVERLAY="/usr/local/portage"


# emerge --info
Portage 2.1.2-r9 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo x86_64)
=================================================================
System uname: 2.6.20-gentoo x86_64 Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 06 Mar 2007 08:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "
LINGUAS="es"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl addbookmarks alias alsa amd64 amr arts async automount autoreplace avahi berkdb bidi bindist bitmap-fonts bl blender-game bootstrap bzip2 cairo caps cdda cddb cdparanoia cdr cjk cli connectionstatus contactnotes corba cpudetection cracklib crypt cups custom-cflags daap dbus dga divx dri dts dv dvb dvd dvdr dvdread eds emboss enca encode esd examples exif extrafilters fam fame fbcon ffmpeg firefox flac foomaticdb fortran fuse gadu gdbm ggi gif gmedia gnokii gnutls gpm groupwise gs gstreamer gtk2 hal highlight history httpd iconv ifp imagemagick insecure-savers ipod ipv6 irc isdnlog jack jack-tmpfs java jbig jfs jikes jingle joystick jpeg jpeg2k jython kde kerberos krb4 lame latex ldap lesstif libcaca libg++ libnotify lirc live lzo mad matroska midi mikmod mod motif mozdevelop mp3 mp3rtp mpeg mtp musepack musicbrainz nas ncurses neXt netjack netmeeting network new-login njb nls nocxx nowlistening nptl nptlonly nsplugin ntfs offensive ogg openal openexr opengl optimisememory oss pam parse-clocks pcre perl png portaudio ppds pppd python qt3 qt4 quicktime quotas rdesktop readline realmedia reflection rhino rle rtc rtsp samba sametime scanner sdl sdl-image session shout skey skins slp sms sndfile snmp speex spell spl ssl statistics stream svg syslog tcl tcpd texteffect tga theora threads tiff tk translator truetype truetype-fonts type1-fonts unicode upnp usb v4l v4l2 vcd visualization vlm vorbis webpresence winbind winpopup wmp wxwindows x264 xanim xforms xfs xml xorg xosd xprint xscreensaver xv xvid xvmc yahoo 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

Me he fijado que el os-headers apunta a un mal header ya que uso el kernel 2.6.20, y no estoy muy seguro de que ese sea el error y de que como cambiarlo. Hago un emerge de linux-headers en mi version?
Prueba a hacer:
which g++

y
equery b g++

Deberías tenerlo, y debería estar en /usr/bin/

Un saludo.
Ninguno de los comandos me da resultados
No debiste poner la USE flag nocxx:

SeleccionarCopiar[ $ ~ ] explainuseflag nocxx
Disable support for C++ (DON'T USE THIS UNLESS YOU KNOW WHAT YOU'RE DOING)


Para los curiosos:

SeleccionarCopiarexplainuseflag() {
        sed -n -e "s,^\([^ ]*:\)\?$1 - ,,p" \
                /usr/portage/profiles/use.desc \
                /usr/portage/profiles/use.local.desc
}


- ferdy

------

Se me olvidaba. Posible solución sería quitar esa USE que nunca debiste poner. Recompilar gcc, luego glibc, luego ncurses y luego las cosas que vayan fallando.

Incluso todo esto, puede no funcionar... pero es que has hecho una locura :)

- ferdy
La estás liando parda con gentoo Txukie. XDD
No pasa nada, ya esta todo arreglado. Gracias Ferdy, me voy a tener que imprimir una lista de las USE para tenerlo todo bien claro. Esta claro que tocando y jodiendolo todo es como se aprende, porque te encuentras con unos casos muy raros. Aun recuerdo la primera vez que instale debian la que lie....
5 respuestas