<command line>:1:1: warning: "__STDC_LIMIT_MACROS" redefined <command line>:1:1: warning: this is the location of the previous definition h264.c: In function 'decode_cabac_residual': h264.c:6143: warning: passing argument 4 of 'decode_significance_8x8_x86' discards qualifiers from pointer target type cabac.h: In function 'get_cabac_noinline': cabac.h:513: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' make[1]: *** [h264.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0_rc1/work/MPlayer-1.0rc1/libavcodec' make: *** [libavcodec/libavcodec.a] Error 2 !!! ERROR: media-video/mplayer-1.0_rc1 failed. Call stack: ebuild.sh, line 1568: Called dyn_compile ebuild.sh, line 937: Called src_compile mplayer-1.0_rc1.ebuild, line 427: Called die ----------------------------------------------------------------------------------------------------------------------------------------------- Portage 2.1.2_pre3-r9 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r1 i686) ================================================================= System uname: 2.6.18-gentoo-r1 i686 Intel(R) Celeron(R) CPU 2.60GHz Gentoo Base System version 1.12.5 Last Sync: Thu, 26 Oct 2006 17:50:02 +0000 ccache version 2.4 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 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.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" CHOST="i686-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/splash /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="it_IT@euro" LC_ALL="it_IT@euro" LDFLAGS="-Wl,-O1" LINGUAS="it" MAKEOPTS="-j3" 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="/home/sawk/wmii" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X aac alsa amarok amazon apm arts asf bash-completion berkdb bitmap-fonts cairo cdparanoia cli cracklib crypt cups curl custom-cflags dbus dga directfb divx dlloader dri dvb dvd dvdr dvdread eds elibc_glibc emboss encode esd fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif glitz gmedia gpm gstreamer gtk gtk2 hal i8x0 imlib input_devices_joystick input_devices_keyboard input_devices_mouse ipod isdnlog java javascript jce jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux libg++ libsamplerate libwww linguas_it live lm_sensors logitech-mouse lzo mad matroska mikmod mmx motif moznocompose moznoirc moznomail moznoxft mp3 mpeg musepack musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openssh oss pam pcre pdf perl png pop pppd print python qt3 qt4 quicktime readline real realmedia reflection rtc scanner sdl session sndfile speex spell spl sse sse2 ssl tcpd tga theora timidity truetype truetype-fonts type1-fonts udev usb userland_GNU v4l vcd video_cards_nvidia vorbis win32codecs wmp xml xorg xprint xscreensaver xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
mplayer 1.0_rc1 is masked as it has issues with x264 doesn't play nice with older version, temp mask for a better transition. This looks like its in part a x264 problem so with it being masked and all that good stuff Its getting marked resolved. At this moment its a upstream issue
This has nothing at all to do with x264. But compiling the ffmpeg H.264 decoder is not possible with gcc unless you have -fomit-frame-pointer in CFLAGS (which MPlayer does by default).
(In reply to comment #2) > This has nothing at all to do with x264. But compiling the ffmpeg H.264 decoder > is not possible with gcc unless you have -fomit-frame-pointer in CFLAGS (which > MPlayer does by default). > I have this in my CFLAGS(-O2 -fomit-frame-pointer -pipe -ftracer) but I still am not able to compile. Saurabh
*** Bug 155762 has been marked as a duplicate of this bug. ***
media-video/mplayer-1.0_rc1 as marked as stable on x86, but I'm getting this problem. Please reopen this bug.
(In reply to comment #5) > media-video/mplayer-1.0_rc1 as marked as stable on x86, but I'm getting this > problem. Please reopen this bug. Have you updated all relevant dependencies too that went stable together with it?
(In reply to comment #6) > (In reply to comment #5) > > media-video/mplayer-1.0_rc1 as marked as stable on x86, but I'm getting this > > problem. Please reopen this bug. > > Have you updated all relevant dependencies too that went stable together with > it? > I get this too. I have updated all dependencies and revdep-rebuild:ed too. Below is the command line where it fails, -fomit-frame-pointer doesn't seem to be there as Comment #2 suggests it should be. I have not enabled the custom-cflags USE flag and I don't have -fomit-frame-pointer in my CFLAGS i686-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil -Wdeclaration-after-statement -fno-PIC -W -Wall -Wno-unused-parameter -O2 -march=pentium-m -mtune=pentium-m -g3 -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -I/usr/lib/live/liveMedia/include -I/usr/lib/live/UsageEnvironment/include -I/usr/lib/live/BasicUsageEnvironment/include -I/usr/lib/live/groupsock/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c -o h264.o h264.c
* I get the same here: cabac.h:106: warning: ‘put_cabac_static’ defined but not used cabac.h:152: warning: ‘put_cabac_terminate’ defined but not used cabac.h:180: warning: ‘put_cabac_u’ defined but not used cabac.h:215: warning: ‘put_cabac_ueg’ defined but not used cabac.h:267: warning: ‘refill2’ defined but not used cabac.h:799: warning: ‘get_cabac_u’ defined but not used cabac.h:815: warning: ‘get_cabac_ueg’ defined but not used cabac.h: In function ‘get_cabac_noinline’: cabac.h:513: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’ make[1]: *** [h264.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_rc1/work/MPlayer-1.0rc1/libavcodec' make: *** [libavcodec/libavcodec.a] Error 2 !!! ERROR: media-video/mplayer-1.0_rc1 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile mplayer-1.0_rc1.ebuild, line 447: Called die * emerge --info: Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-ck1-r2-sa2 i686) ================================================================= System uname: 2.6.18-ck1-r2-sa2 i686 Intel(R) Pentium(R) M processor 1400MHz Gentoo Base System version 1.12.6 Last Sync: Sat, 06 Jan 2007 16:20:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] 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="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm/ /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="-march=pentium-m -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch" GENTOO_MIRRORS="ftp://ftp.fsn.hu/pub/linux/distributions/gentoo/ http://gentoo.inode.at/ " LANG="hu_HU.utf8" LC_ALL="hu_HU.utf8" LDFLAGS="-Wl,-O1" LINGUAS="hu en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" 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 /usr/portage/local/layman/sunrise /usr/portage/local/layman/initng" SYNC="rsync://rsync.gentoo.stealer.net/gentoo-portage" USE="7zip X a52 aac acl acpi aiglx alsa alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amr asf avi bash-completion berkdb bitmap-fonts bluetooth bootchart bzip2 cairo cardbus cdr cli cracklib crypt cups dbus dhcp dlloader dri dvd dvdr eds elibc_glibc emacs emboss encode exif fam ffmpeg firefox flac fortran fuse gcj gdbm gif glitz gpm gtk hal i8x0 iconv input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 irda isdnlog ithreads java jikes jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux latex lcms libg++ linguas_en linguas_hu live logitech-mouse mad matroska mikmod mmx mng mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcmcia pcre pdf pdflib perl png ppds pppd python qt3 quicktime readline real reflection rtc rtsp sdl session slang sox spl sse sse2 ssl svg tcpd tetex theora tiff timidity truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_i810 video_cards_vesa vorbis wifi win32codecs x86 xine xml xorg xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK * eix mplayer: media-video/mplayer Available versions: 1.0_pre8 ~1.0_pre8-r1 1.0_rc1 Installed versions: 1.0_pre8-r1(04.44.11 2006-11-01)(-3dfx -3dnow -3dnowext X aac -aalib alsa -altivec amr -arts -bidi -bindist -bl -cdparanoia -cpudetection custom-cflags debug dga -directfb -doc -dts -dv -dvb dvd -dvdread -enca encode -esd -fbcon -ggi gif gtk iconv ipv6 -jack -joystick jpeg -libcaca -linguas_bg -linguas_cs -linguas_da -linguas_de -linguas_el linguas_en -linguas_es -linguas_fr linguas_hu -linguas_ja -linguas_ko -linguas_mk -linguas_nl -linguas_no -linguas_pl -linguas_pt_BR -linguas_ro -linguas_ru -linguas_sk -linguas_tr -linguas_uk -linguas_zh_CN -linguas_zh_TW -lirc live -livecd lzo mad -matrox mmx mmxext -musepack -nas -openal opengl oss png real rtc -samba sdl -speex sse sse2 -svga -tga theora truetype unicode -v4l -v4l2 vorbis win32codecs -x264 -xanim -xinerama xv xvid xvmc) I updated ffmpeg, its only recently updated dependency before. Also tried without USE="-custom-cflags", but got the same result. Please reopen bug. thx.
As a temporary solution; I removed the 'debug' USE flag from my make.conf and added '-fomit-frame-pointer' to my CFLAGS environment variable just before emerging the package. Removing the line 'use debug || append-flags -fomit-frame-pointer' (423) and adding `append-flags -fomit-frame-pointer' anyway on line 425 will also solve the issue.
media-video, are you with the above change in append-flags?
(In reply to comment #9) > As a temporary solution; I removed the 'debug' USE flag from my make.conf and > added '-fomit-frame-pointer' to my CFLAGS environment variable just before > emerging the package. It looks like it's enough to just remove the 'debug' USE flag; at least, that works for me. (You can add the line media-video/mplayer -debug to the file /etc/portage/package.use to do this just for mplayer until the ebuild is fixed. I gather it will be tough to do any debuging with -fomit-frame-pointer anyway.)
*** Bug 160613 has been marked as a duplicate of this bug. ***
-debug works for me, too. emerge -pv mplayer These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-video/mplayer-1.0_rc1 USE="3dnow 3dnowext X aac aalib alsa cdparanoia cpudetection custom-cflags dga doc dts dvd dvdread encode esd gif gtk iconv ipv6 jpeg libcaca live mad mmx mmxext musepack opengl oss png real rtc samba sdl sse svga theora truetype unicode v4l v4l2 vorbis win32codecs x264 xv xvid -3dfx (-altivec) -amr -arts -bidi -bindist -bl -debug -directfb -dv -dvb -enca -fbcon -ggi -jack -joystick -lirc -livecd -lzo -matrox -nas -openal -speex -sse2 -tga -xanim -xinerama -xvmc" LINGUAS="-bg -cs -da -de -el -en -es -fr -hu -ja -ko -mk -nl -no -pl -pt_BR -ro -ru -sk -tr -uk -zh_CN -zh_TW" 0 kB emerge --info Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r6 i686) ================================================================= System uname: 2.6.18-gentoo-r6 i686 AMD Athlon(tm) XP 2100+ Gentoo Base System version 1.12.6 Last Sync: Sat, 06 Jan 2007 20:00:01 +0000 ccache version 2.4 [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: [Not Present] 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="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-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/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa alsa_cards_intel8x0 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus divx4linux dlloader doc dri dvd dvdr dvdread eds elibc_glibc emboss encode esd fam ffmpeg firefox flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg kernel_linux ldap libg++ mad mikmod mmx mp3 mpeg mysql ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre perl pic png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl sse ssl tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l video_cards_fbdev video_cards_nvidia video_cards_vesa vorbis win32codecs xml xml2 xorg xprint xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
*** Bug 161099 has been marked as a duplicate of this bug. ***
*** Bug 161444 has been marked as a duplicate of this bug. ***
I confirm : -debug works for me, too.
With USE=debug mplayer now filters -fomit-frame-pointer, as there was no objection from video, I close this resolved.
*** Bug 162616 has been marked as a duplicate of this bug. ***
Someone posted a link to a patch on Bug 162616: http://tonelli.sns.it/pub/mplayer/etch/mplayer_1.0~rc1-9.diff
(In reply to comment #19) > Someone posted a link to a patch on Bug 162616: > > http://tonelli.sns.it/pub/mplayer/etch/mplayer_1.0~rc1-9.diff Thanks, jakub...then I reopen. media-video team, I am NOT going to commit such a big change, so please take care of this.
(In reply to comment #17) > With USE=debug mplayer now filters -fomit-frame-pointer, as there was no > objection from video, I close this resolved. > What is this good for? - afaict mplayer normally does not use user cflags - -fomit-frame-pointer has to be added (ie manually to the config) when USE=debug for mplayer to compile
(In reply to comment #20) > (In reply to comment #19) > > Someone posted a link to a patch on Bug 162616: > > > > http://tonelli.sns.it/pub/mplayer/etch/mplayer_1.0~rc1-9.diff > > > Thanks, jakub...then I reopen. media-video team, I am NOT going to commit > such a big change, so please take care of this. what about this change (excerpt from the already attached patch): --- mplayer-1.0~rc1.orig/libavcodec/Makefile +++ mplayer-1.0~rc1/libavcodec/Makefile @@ -300,7 +300,24 @@ OBJS-$(CONFIG_DVDSUB_PARSER) += dvdsub.o OBJS-$(CONFIG_H261_PARSER) += h261.o OBJS-$(CONFIG_H263_PARSER) += h263dec.o +### +#if --enable-debug is passed to MPlayer's configure, then +# OPTFLAGS = '-O4 -ffast-math -fomit-frame-pointer ...' +# is replaced by '-O2...' +# but cabac.h cannot be compiled in x86, it fails as follows +#cabac.h:513: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' +# +#This was reported as a bug against GCC, in +# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11203 +# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13850 +#but is actually not: i386 simply cannot compile that asm w/o those parameters +ifeq ($(TARGET_ARCH_X86),yes) +ifneq ($(CONFIG_DEBUG),) +h264.o : OPTFLAGS = -O4 -ffast-math -fomit-frame-pointer +endif +endif OBJS-$(CONFIG_H264_PARSER) += h264.o +## OBJS-$(CONFIG_MJPEG_PARSER) += mjpeg.o OBJS-$(CONFIG_MPEG4VIDEO_PARSER) += parser.o OBJS-$(CONFIG_MPEGAUDIO_PARSER) += parser.o
People at gcc have discussed something similar. See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11203
(In reply to comment #23) > People at gcc have discussed something similar s/discussed/flamed :P > (In reply to comment #17) > What is this good for? > > - afaict mplayer normally does not use user cflags That's broken behaviour pretty much. > - -fomit-frame-pointer has to be added (ie manually to the config) when > USE=debug for mplayer to compile See we really can't wait for gcc folks to figure something out (doesn't go anywhere, see Comment #23). This either needs to be patched properly or the C[XX]FLAGS appended/filtered meanwhile in ebuilds as needed, instead of letting us get continually flooded by tons of duplicates because compile fails. -fomit-frame-pointer is extremely common in C[XX]FLAGS and this breaks for lots of users otherwise, it's not like that you could tell them 'Don't use such flags".
This fails to compile for me on an opteron system with CFLAGS="-O2 -march=opteron -pipe -fomit-frame-pointer", the debug use flag not set, and using gcc-4.1.2.
*** Bug 167689 has been marked as a duplicate of this bug. ***
Me too. The following is the bug report and my emerge --info. ----ERROR---------- cabac.h:513: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' make[1]: *** [h264.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0_rc1-r2/work/MPlayer-1.0rc1/libavcodec' make: *** [libavcodec/libavcodec.a] Error 2 !!! ERROR: media-video/mplayer-1.0_rc1-r2 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3285: Called src_compile mplayer-1.0_rc1-r2.ebuild, line 450: Called die !!! Failed to build MPlayer! !!! 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-video/mplayer-1.0_rc1-r2/temp/build.log'. #emerge --info Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20.1 i686) ================================================================= System uname: 2.6.20.1 i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.12.1 Timestamp of tree: Wed, 28 Feb 2007 02:00:02 +0000 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="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O3 -fomit-frame-pointer -funroll-all-loops -msse2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-march=pentium-m -O3 -fomit-frame-pointer -funroll-all-loops -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib alsa avi bash-completion bitmap-fonts bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt cups dbus debug dlloader dri dts dvd dvdr dvdread emboss encode esd fam fbcon fbsplash ffmpeg firefox flac font-server fortran ftp fuse gaim gdbm gif glib gnome gpm gstreamer gstreamer010 gtk gtk2 gtkspell gzip hal icc iconv imagemagick imlib imlib2 ipv6 jpeg lame ldap libg++ libnotify libsexy libvisual libwww lm_sensors mad midi mikmod mp3 mp4 mpeg mpeg2 mplayer musepack mysql ncurses nls nptl nsplugin ogg opengl oss pam pcre pdflib perl png ppds pppd python quicktime readline reflection sdl session skins spell spl ssl tcpd theora truetype truetype-fonts type1-fonts udev unicode v4l v4l2 vorbis win32codecs wxwindows x86 xine xinerama xml xorg xv xvid zlib zlibsse2" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc 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, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
(In reply to comment #24) > > (In reply to comment #17) > > What is this good for? > > > > - afaict mplayer normally does not use user cflags > > That's broken behaviour pretty much. That's because many flags break mplaeyr. There is custom-cflags USE. > > > - -fomit-frame-pointer has to be added (ie manually to the config) when > > USE=debug for mplayer to compile > > See we really can't wait for gcc folks to figure something out (doesn't go > anywhere, see Comment #23). This either needs to be patched properly or the > C[XX]FLAGS appended/filtered meanwhile in ebuilds as needed, instead of letting > us get continually flooded by tons of duplicates because compile fails. yes, the debug build should be fixed by (mplayer) upstream, and the small patch to build the offending file with -fomit-frame-pointer even for debug build should fix it for us > > -fomit-frame-pointer is extremely common in C[XX]FLAGS and this breaks for lots > of users otherwise, it's not like that you could tell them 'Don't use such > flags". > yes, and it is no use filtering that because 1) it is not used anyway 2) it is not what breaks the build but what makes it work
*** Bug 169854 has been marked as a duplicate of this bug. ***
Please try it with >=media-video/mplayer-1.0_rc2_pre20070321-r3
*** Bug 171964 has been marked as a duplicate of this bug. ***
media-video/mplayer-1.0_rc2_pre20070321-r3 did compile for me, and works fine, as usual :)
*** Bug 172504 has been marked as a duplicate of this bug. ***
I see no rc2 version in portage, the stable one ( 1.0.20070321 ) does not build.
(In reply to comment #34) > I see no rc2 version in portage, the stable one ( 1.0.20070321 ) does not > build. Have a look at the ChangeLog. The versioning scheme has been changed. Test the latest in testing. As my crystal ball is in repair I cannot see what your error is, "does not build" is just not enough to help you.
(In reply to comment #35) > (In reply to comment #34) > > I see no rc2 version in portage, the stable one ( 1.0.20070321 ) does not > > build. > > Have a look at the ChangeLog. The versioning scheme has been changed. Test > the latest in testing. As my crystal ball is in repair I cannot see what your > error is, "does not build" is just not enough to help you. > I thought you will not need a crystal ball since this bug is all about error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' The newest mplayer gives a different error so I guess this is really fixed in that: i686-pc-linux-gnu-gcc -I../libavcodec -I../libavformat -Wdeclaration-after-statement -I. -I.. -I../libavutil -W -Wall -Wno-unused-parameter -O2 -march=pentium4 -mtune=pentium4 -g3 -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -c -o vf_decimate.o vf_decimate.c vf_decimate.c: In function `diff_MMX': vf_decimate.c:26: error: can't find a register in class `BREG' while reloading `asm' make[1]: *** [vf_decimate.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0.20070427/work/mplayer-20070427/libmpcodecs' make: *** [libmpcodecs/libmpcodecs.a] Error 2 media-video/mplayer-1.0.20070427
it is not fixed, only hidden by the BREGS bug which apparently hits earlier than this. i686-pc-linux-gnu-gcc -I../libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil -Wdeclaration-after-statement -I. -I.. -I../libavutil -W -Wall -Wno-unused-parameter -O2 -march=pentium4 -mtune=pentium4 -g3 -fno-PIE -fno-PIC -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -c -o h264.o h264.c In file included from dsputil.h:34, from h264.c:30: avcodec.h:2480: warning: `ImgReSampleContext' is deprecated (declared at avcodec.h:2467) avcodec.h:2483: warning: `ImgReSampleContext' is deprecated (declared at avcodec.h:2467) In file included from h264.c:36: cabac.h:366: warning: `inline' is not at beginning of declaration h264.c: In function `fill_caches': h264.c:617: warning: comparison between signed and unsigned h264.c:785: warning: comparison between signed and unsigned h264.c: In function `check_intra_pred_mode': h264.c:1030: warning: comparison between signed and unsigned h264.c: In function `direct_dist_scale_factor': h264.c:1323: warning: comparison between signed and unsigned h264.c:1335: warning: comparison between signed and unsigned h264.c: In function `direct_ref_list_init': h264.c:1352: warning: comparison between signed and unsigned h264.c:1361: warning: comparison between signed and unsigned h264.c: In function `write_back_motion': h264.c:1696: warning: comparison between signed and unsigned h264.c: At top level: h264.c:3500: warning: `inline' is not at beginning of declaration h264.c: In function `hl_decode_mb_internal': h264.c:3533: warning: comparison between signed and unsigned h264.c:3538: warning: suggest parentheses around arithmetic in operand of ^ h264.c:3544: warning: suggest parentheses around arithmetic in operand of ^ h264.c: In function `fill_default_ref_list': h264.c:3854: warning: comparison between signed and unsigned h264.c:3866: warning: comparison between signed and unsigned h264.c:3882: warning: comparison between signed and unsigned h264.c:3898: warning: comparison between signed and unsigned h264.c: In function `decode_ref_pic_list_reordering': h264.c:3931: warning: comparison between signed and unsigned h264.c:3946: warning: comparison between signed and unsigned h264.c:3955: warning: comparison between signed and unsigned h264.c:3994: warning: comparison between signed and unsigned h264.c:4010: warning: comparison between signed and unsigned h264.c:4011: warning: comparison between signed and unsigned h264.c: In function `fill_mbaff_ref_list': h264.c:4026: warning: comparison between signed and unsigned h264.c:4044: warning: comparison between signed and unsigned h264.c:4045: warning: comparison between signed and unsigned h264.c: In function `pred_weight_table': h264.c:4065: warning: comparison between signed and unsigned h264.c: In function `implicit_weight_table': h264.c:4121: warning: comparison between signed and unsigned h264.c:4123: warning: comparison between signed and unsigned h264.c: In function `print_short_term': h264.c:4238: warning: comparison between signed and unsigned h264.c: In function `decode_slice_header': h264.c:4537: warning: comparison between signed and unsigned h264.c:4561: warning: comparison between signed and unsigned h264.c:4670: warning: comparison between signed and unsigned h264.c:4671: warning: comparison between signed and unsigned h264.c: In function `decode_residual': h264.c:4917: warning: comparison between signed and unsigned h264.c: In function `decode_mb_cavlc': h264.c:5280: warning: comparison between signed and unsigned h264.c:5286: warning: comparison between signed and unsigned h264.c:5301: warning: comparison between signed and unsigned h264.c:5302: warning: unused variable `ref_count' h264.c:5353: warning: comparison between signed and unsigned h264.c:5365: warning: comparison between signed and unsigned h264.c:5380: warning: comparison between signed and unsigned h264.c:5394: warning: comparison between signed and unsigned h264.c:5411: warning: comparison between signed and unsigned h264.c:5425: warning: comparison between signed and unsigned h264.c: At top level: h264.c:5981: warning: `inline' is not at beginning of declaration h264.c: In function `decode_cabac_residual': h264.c:6115: warning: passing arg 4 of `decode_significance_8x8_x86' discards qualifiers from pointer target type h264.c:6042: warning: unused variable `last' h264.c: At top level: h264.c:6190: warning: `inline' is not at beginning of declaration h264.c: In function `decode_mb_cabac': h264.c:6416: warning: comparison between signed and unsigned h264.c:6435: warning: comparison between signed and unsigned h264.c:6503: warning: comparison between signed and unsigned h264.c:6510: warning: comparison between signed and unsigned h264.c:6525: warning: comparison between signed and unsigned h264.c:6534: warning: comparison between signed and unsigned h264.c:6552: warning: comparison between signed and unsigned h264.c:6561: warning: comparison between signed and unsigned h264.c: In function `filter_mb': h264.c:7147: warning: comparison between signed and unsigned h264.c: In function `decode_unregistered_user_data': h264.c:7559: warning: comparison between signed and unsigned h264.c: At top level: h264.c:8705: warning: missing initializer h264.c:8705: warning: (near initialization for `h264_parser.next') In file included from h264.c:8708: svq3.c: In function `svq3_decode_block': svq3.c:224: warning: comparison between signed and unsigned svq3.c: In function `svq3_mc_dir': svq3.c:374: warning: comparison between signed and unsigned svq3.c:374: warning: comparison between signed and unsigned svq3.c: In function `svq3_decode_mb': svq3.c:450: warning: comparison between signed and unsigned svq3.c: In function `svq3_decode_slice_header': svq3.c:741: warning: comparison between signed and unsigned svq3.c: At top level: svq3.c:1015: warning: missing initializer svq3.c:1015: warning: (near initialization for `svq3_decoder.next') cabac.h: In function `get_cabac_noinline': cabac.h:522: error: can't find a register in class `GENERAL_REGS' while reloading `asm' h264.c: At top level: cabac.h:109: warning: 'put_cabac_static' defined but not used cabac.h:155: warning: 'put_cabac_terminate' defined but not used cabac.h:183: warning: 'put_cabac_u' defined but not used cabac.h:218: warning: 'put_cabac_ueg' defined but not used cabac.h:270: warning: 'refill2' defined but not used cabac.h:808: warning: 'get_cabac_u' defined but not used cabac.h:824: warning: 'get_cabac_ueg' defined but not used make[1]: *** [h264.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0.20070427/work/mplayer-20070427/libavcodec' make: *** [libavcodec/libavcodec.a] Error 2
If you still have issues, move them to Bug 175627.