[Ffmpeg-devel] snow related files cause the compile of mplayer to crash on mac os x 10.3.9

Ergzay ergzay
Wed Mar 29 09:00:25 CEST 2006


I sent this to mplayer-users and they forwarded me here.
A recent commit in the past 2 days of stuff regarding to snow causes 
mplayer to crash. When the compile gets to the part about snow gcc has 
always given out a whole lot of warnings but now it gets an error. I am 
running Mac OS X 10.3.9. I also suggest that an option be added to 
configure to not compile snow. I have no clue what it is and I never 
use it (unless its a core part of mplayer).

This first part of the log is snow.c and it only gives errors as it 
always has (but now it gives more) only giving this because it might be 
relevant

cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=7450 
-mtune=7450 -faltivec -D__APPLE_ALTIVEC__ -pipe -ffast-math 
-fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN 
-DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-DHAVE_AV_CONFIG_H -I.. -I/Users/ergzay/main/libavutil 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE   -c -o snow.o 
snow.c
snow.c: In function `encode_q_branch':
snow.c:1968: warning: initialization discards qualifiers from pointer 
target type
snow.c:1969: warning: initialization discards qualifiers from pointer 
target type
snow.c:1970: warning: initialization discards qualifiers from pointer 
target type
snow.c:1971: warning: initialization discards qualifiers from pointer 
target type
snow.c: In function `encode_q_branch2':
snow.c:2174: warning: initialization discards qualifiers from pointer 
target type
snow.c:2175: warning: initialization discards qualifiers from pointer 
target type
snow.c: In function `decode_q_branch':
snow.c:2223: warning: initialization discards qualifiers from pointer 
target type
snow.c:2224: warning: initialization discards qualifiers from pointer 
target type
snow.c: In function `ff_snow_inner_add_yblock':
snow.c:2480: warning: left shift count is negative
snow.c: In function `add_yblock':
snow.c:2763: warning: left shift count is negative
snow.c: In function `predict_slice_buffered':
snow.c:2839: warning: passing arg 6 of `add_yblock_buffered' discards 
qualifiers from pointer target type
snow.c: In function `predict_slice':
snow.c:2897: warning: passing arg 5 of `add_yblock' discards qualifiers 
from pointer target type
snow.c: In function `get_dc':
snow.c:2943: warning: passing arg 5 of `add_yblock' discards qualifiers 
from pointer target type
snow.c: In function `get_block_bits':
snow.c:2973: warning: initialization discards qualifiers from pointer 
target type
snow.c:2974: warning: initialization discards qualifiers from pointer 
target type
snow.c: In function `get_4block_rd':
snow.c:3115: warning: passing arg 2 of `add_yblock' discards qualifiers 
from pointer target type
snow.c:3115: warning: passing arg 5 of `add_yblock' discards qualifiers 
from pointer target type
snow.c: In function `iterative_me':
snow.c:3262: warning: initialization discards qualifiers from pointer 
target type
snow.c:3263: warning: initialization discards qualifiers from pointer 
target type
snow.c:3264: warning: initialization discards qualifiers from pointer 
target type
snow.c:3265: warning: initialization discards qualifiers from pointer 
target type
snow.c:3266: warning: initialization discards qualifiers from pointer 
target type
snow.c:3267: warning: initialization discards qualifiers from pointer 
target type
snow.c:3268: warning: initialization discards qualifiers from pointer 
target type
snow.c:3269: warning: initialization discards qualifiers from pointer 
target type
snow.c: In function `common_init':
snow.c:3776: warning: assignment from incompatible pointer type
snow.c:3776: warning: assignment from incompatible pointer type
snow.c:3777: warning: assignment from incompatible pointer type
snow.c:3777: warning: assignment from incompatible pointer type
snow.c:3778: warning: assignment from incompatible pointer type
snow.c:3778: warning: assignment from incompatible pointer type
snow.c:3779: warning: assignment from incompatible pointer type
snow.c:3779: warning: assignment from incompatible pointer type

This is for dsputil_snow_altivec.c that was added recently which now 
causes the error in the compile.

cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=7450 
-mtune=7450 -faltivec -D__APPLE_ALTIVEC__ -pipe -ffast-math 
-fomit-frame-pointer -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN 
-DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-DHAVE_AV_CONFIG_H -I.. -I/Users/ergzay/main/libavutil 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE   -c -o 
ppc/dsputil_snow_altivec.o ppc/dsputil_snow_altivec.c
ppc/dsputil_snow_altivec.c: In function 
`inner_add_yblock_bw_8_obmc_16_altivec':
ppc/dsputil_snow_altivec.c:513: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:515: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:518: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:520: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:522: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:524: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:526: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:529: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:531: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:533: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:535: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:537: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:539: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:541: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:556: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:557: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:560: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c: In function 
`inner_add_yblock_bw_16_obmc_32_altivec':
ppc/dsputil_snow_altivec.c:667: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:671: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:676: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:678: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:680: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:682: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:684: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:687: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:689: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:691: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:693: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:695: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:697: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:699: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:702: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:704: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:706: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:708: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:710: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:712: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:714: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:717: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:719: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:721: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:723: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:725: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:727: error: incompatible types in assignment
ppc/dsputil_snow_altivec.c:729: error: incompatible types in assignment
make[1]: *** [ppc/dsputil_snow_altivec.o] Error 1
make: *** [libavcodec/libavcodec.a] Error 2





More information about the ffmpeg-devel mailing list