[mythtv] CVS Compiler problem postprocess.c
in /mythtv/libs/libavcodec
Allan Stirling
Dibblahmythml0015 at pendor.org
Mon Oct 11 10:44:49 UTC 2004
Stefan Manteuffel wrote:
> Hello List
>
> after i had loaded the cvs for mythtv i can not compile it any more.
> The .16 and 15.1 was compiled on my suse 9.0 with any Problems.
> Here ist compiler output
>
>
> I hope some on know waht is wrong and sorry for that english ;)
>
>...
> libpostproc/postprocess_template.c: In function `postProcess_MMX':
> libpostproc/postprocess_template.c:3169: error: can't find a register in class
> `GENERAL_REGS' while reloading `asm'
> libpostproc/postprocess_template.c:3252: error: can't find a register in class
> `GENERAL_REGS' while reloading `asm'
>...
>
> has anyone an idear what is wrong ?
>
> Gossamer and google cant't help
>
> stefan
>
In fact, google can.
http://www.google.com/search?hl=en&q=%60GENERAL_REGS%27+while+reloading+%60asm%27&btnG=Google+Search
Gives us as the first result:
http://gcc.gnu.org/ml/gcc-bugs/2004-01/msg03115.html
Which points us towards:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13850
Which says that:
But with these
CFLAGS="-O -march=athlon-xp -funroll-loops -pipe"
it works. O6 and O3 and O2 don't work.
It's a problem with versions of GCC >3.4. Resolution is to step back GCC
versions, reduce your optimization level or don't specify an arch.
My temporary workaround is to recompile the individual files that fail,
replacing -O3 with -O. Then it compiles.
Cheers,
Allan.
More information about the mythtv-dev
mailing list