mplayer fails to build in a very unusual way (without an error it seems): yasm -f elf -DARCH_X86_64 -m amd64 -I x86/ -o x86/fft_mmx.o x86/fft_mmx.asm x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=k8 -pipe -fno-omit-frame-pointer -O2 -D__STDC_LIMIT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/dirac -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3 -c -o x86/fft_3dn.o x86/fft_3dn.c x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=k8 -pipe -fno-omit-frame-pointer -O2 -D__STDC_LIMIT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/dirac -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3 -c -o x86/fft_3dn2.o x86/fft_3dn2.c x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=k8 -pipe -fno-omit-frame-pointer -O2 -D__STDC_LIMIT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/dirac -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3 -c -o x86/fft_sse.o x86/fft_sse.c yasm -f elf -DARCH_X86_64 -m amd64 -I x86/ -o x86/h264_deblock_sse2.o x86/h264_deblock_sse2.asm yasm -f elf -DARCH_X86_64 -m amd64 -I x86/ -o x86/h264_idct_sse2.o x86/h264_idct_sse2.asm rm -f libavcodec.a ar rc libavcodec.a allcodecs.o audioconvert.o avpacket.o bitstream.o bitstream_filter.o dsputil.o eval.o faanidct.o imgconvert.o jrevdct.o opt.o options.o parser.o raw.o resample.o resample2.o simple_idct.o utils.o aandcttab.o faandct.o jfdctfst.o jfdctint.o fft.o golomb.o mdct.o rdft.o aac.o aactab.o mpeg4audio.o aac_parser.o aac_ac3_parser.o aasc.o msrledec.o ac3dec.o ac3tab.o ac3dec_data.o ac3.o ac3_parser.o ac3enc.o alac.o alacenc.o lpc.o sp5xdec.o mjpegdec.o mjpeg.o apedec.o asv1.o mpeg12data.o atrac3.o atrac.o avs.o bethsoftvideo.o bfi.o bmp.o bmpenc.o c93.o cavs.o cavsdec.o cavsdsp.o mpegvideo.o cinepak.o cljr.o cook.o cscd.o cyuv.o dca.o dnxhddec.o dnxhddata.o dnxhdenc.o mpegvideo_enc.o motion_est.o ratecontrol.o dpx.o dsicinav.o dvbsubdec.o dvbsub.o dvdsubdec.o dvdsubenc.o dv.o dxa.o eac3dec.o eac3dec_data.o eacmv.o eamad.o eaidct.o mpeg12.o error_resilience.o eatgq.o eatgv.o eatqi.o 8bps.o 8svx.o escape124.o ffv1.o rangecoder.o huffyuv.o flacdec.o flacdata.o flac.o flacenc.o flashsv.o flashsvenc.o flicvideo.o h263dec.o h263.o 4xm.o fraps.o huffman.o gifdec.o lzw.o gif.o h261dec.o h261.o h261enc.o h263_parser.o h264.o h264idct.o h264pred.o h264_parser.o cabac.o idcinvideo.o imc.o indeo2.o indeo3.o dpcm.o interplayvideo.o jpeglsdec.o jpegls.o jpeglsenc.o kmvc.o ljpegenc.o mjpegenc.o loco.o mace.o mdec.o mimic.o mjpegbdec.o mlpdec.o mlp_parser.o mlp.o mlpdsp.o mmvideo.o motionpixels.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o mpegaudioenc.o mpc7.o mpc.o mpc8.o mpegvideo_xvmc.o mpeg12enc.o mpeg4video_parser.o msmpeg4.o msmpeg4data.o msrle.o msvideo1.o lcldec.o nellymoserdec.o nellymoser.o nellymoserenc.o nuv.o rtjpeg.o pnmenc.o pnm.o pcx.o pcxenc.o pgssubdec.o png.o pngdec.o pngenc.o ptx.o qcelpdec.o lsp.o celp_math.o celp_filters.o acelp_vectors.o qdm2.o qdrw.o qpeg.o qtrle.o qtrleenc.o ra144.o ra288.o rawdec.o rawenc.o rl2.o roqvideodec.o roqvideo.o roqvideoenc.o elbg.o roqaudioenc.o rpza.o rv10.o rv10enc.o rv20enc.o rv30.o rv34.o rv30dsp.o rv40.o rv40dsp.o sgidec.o sgienc.o rle.o shorten.o smacker.o smc.o snow.o sonic.o sunrast.o svq1dec.o svq1.o svq1enc.o targa.o targaenc.o xiph.o tiertexseqv.o tiff.o faxcompr.o tiffenc.o lzwenc.o tmv.o cga_data.o truemotion1.o truemotion2.o truespeech.o tscc.o tta.o twinvq.o txd.o s3tc.o ulti.o v210dec.o v210enc.o v210x.o vb.o vc1dec.o vc1.o vc1data.o vc1dsp.o intrax8.o intrax8dsp.o vcr1.o vmdav.o vmnc.o vorbis_dec.o vorbis.o vorbis_data.o vorbis_enc.o vp3.o vp3dsp.o vp5.o vp56.o vp56data.o vp6.o vp6dsp.o vqavideo.o wavpack.o wmaprodec.o wma.o wmadec.o wmaenc.o wmv2dec.o wmv2.o wmv2enc.o wnv1.o ws-snd1.o xan.o xl.o xsubdec.o xsubenc.o lclenc.o zmbv.o zmbvenc.o pcm.o pcm-mpeg.o adpcm.o adxdec.o adxenc.o g726.o libdiracdec.o libdiracenc.o libdirac_libschro.o libfaac.o libmp3lame.o libschroedingerdec.o libschroedinger.o libschroedingerenc.o libx264.o libxvidff.o libxvid_rc.o cavs_parser.o dca_parser.o dirac_parser.o dnxhd_parser.o dvbsub_parser.o dvdsub_parser.o h261_parser.o mjpeg_parser.o mpegaudio_parser.o mpegvideo_parser.o pnm_parser.o vc1_parser.o vp3_parser.o aac_adtstoasc_bsf.o dump_extradata_bsf.o h264_mp4toannexb_bsf.o imx_dump_header_bsf.o mjpega_dump_header_bsf.o movsub_bsf.o mp3_header_compress_bsf.o mp3_header_decompress_bsf.o noise_bsf.o remove_extradata_bsf.o pthread.o x86/mlpdsp.o x86/cpuid.o x86/dnxhd_mmx.o x86/dsputil_mmx.o x86/fdct_mmx.o x86/fft.o x86/idct_mmx_xvid.o x86/idct_sse2_xvid.o x86/motion_est_mmx.o x86/mpegvideo_mmx.o x86/simple_idct_mmx.o x86/cavsdsp_mmx.o x86/dsputilenc_mmx.o x86/flacdsp_mmx.o x86/idct_mmx.o x86/snowdsp_mmx.o x86/vc1dsp_mmx.o x86/vp3dsp_mmx.o x86/vp3dsp_sse2.o x86/vp6dsp_mmx.o x86/vp6dsp_sse2.o x86/dsputil_yasm.o x86/fft_mmx.o x86/fft_3dn.o x86/fft_3dn2.o x86/fft_sse.o x86/h264_deblock_sse2.o x86/h264_idct_sse2.o true libavcodec.a make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0_rc4_p20090919-r2/work/mplayer-1.0_rc4_p20090919/libavcodec' touch libavcodec/libavcodec.a * ERROR: media-video/mplayer-1.0_rc4_p20090919-r2 failed: * Failed to build MPlayer! * * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2735: Called die * The specific snippet of code: * emake || die "Failed to build MPlayer!"; * * If you need support, post the output of 'emerge --info =media-video/mplayer-1.0_rc4_p20090919-r2', * the complete build log and the output of 'emerge -pqv =media-video/mplayer-1.0_rc4_p20090919-r2'. * The complete build log is located at '/var/tmp/portage/media-video/mplayer-1.0_rc4_p20090919-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/mplayer-1.0_rc4_p20090919-r2/temp/environment'. * S: '/var/tmp/portage/media-video/mplayer-1.0_rc4_p20090919-r2/work/mplayer-1.0_rc4_p20090919' emerge --info =media-video/mplayer-1.0_rc4_p20090919-r2: Portage 2.1.7.1 (default/linux/amd64/10.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.31-rc9-01793-g59e32bc x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.31-rc9-01793-g59e32bc-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1 Timestamp of tree: Sat, 24 Oct 2009 08:45:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p33 dev-java/java-config: 1.3.7-r1, 2.1.9-r1 dev-lang/python: 2.5.4-r3, 2.6.3, 3.1.1-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r1 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19, 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -Os -pipe -msse3 -fno-omit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=k8 -Os -pipe -msse3 -fno-omit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ ftp://mirror.muntinternet.net/pub/gentoo/" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en nl" MAKEOPTS="-j2" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/pro-audio /usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/x11 /usr/local/portage /usr/local/nouveau" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa amd64 aotuv bluetooth branding bzip2 cairo caps cdr cli consolekit cracklib crypt cups curl dbus dhcp dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg flac fortran gdbm gif gimpprint gpm gtk gtk2 hal iconv ipv6 isdnlog ithreads jack jpeg kpathsea ladspa latex lcms ldap libnotify mad metalink mikmod mmx mmxext modules mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline realmedia reflection sdl session spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb v4l v4l2 vorbis wavpack wmp x264 xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ice1724" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nouveau vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS emerge -pqv =media-video/mplayer-1.0_rc4_p20090919-r2: [ebuild U ] media-video/mplayer-1.0_rc4_p20090919-r2 [1.0_rc2_p20090731-r1] USE="3dnow 3dnowext X a52 aac alsa ass cddb cdio dirac dts dv dvd dvdnav enca encode faac faad fbcon gif iconv ipv6 jack jpeg ladspa live mad mmx mmxext mp2 mp3 network opengl osdmenu png quicktime rar real rtc schroedinger sdl shm speex sse sse2 theora tremor truetype unicode v4l v4l2 vorbis x264 xinerama xscreensaver xv xvid xvmc -aalib (-altivec) -bidi -bindist -bl -cdparanoia -cpudetection -custom-cpuopts -debug -dga -directfb -doc -dvb -dxr3 -esd -ftp -ggi -gmplayer -joystick -libcaca -lirc -lzo -md5sum -mng -nas -nut -openal -opencore-amr -oss -pnm -pulseaudio -pvr -radio -samba -ssse3 (-svga) -teletext -tga -vdpau (-vidix) (-win32codecs) -xanim -zoran (-custom-cflags%)" VIDEO_CARDS="-mga -nvidia -s3virge -tdfx (-vesa%*)"
Created attachment 208132 [details] environment
Created attachment 208133 [details] build log
i'd say there's an error: x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=k8 -pipe -fno-omit-frame-pointer -O2 -D__STDC_LIMIT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -D_REENTRANT -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/dirac -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3 -c -o cljr.o cljr.c In file included from swscale.c:1408: swscale_template.c: In function 'yuv2yuv1_MMX2': swscale_template.c:961: warning: initialization from incompatible pointer type swscale_template.c:961: warning: initialization from incompatible pointer type swscale_template.c:961: warning: initialization from incompatible pointer type swscale_template.c:961: warning: initialization from incompatible pointer type swscale_template.c: In function 'hScale_MMX2': swscale_template.c:2104: warning: initialization discards qualifiers from pointer target type swscale_template.c: In function 'swScale_MMX2': swscale_template.c:2719: warning: assignment discards qualifiers from pointer target type swscale_template.c:2720: warning: assignment discards qualifiers from pointer target type swscale_template.c:2725: warning: assignment discards qualifiers from pointer target type swscale_template.c:2726: warning: assignment discards qualifiers from pointer target type swscale_template.c:2732: warning: assignment discards qualifiers from pointer target type swscale_template.c:2733: warning: assignment discards qualifiers from pointer target type swscale_template.c:2740: warning: cast from pointer to integer of different size swscale_template.c:2746: warning: cast from pointer to integer of different size swscale_template.c:2753: warning: cast from pointer to integer of different size swscale_template.c:2778: warning: initialization discards qualifiers from pointer target type swscale_template.c:2779: warning: initialization discards qualifiers from pointer target type swscale_template.c:2780: warning: initialization discards qualifiers from pointer target type swscale_template.c: In function 'sws_init_swScale_MMX2': swscale_template.c:2932: warning: assignment from incompatible pointer type swscale_template.c:2947: warning: assignment from incompatible pointer type swscale_template.c:2992: warning: assignment from incompatible pointer type swscale_template.c: In function 'yuv2packed2_MMX2': swscale_template.c:1358: error: bp cannot be used in asm here make[1]: *** [swscale.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0_rc4_p20090919-r2/work/mplayer-1.0_rc4_p20090919/libswscale' make: *** [libswscale/libswscale.a] Error 2 make: *** Waiting for unfinished jobs....
Try mplayer-1.0_rc4_p20091026.
Not exactly the same, but essentially a duplicate of bug #288918
This is not solved. I suspect the problem is that you are not checking for the "-fno-omit-frame-pointer" CFLAG, which i use system wide (it helps with debugging and profiling sometimes).
(In reply to comment #6) > This is not solved. > > I suspect the problem is that you are not checking for the > "-fno-omit-frame-pointer" CFLAG, which i use system wide (it helps with > debugging and profiling sometimes). > Sorry, but it's not possible to check for every possible flag that might break a build. This applies even more for a flag like -fno-omit-frame-pointer, that I never saw some using before. The argument that it might help to debugging and profiling is imo flawed. What do you gain by using it? The gcc manual says -fomit-frame-pointer is only enabled where it does not interfere with debugging. You still don't have debug symbols. And for profiling: You have to add extra options anyways. So why not add it together with these (if it is needed at all)? Summary is: Don't use it globally.