When I try to emerge mplayer-1.0_pre6-r1, the compilation fails at the beginning with a valid version of gcc not being found. Reproducible: Always Steps to Reproduce: 1. Add "media-video/mplayer ~x86" to /etc/portage/package.keywords 2. "emerge mplayer" 3. Actual Results: Mplayer fails to even begin to compile - the first ./configure run fails to find a valid gcc compiler. Complete output of "emerge mplayer": # emerge mplayer Calculating dependencies ...done! >>> emerge (1 of 1) media-video/mplayer-1.0_pre6-r1 to / >>> md5 src_uri ;-) MPlayer-1.0pre6a.tar.bz2 >>> md5 src_uri ;-) font-arial-iso-8859-1.tar.bz2 >>> md5 src_uri ;-) font-arial-iso-8859-2.tar.bz2 >>> md5 src_uri ;-) font-arial-cp1250.tar.bz2 >>> md5 src_uri ;-) mplayer-1.0_pre5-alsa-gui.patch.tar.bz2 >>> md5 src_uri ;-) svgalib_helper-1.9.17-mplayer.tar.bz2 >>> md5 src_uri ;-) Blue-1.4.tar.bz2 >>> Unpacking source... >>> Unpacking MPlayer-1.0pre6a.tar.bz2 to /var/tmp/portage/mplayer-1.0_pre6-r1/work >>> Unpacking font-arial-iso-8859-1.tar.bz2 to /var/tmp/portage/mplayer-1.0_pre6-r1/work >>> Unpacking font-arial-iso-8859-2.tar.bz2 to /var/tmp/portage/mplayer-1.0_pre6-r1/work >>> Unpacking font-arial-cp1250.tar.bz2 to /var/tmp/portage/mplayer-1.0_pre6-r1/work >>> Unpacking svgalib_helper-1.9.17-mplayer.tar.bz2 to /var/tmp/portage/mplayer-1.0_pre6-r1/work >>> Unpacking Blue-1.4.tar.bz2 to /var/tmp/portage/mplayer-1.0_pre6-r1/work * Applying mplayer-1.0_pre6-configure.patch ... [ ok ] * Enabling vidix non-root mode. * (You need a proper svgalib_helper.o module for your kernel * to actually use this) * Applying mplayer-1.0_pre6-ppc64.patch ... [ ok ] * Applying mplayer-nl.patch ... [ ok ] * Applying mplayer-avi_crash.patch ... [ ok ] * Applying mplayer-gcc_detection.patch ... [ ok ] * Applying mplayer-jack.patch ... [ ok ] * Applying mplayer-1.0_pre6-codecs.patch ... [ ok ]>>> Source unpacked. * No LINGUAS given, defaulting to English * You have 3dnowex support enabled but your processor doesn't * Seem to support it! You might be cross compiling or do not have /proc filesystem * enabled. If either is the case, set CROSSCOMPILE to 1 to disable this warning. * Your system is mmxext capable but you don't have it enabled! * You might be cross compiling (in this case set CROSSCOMPILE to 1 to disable this warning. Detected operating system: Linux Detected host architecture: i386 Checking for cc version ... v. ?.??, bad Checking for gcc version ... v. ?.??, bad Checking for gcc-3.4 version ... ./configure: line 589: gcc-3.4: command not found, bad Checking for gcc-3.3 version ... ./configure: line 589: gcc-3.3: command not found, bad Checking for gcc-3.2 version ... ./configure: line 589: gcc-3.2: command not found, bad Checking for gcc-3.1 version ... ./configure: line 589: gcc-3.1: command not found, bad Checking for gcc3 version ... ./configure: line 589: gcc3: command not found, bad Checking for gcc-3.0 version ... ./configure: line 589: gcc-3.0: command not found, bad Checking for cc version ... v. ?.??, bad *** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! *** You are not using a supported compiler. We do not have the time to make sure everything works with compilers other than the ones we use. Use either the same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS unless you can reproduce them after recompiling with a 2.95.x or 3.x version! Note for gcc 2.96 users: Some versions of this compiler are known to miscompile mplayer and lame (which is used for mencoder). If you get compile errors, first upgrade to the latest 2.96 release (minimum 2.96-85) and try again. If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting bugs! GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US ! *** For details please read DOCS/HTML/en/users-vs-dev.html *** Error: Bad gcc version Check "configure.log" if you do not understand why it failed. !!! ERROR: media-video/mplayer-1.0_pre6-r1 failed. !!! Function src_compile, Line 454, Exitcode 1 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. # emerge -pv mplayer These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] media-video/mplayer-1.0_pre6-r1 [1.0_pre6] -3dfx +3dnow +3dnowex +X -aalib +alsa (-altivec) +arts +avi -bidi +cdparanoia -debug -dga -directfb +divx4linux -doc -dts -dv -dvb +dvd +dvdread -edl +encode +esd -fbcon -ggi +gif +gtk -i8x0 -ipv6 -jack -joystick +jpeg -libcaca -lirc +live -lzo +mad +matroska -matrox +mmx -mmxext +mpeg -mythtv -nas +nls -nvidia +oggvorbis +opengl +oss +png +real* -rtc +samba +sdl +sse +sse2 +svga -tga +theora +truetype -v4l +v4l2 -xanim -xinerama +xmms +xv +xvid -xvmc 0 kB Total size of downloads: 0 kB # gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-libgcj --enable-languages=c,c++ Thread model: posix gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) # emerge info Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 3 2005, 10:44:15)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.7.9-r1, 1.6.3, 1.8.5-r3, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -Os -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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=athlon-xp -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages moo nostrip sandbox sfperms" GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirrors.tds.net/gentoo http://gentoo.ccccom.com http://mirror.tucdemonic.org/gentoo/" LANG="en_US.UTF-8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl divx4linux dvd dvdr emboss encode esd fam flac font-server foomaticdb fortran gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib java jpeg junit libg++ libwww mad matroska mikmod mmx motif mp3 mpeg ncurses nls nntp nptl oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline samba scanner sdl slang snmp speex spell sse sse2 ssl svga tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l2 xml xml2 xmms xprint xv xvid zlib video_cards_radeon" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS Note that after the failure, if I go into /var/tmp/portage/mplayer-1.0_pre6-r1/work/MPlayer-1.0pre6a and run ./configure with the same options that the ebuild uses, it succeeds in finding gcc - it's only when run from the ebuild that it fails.
Please give the output of gcc-config -l
Here it is: # gcc-config -l [1] i686-pc-linux-gnu-3.3.5 * [2] i686-pc-linux-gnu-3.3.5-hardened [3] i686-pc-linux-gnu-3.3.5-hardenednopie [4] i686-pc-linux-gnu-3.3.5-hardenednossp However, I've done my own research on this and found that if I use FEATURES="-sandbox" it merges fine. Further digging found that it seems like the "cut" command is failing when run in the sandbox with LANG=en_US.UTF-8 - I edited the ebuild to print out the full environment at the point where ./configure was run, and set up an identical environment at a shell prompt. In this case, ./configure failed as well. Unsetting either LD_PRELOAD to remove libsandbox.so or unsetting LANG resolved the problem. So I think this is a portage/sandbox bug - what's the procedure here? Close this bug and enter a portage bug?
Talked with portage guys.. found a dup. *** This bug has been marked as a duplicate of 74803 ***