[Ffmpeg-devel] compile problems with x86 asm code?
Ronald S. Bultje
rbultje
Fri Jul 22 15:41:44 CEST 2005
Hi,
According to http://bugzilla.gnome.org/show_bug.cgi?id=308415 (comment
#9 an further), ffmpeg CVS of last wednesday (july 20th '05 around 4:00
PM GMT) does not compile for some gcc versions. The compile error is in
libavcodec/i386/dsputil_mmx.c, and even occurs when -fomit-frame-pointer
is specified (in combination with -fPIC). In previous cases (and
previous snapshots I've used), -fomit-frame-pointer would always work
around similar compile errors. Removing -fPIC fixes it:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libavcodec
-DHAVE_AV_CONFIG_H=1
-fomit-frame-pointer -Wall -Wno-switch -msse -g -O2 -MT
libmmxsse_la-dsputil_mmx.lo -MD -MP -MF .deps/libmmxsse_la-dsputil_mmx.Tpo -c
dsputil_mmx.c -fPIC -DPIC -o .libs/libmmxsse_la-dsputil_mmx.o
leads to:
dsputil_mmx.c:618: error: can't find a register in class 'GENERAL_REGS' while
reloading 'asm'
dsputil_mmx.c:618: error: can't find a register in class 'GENERAL_REGS' while
reloading 'asm'
Is removing -fPIC the only solution, or is this a gcc bug, or possibly a
ffmpeg bug?
Thanks,
Ronald
--
Ronald S. Bultje <rbultje at ronald.bitfreak.net>
More information about the ffmpeg-devel
mailing list