[Ffmpeg-devel] [BUG] Compilation failure when using --disable-opts
Panagiotis Issaris
takis.issaris
Mon Feb 19 14:50:53 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
With current SVN (revision 8028), I'm getting an error when trying to
compile it if configured to disable optimizations:
./configure --enable-gpl --disable-opts
make
...
gcc -I"/usr/local/src/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H
- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
- -I"/usr/local/src/ffmpeg" -I"/usr/local/src/ffmpeg"
- -I"/usr/local/src/ffmpeg"/libavutil -g -Wdeclaration-after-statement
- -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith
- -Wredundant-decls -Wno-pointer-sign -c -o cabac.o cabac.c
In file included from cabac.c:32:
cabac.h: In function ?get_cabac_noinline?:
cabac.h:522: error: can't find a register in class ?GENERAL_REGS? while
reloading ?asm?
make[1]: *** [cabac.o] Error 1
make[1]: Leaving directory `/usr/local/src/ffmpeg/libavcodec'
make: *** [lib] Error 2
I tried to continue compilation by compiling cabac.c with an additional
- -O1 option added, which worked, but then i386/dsputil_mmx.c compilation
failed. That also succeeded when adding a -O1, but then h264.c failed,
and adding -O1 or -O2 didn't help for that file:
takis at issaris:/usr/local/src/ffmpeg/libavcodec$ gcc
- -I"/usr/local/src/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H
- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
- -I"/usr/local/src/ffmpeg" -I"/usr/local/src/ffmpeg"
- -I"/usr/local/src/ffmpeg"/libavutil -g -Wdeclaration-after-statement
- -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith
- -Wredundant-decls -Wno-pointer-sign -c -o h264.o h264.c -O2
In file included from dsputil.h:34,
from h264.c:30:
avcodec.h:2425: warning: ?ImgReSampleContext? is deprecated
avcodec.h:2428: warning: ?ImgReSampleContext? is deprecated
h264.c: In function ?hl_decode_mb?:
h264.c:3541: warning: suggest parentheses around arithmetic in operand of ^
h264.c:3547: warning: suggest parentheses around arithmetic in operand of ^
h264.c: In function ?decode_mb_cavlc?:
h264.c:5270: warning: unused variable ?ref_count?
h264.c: In function ?decode_cabac_residual?:
h264.c:6083: warning: passing argument 4 of
?decode_significance_8x8_x86? discards qualifiers from pointer target type
h264.c:6010: warning: unused variable ?last?
h264.c: In function ?filter_mb_fast?:
h264.c:7035: warning: dereferencing type-punned pointer will break
strict-aliasing rules
h264.c: At top level:
cabac.h:109: warning: ?put_cabac_static? defined but not used
cabac.h:155: warning: ?put_cabac_terminate? defined but not used
cabac.h:183: warning: ?put_cabac_u? defined but not used
cabac.h:218: warning: ?put_cabac_ueg? defined but not used
cabac.h:270: warning: ?refill2? defined but not used
cabac.h:808: warning: ?get_cabac_u? defined but not used
cabac.h:824: warning: ?get_cabac_ueg? defined but not used
cabac.h: In function ?get_cabac_noinline?:
cabac.h:522: error: can't find a register in class ?GENERAL_REGS? while
reloading ?asm?
takis at issaris:/usr/local/src/ffmpeg/libavcodec$
Any tips?
I'm using GCC 4.1.2:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
- --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
- --enable-shared --with-system-zlib --libexecdir=/usr/lib
- --without-included-gettext --enable-threads=posix --enable-nls
- --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
- --enable-libstdcxx-debug --enable-mpfr --enable-checking=release
i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu1)
With friendly regards,
Takis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF2as99kOxLuzz4CkRAgjPAJwIhi8oPhX9oOfC5g23lo7a92eLnACeMzsE
IihPJnQO3OMcGLTDtwyUaHw=
=dUX+
-----END PGP SIGNATURE-----
More information about the ffmpeg-devel
mailing list