Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 45576

Summary: ffmpeg fails when using the -momit-leaf-frame-pointer cflag
Product: Gentoo Linux Reporter: Fabian <fire-reiher>
Component: New packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: kanaka
Priority: High    
Version: 2004.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fabian 2004-03-23 23:40:05 UTC
ffmpeg fails at postprocess.c when compiled with the "-momit-leaf-frame-pointer" cflag:

gcc -c -Wall -march=pentium4 -O2 -fomit-frame-pointer -pipe -momit-leaf-frame-pointer  -I. -I..  -fomit-frame-pointer -fPIC -DPIC -I.. -I../.. -o postprocess_pic.o postprocess.c
In file included from postprocess.c:509:
postprocess_template.c: In function `postProcess_MMX':
postprocess_template.c:2792: warning: unused variable `mbWidth'
In file included from postprocess.c:509:
postprocess_template.c:2624: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
postprocess_template.c:2707: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
postprocess_template.c:2624: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
postprocess_template.c:2707: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
make: *** [postprocess_pic.o] Error 1

this flag should be filtered out in the ebuild
the flag works fine for the the rest of my system though
Comment 1 Joel Martin (RETIRED) gentoo-dev 2004-03-26 12:49:48 UTC
I reproduced this problem.
ffmpeg-0.4.8.20040222 and up now have the flag filtered just for the libpostproc
portion.
Comment 2 Fabian 2004-03-28 09:50:41 UTC
nice, thank you ;)