Opened 17 years ago

Closed 17 years ago

#635 closed defect (fixed)

debug build fails in libavcodec: h264.c/cabac.h

Reported by: aardvark@… Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

SVN revision 20859
Linux 2.6.18
GCC 4.1.1
configure --with-gui --enable-debug

cc -I../libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I.. -I.. -I../libavutil
-Wdeclaration-after-statement -W -Wall -Wno-unused-parameter -O2 -march=prescott
-mtune=prescott -g -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT
-I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
-I/usr/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c -o h264.o h264.c
h264.c: In function ‘decode_cabac_residual’:
h264.c:6143: warning: passing argument 4 of ‘decode_significance_8x8_x86’
discards qualifiers from pointer target type
h264.c:6070: warning: unused variable ‘last’
h264.c: In function ‘filter_mb_fast’:
h264.c:7101: warning: dereferencing type-punned pointer will break
strict-aliasing rules
h264.c: In function ‘decode_unregistered_user_data’:
h264.c:7593: warning: comparison between signed and unsigned
h264.c:7598: warning: pointer targets in passing argument 1 of ‘sscanf’ differ
in signedness
h264.c: At top level:
h264.c:8652: warning: missing initializer
h264.c:8652: warning: (near initialization for ‘h264_parser.next’)
In file included from h264.c:8655:
svq3.c: In function ‘svq3_decode_block’:
svq3.c:224: warning: comparison between signed and unsigned
svq3.c: In function ‘svq3_mc_dir’:
svq3.c:374: warning: comparison between signed and unsigned
svq3.c:374: warning: comparison between signed and unsigned
svq3.c: In function ‘svq3_decode_mb’:
svq3.c:450: warning: comparison between signed and unsigned
svq3.c: In function ‘svq3_decode_slice_header’:
svq3.c:741: warning: comparison between signed and unsigned
svq3.c: At top level:
svq3.c:1014: warning: missing initializer
svq3.c:1014: warning: (near initialization for ‘svq3_decoder.next’)
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’

Compiles OK without the --enable-debug option.

Change History (3)

comment:1 by aardvark@…, 17 years ago

Correction: configure option are --enable-gui and --enable-debug

Further info: it dies if the gcc option -fomit-frame-pointers is missing, but
works if it is included.

comment:2 by compn, 17 years ago

workaround, copy and paste the cc line on cabac and h264.c and add -fomit-
frame-pointer

comment:3 by compn, 17 years ago

Resolution: fixed
Status: newclosed

reimar fixed this in svn, rejoice!

Note: See TracTickets for help on using tickets.