Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24588 - ffmpeg gives error while emerging gnome - appears to be mmx / athlon-xp related
Summary: ffmpeg gives error while emerging gnome - appears to be mmx / athlon-xp related
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-16 07:44 UTC by Rafael Rodriguez
Modified: 2003-10-03 05:51 UTC (History)
1 user (show)

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 Rafael Rodriguez 2003-07-16 07:44:30 UTC
While emerging gnome, ffmpeg gave me an error.  It appears to be something
related to mmx b/c after setting -mmx in my use flags, it worked fine.  




Reproducible: Always
Steps to Reproduce:
1.emerge gnome or
2.emerge ffmpeg
3.

Actual Results:  
gcc -march=athlon-xp -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o liba52/resample.o lib
a52/resample.c 
liba52/resample_mmx.c:10: warning: `magicF2W' defined but not used
liba52/resample_mmx.c:11: warning: `wm1010' defined but not used
liba52/resample_mmx.c:12: warning: `wm0101' defined but not used
liba52/resample_mmx.c:13: warning: `wm1100' defined but not used
gcc -march=athlon-xp -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o libpostproc/postproce
ss.o libpostproc/postprocess.c 
In file included from libpostproc/postprocess.c:435:
libpostproc/postprocess_template.c: In function `postProcess_MMX':
libpostproc/postprocess_template.c:2813: warning: unused variable `mbWidth'
libpostproc/postprocess.c: In function `isVertDC_MMX':
libpostproc/postprocess_template.c:61: can't find a register in class
`GENERAL_REGS' while reloading `asm'
make[1]: *** [libpostproc/postprocess.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/ffmpeg-0.4.7_pre20030624/work/ffmpeg-cvs-2003-06-24/libavcodec'
make: *** [lib] Error 2

!!! ERROR: media-video/ffmpeg-0.4.7_pre20030624 failed.
!!! Function src_compile, Line 56, Exitcode 2
!!! make failed.

Expected Results:  
=) not crap out

seemant in the #gentoo @ irc.freenode.net asked that I report this error.  Sorry
if I wasnt a lot of help, but I am new to linux =).
Comment 1 SpanKY gentoo-dev 2003-07-16 14:55:58 UTC
change -march=athlon-xp to -mcpu=athlon-xp and try again 
 
if that fixes it close this bug ... theres a warning in make.conf about utilizing said 
march flag 
Comment 2 Nick Hadaway 2003-07-20 03:46:04 UTC
i'm not aware of any problems with utilizing -march=athlon-xp... but if it fixes things, cool... :)

I am just noticing that there is NO optimization... not even -Os... I have seen both overoptimization and no-optimization cause trouble.  Strangely, I have heard of more problems with no optimization. :)
Comment 3 Alexandre Kraft 2003-07-22 02:02:52 UTC
I've exactly the same problem using a Pentium-4 CPU.
I've tried to emerge this package with these different CFLAGS, but it doesn't fix anything.

-mcpu=pentium4
-mcpu=pentium3
-mcpu=pentium
-mcpu=i586
-mcpu=athlon-xp
-mcpu=athlon

Here is my USE variable :

USE="aalib acpi alsa apache2 apm arts avi bonobo crypt cups esd gbdm gd gif gnome gpm imap imlib java jikes jpeg gtk mikmod mmx motif kde libwww mozilla mpeg nls oggvorbis odbc opengl pam pdflib perl png python qt quicktime readline samba slang sse ssl tcltk tcpd tiff truetype usb X xml xml2 xmms xv zlib x86"
Comment 4 Erik Swanson (RETIRED) gentoo-dev 2003-08-08 05:26:48 UTC
It fails for me (same as above) with all of the following CFLAGS settings:
"-O0 -pipe -g"
"-O0 -g"
"-g"
"-O0"
"-pipe"
"-O0 -pipe"

It only succeeds for me with CFLAGS="".
Comment 5 Alexandre Kraft 2003-08-13 00:13:42 UTC
>>> It only succeeds for me with CFLAGS="".

Fine, it works great for me too !
Comment 6 Darren Greer 2003-08-24 10:08:32 UTC
I tried with a CFLAGS="" and ended up with the same error on my Pentium III
Comment 7 James Harlow (RETIRED) gentoo-dev 2003-09-05 21:11:39 UTC
I no longer get this bug, even using ridiculous cflags (-march=athlon-xp -O3 -pipe 
-fomit-frame-pointer -funroll-loops -mfpmath=sse,387, with USE="+mmx +encode 
+oggvorbis +doc -faad +dvd -static +sdl +imlib +truetype"). Has the ebuild been bumped? 
Comment 8 Luca Barbato gentoo-dev 2003-10-03 05:51:49 UTC
yes =)

I guess we can close it.