Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89466 - MPlayer 1.0-pre7 emerge fails at "postProcess_MMX"
Summary: MPlayer 1.0-pre7 emerge fails at "postProcess_MMX"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-04-17 15:15 UTC by teidakankan
Modified: 2005-08-09 13:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description teidakankan 2005-04-17 15:15:10 UTC
Emerge fails to build libpostproc.so.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




MPlayer 1.0-pre7 * Make completed
rm -f libpostproc.a
ar rc libpostproc.a postprocess.o
true libpostproc.a
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -march=pentium3 -O3
-mfpmath=sse -pipe -momit-leaf-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  -I. -I..
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o
postprocess_pic.o postprocess.c
In file included from postprocess.c:645:
postprocess_template.c: In function `postProcess_MMX':
postprocess_template.c:2901: warning: use of memory input without lvalue in asm
operand 4 is deprecated
postprocess_template.c:2901: warning: use of memory input without lvalue in asm
operand 4 is deprecated
postprocess_template.c: In function `do_a_deblock_MMX':
postprocess_template.c:2901: warning: use of memory input without lvalue in asm
operand 4 is deprecated
postprocess_template.c: In function `postProcess_MMX':
postprocess_template.c:3198: error: can't find a register in class
`GENERAL_REGS' while reloading `asm'
postprocess_template.c:3283: error: can't find a register in class
`GENERAL_REGS' while reloading `asm'
postprocess_template.c:3198: error: can't find a register in class
`GENERAL_REGS' while reloading `asm'
postprocess_template.c:3283: error: can't find a register in class
`GENERAL_REGS' while reloading `asm'
make: *** [postprocess_pic.o] Error 1

!!! ERROR: media-video/mplayer-1.0_pre7 failed.
!!! Function src_compile, Line 494, Exitcode 2
!!! Failed to build libpostproc.so!
!!! If you need support, post the topmost build error, NOT this status message.



emerge info:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 20:15:35)]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -mfpmath=sse -pipe -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -mfpmath=sse -pipe -momit-leaf-frame-pointer"
DISTDIR="/packages"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO
ftp://ftp.jaist.ac.jp/pub/os/Linux/Gentoo/"
LINGUAS="en ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="x86 X a52 aalib alsa anthy apm arts avi berkdb bitmap-fonts bmp cdr cjk
crypt cscope cups curl divx4linux dri dvd dvdread emboss encode esd fam fame
flac foomaticdb fortran freetype gd gdbm ggi gif glx gnome gphoto2 gpm gstreamer
gtk gtk2 guile imagemagick imlib ipv6 jack java jpeg junit kde ldap libg++
libwww live mad mailwrapper mikmod mjpeg mmx motif mp3 mpeg nas ncurses network
nls nonfsv4 nptl nvidia ogg oggvorbis opengl oss pam pda pdflib perl png python
qt quicktime readline real rtc samba scanner sdl slang smime speex spell sse ssl
svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb v4l v4l2 vorbis xml
xml2 xprint xscreensaver xv xvid zlib linguas_en linguas_ja"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
er 1.0-pre7
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-04-17 15:24:07 UTC
Try with CFLAGS="-O2" - see bug 88914.
Comment 2 teidakankan 2005-04-17 16:03:04 UTC
OK.  Compiled fine with CFLAGS="-O2".  Thanks for the prompt reply!
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-04-17 16:33:47 UTC
-O3 should probably be filtered out as it seems to fail in a spectacular way with mplayer. 
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-05-05 06:09:37 UTC
it's already in the mplayer-1.0_pre7 ebuild, thanks for reporting:

# ugly optimizations cause MPlayer to cry on x86 systems!
    if use x86 ; then
        replace-flags -O0 -O2
        replace-flags -O3 -O2
        filter-flags -fPIC -fPIE
    fi
Comment 5 Real Name 2005-08-09 13:13:22 UTC
(In reply to comment #4)
> it's already in the mplayer-1.0_pre7 ebuild, thanks for reporting:
> 
> # ugly optimizations cause MPlayer to cry on x86 systems!
>     if use x86 ; then
>         replace-flags -O0 -O2
>         replace-flags -O3 -O2
>         filter-flags -fPIC -fPIE
>     fi

I get the same Error with amd64 and -O3, maybe someone should expand this
workaround?