[FFmpeg-devel] Bugreport: compiling fails with -fPIC used

Måns Rullgård mans
Mon Oct 15 14:08:30 CEST 2007

Thorsten Jordan wrote:
> Hallo,
> although i know that one should better not use -fPIC with ffmpeg to have
> the most performance, there are situations when it is needed.

Such as?  Those architectures that require PIC for shared libs have
enough registers that the assembler code still works fine.

> Using -fPIC as CFLAGS leads to compilation error:
> i386/dsputil_mmx.c: In function ?flac_compute_autocorr_sse2?:
> i386/dsputil_mmx.c:3028: error: can't find a register in class
> ?GENERAL_REGS? while reloading ?asm?
> is this of any interest to you?

Not really.  Maybe you'll have better luck with a different
compiler version.  Register allocation tends to be a bit
random in GCC.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list