see message, strange error...? emerge mplayer Calculating dependencies... done! >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) media-video/mplayer-1.0_rc2 to / * MPlayer-1.0rc2.tar.bz2 RMD160 ;-) ... [ ok ] * MPlayer-1.0rc2.tar.bz2 SHA1 ;-) ... [ ok ] * MPlayer-1.0rc2.tar.bz2 SHA256 ;-) ... [ ok ] * MPlayer-1.0rc2.tar.bz2 size ;-) ... [ ok ] * Blue-1.7.tar.bz2 RMD160 ;-) ... [ ok ] * Blue-1.7.tar.bz2 SHA1 ;-) ... [ ok ] * Blue-1.7.tar.bz2 SHA256 ;-) ... [ ok ] * Blue-1.7.tar.bz2 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking MPlayer-1.0rc2.tar.bz2 ;-) ... [ ok ] * checking Blue-1.7.tar.bz2 ;-) ... [ ok ] * For MPlayer's language support, the configuration will * use your LINGUAS variable from /etc/make.conf. If you have more * than one language enabled, then the first one in the list will * be used to output the messages, if a translation is available. * man pages will be created for all languages where translations * are also available. >>> Unpacking source... >>> Unpacking MPlayer-1.0rc2.tar.bz2 to /var/tmp/portage/media-video/mplayer-1.0_rc2/work >>> Unpacking Blue-1.7.tar.bz2 to /var/tmp/portage/media-video/mplayer-1.0_rc2/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/media-video/mplayer-1.0_rc2/work/MPlayer-1.0rc2 ... Unknown parameter: -s * * ERROR: media-video/mplayer-1.0_rc2 failed. * Call stack: * ebuild.sh, line 1695: Called dyn_compile * ebuild.sh, line 1033: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * mplayer-1.0_rc2.ebuild, line 405: Called die * The specific snippet of code: * CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died" * The die message: * configure died * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/media-video:mplayer-1.0_rc2:20071014-171937.log'. * This ebuild used the following eclasses from overlays: * /usr/portage/eclass/eutils.eclass * /usr/portage/eclass/multilib.eclass * /usr/portage/eclass/toolchain-funcs.eclass * /usr/portage/eclass/portability.eclass * /usr/portage/eclass/flag-o-matic.eclass * * Messages for package media-video/mplayer-1.0_rc2: * For MPlayer's language support, the configuration will * use your LINGUAS variable from /etc/make.conf. If you have more * than one language enabled, then the first one in the list will * be used to output the messages, if a translation is available. * man pages will be created for all languages where translations * are also available. * * ERROR: media-video/mplayer-1.0_rc2 failed. * Call stack: * ebuild.sh, line 1695: Called dyn_compile * ebuild.sh, line 1033: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * mplayer-1.0_rc2.ebuild, line 405: Called die * The specific snippet of code: * CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died" * The die message: * configure died * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/media-video:mplayer-1.0_rc2:20071014-171937.log'. * This ebuild used the following eclasses from overlays: * /usr/portage/eclass/eutils.eclass * /usr/portage/eclass/multilib.eclass * /usr/portage/eclass/toolchain-funcs.eclass * /usr/portage/eclass/portability.eclass * /usr/portage/eclass/flag-o-matic.eclass * Reproducible: Always Steps to Reproduce: 1.emerge mplayer 2. 3. emerge --info Portage 2.1.3.13 (default-linux/ppc/ppc32/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.21-gentoo-r4 ppc) ================================================================= System uname: 2.6.21-gentoo-r4 ppc 7410, altivec supported Timestamp of tree: Sun, 14 Oct 2007 06:20:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r4 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 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.18 sys-devel/gcc-config: 1.4.0-r2 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="ppc ~ppc" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" DISTDIR="/var/tmp//distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/" LC_ALL="POSIX" LINGUAS="en_US en_GB en EN en_EN fr_FR fr FR eo ja" MAKEOPTS="-j2" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl agg aio alsa altivec avahi bash-completion berkdb bitmap-fonts bzip2 cairo caps chardet cli cpudetection cracklib crypt custom-cflags dbus divx dri emerald encode esd fasttrack ffmpeg flac fortran gd gdbm gif glade glut gnome gnomecanvas gpm gstreamer gtk hal iconv idn imlib isdnlog ithreads jpeg jpeg2k lcms libnotify mad magic matroska midi mmap mp3 mpeg mudflap musepack mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pcre perl pg-intdatetime php png ppc pppd python quicktime readline realmedia reflection rrdtool rtc sdl session snmp speex spell spl srt ssl svg symlink tcpd tga theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l vhosts vidix vim-syntax vorbis wma x264 xanim xcomposite xinerama xml xorg xrandr xv xvid" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en_GB en EN en_EN fr_FR fr FR eo ja" USERLAND="GNU" VIDEO_CARDS="r128" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This is NOT a Gentoo Bugzilla product bug; read the descriptions please.
(In reply to comment #1) > This is NOT a Gentoo Bugzilla product bug; read the descriptions please. > sorry for this error.
PORTDIR_OVERLAY="/usr/portage" For starers, take that out of your make.conf, run an emerge --sync, try again, and post emerge -pv mplayer if it fails.
(In reply to comment #3) > PORTDIR_OVERLAY="/usr/portage" > > For starers, take that out of your make.conf, run an emerge --sync, try again, > and post emerge -pv mplayer if it fails. > it fails again; => emerge -pv mplayer These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] media-video/mplayer-1.0_rc2 USE="X a52 aac alsa altivec cpudetection custom-cflags encode esd gif gtk iconv jpeg mad mp3 musepack opengl png quicktime rtc sdl speex srt tga theora truetype unicode v4l vidix vorbis x264 xanim xinerama xv xvid (-3dnow) (-3dnowext) -aalib -amrnb -amrwb -arts -bidi -bindist -bl -cddb -cdio -cdparanoia -debug -dga -directfb -doc -dts -dv -dvb -dvd -enca -fbcon -ftp -ggi -ipv6 (-ivtv) -jack -joystick -lame -libcaca -lirc -live -livecd -lzo -md5sum (-mmx) (-mmxext) -mp2 -nas -nemesi -openal -oss -pnm -pvr -radio (-rar) (-real) -samba (-sse) (-sse2) (-ssse3) (-svga) -teletext -tivo -v4l2 (-win32codecs) (-xvmc) -zoran" VIDEO_CARDS="-mga -s3virge -tdfx (-vesa)" With emerge debug mode, the problem is more clear, we have : " + myconf='--cc=gcc -s --host-cc=powerpc-unknown-linux-gnu-gcc ... + ./configure --cc=gcc -s --host-cc=powerpc-unknown-linux-gnu-gcc --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib ... Unknown parameter: -s ... " the -s is an option for gcc, not for config; 'gcc -s' should be protected in myconf like this : myconf='--cc="gcc -s" --host-cc=powerpc-unknown-linux-gnu-gcc ... I do not know why, as a precedent emerge from mplayer operating, it does not work now? I use this patch : --- mplayer-1.0_rc2.ebuild 2007-10-19 14:06:15.000000000 +0200 +++ mplayer-1.0_rc2.ebuild.patched 2007-10-16 23:00:45.000000000 +0200 @@ -391,8 +391,7 @@ unset CFLAGS CXXFLAGS fi - myconf="--cc=$(tc-getCC) \ - --host-cc=$(tc-getBUILD_CC) \ + myconf="--host-cc=$(tc-getBUILD_CC) \ --prefix=/usr \ --confdir=/etc/mplayer \ --datadir=/usr/share/mplayer \ @@ -402,7 +401,7 @@ --enable-network \ ${myconf}" #echo "CFLAGS=\"${CFLAGS}\" ./configure ${myconf}" - CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died" + CFLAGS="${CFLAGS}" ./configure "--cc=$(tc-getCC)" ${myconf} || die "configure died" emake || die "Failed to build MPlayer!" use doc && make -C DOCS/xml html-chunked
ppc, can you look at this
This problem also occurs on a x86 machine with the latest stable version of mplayer (1.0_rc2_p25993). Applying the proposed changes in the ebuild solves the problem.
Looking at the code of tc-getPROG (via tc-getCC), I don't see how tc-getCC can return anything but just gcc (i.e. I don't see how -s can follow gcc?). Perhaps this is really a toolchain-funcs bug? If anyone can reproduce this, what's your PATH variable set to? What does "which gcc" return?
I can't reproduce this. Please reopen the bug if you can, thanks!