[Ffmpeg-devel] swscale.c compile error

Aaron Williams aaronw
Thu Nov 2 09:39:58 CET 2006


Aaron Williams wrote:
> Hi,
>
> Aaron Williams wrote:
>   
>> make[1]: Entering directory `/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg/libswscale'
>> gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
>> -D_ISOC9X_SOURCE -I/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg
>> -I/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg
>> -I/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg/libavutil -g -fomit-frame-pointer
>> -march=athlon64 -g -Wdeclaration-after-statement -Wall -Wno-switch
>> -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3
>> -fPIC -DPIC -c -o swscale.o swscale.c
>> swscale.c: In function ?yuv2packedXinC?:
>> swscale.c:661: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:667: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:678: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:697: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:712: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:723: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:734: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:745: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:754: warning: pointer of type ?void *? used in arithmetic
>> swscale.c:785: warning: unused variable ?g?
>> swscale.c:785: warning: unused variable ?b?
>> swscale.c:785: warning: unused variable ?r?
>> swscale.c:793: warning: unused variable ?g?
>> swscale.c:793: warning: unused variable ?b?
>> swscale.c:793: warning: unused variable ?r?
>> swscale.c: In function ?getSwsFunc?:
>> swscale.c:1504: error: ?swScale_C? undeclared (first use in this function)
>> swscale.c:1504: error: (Each undeclared identifier is reported only once
>> swscale.c:1504: error: for each function it appears in.)
>> swscale.c: In function ?gray16swap?:
>> swscale.c:1789: warning: initialization from incompatible pointer type
>> swscale.c:1790: warning: initialization from incompatible pointer type
>> swscale.c: In function ?getSwsFunc?:
>> swscale.c:1507: warning: control reaches end of non-void function
>> make[1]: *** [swscale.o] Error 1
>> make[1]: Leaving directory `/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg/libswscale'
>>
>> My last successful build was r6280. 
>> FFmpeg version SVN-r6280, Copyright (c) 2000-2006 Fabrice Bellard, et al.
>>   configuration:  --enable-libogg --enable-vorbis --enable-faad
>> --enable-faac --enable-xvid --enable-x264 --enable-a52 --enable-dts
>> --enable-dc1394 --enable-gpl --enable-mp3lame --enable-swscaler
>> --enable-pp --enable-amr_wb --enable-amr_nb --enable-amr_if2
>> --cpu=athlon64 --extra-cflags=-g --enable-shared
>>   libavutil version: 49.0.2
>>   libavcodec version: 51.23.0
>>   libavformat version: 50.6.0
>>   built on Oct 31 2006 17:03:39, gcc: 4.1.0 (SUSE Linux)
>>
>>   
>>     
> I forgot to mention that this was compiled for an Athlon64.
>
> -Aaron
>   

I thought the problem might be due to the fact that I didn't re-run
configure and am now seeing a different failure, though now with resample.c:

gcc -I/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg/libswscale -DIF2=1 
-DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_ISOC9X_SOURCE -I/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg
-I/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg
-I/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg/libavutil -g -fomit-frame-pointer
-march=athlon64 -g -Wdeclaration-after-statement -Wall -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3
-fPIC -DPIC -c -o liba52/resample.o liba52/resample.c
/tmp/cc4KTT3s.s: Assembler messages:
/tmp/cc4KTT3s.s:65: Error: `(%rax,%esi,2)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:66: Error: `8(%rax,%esi,2)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:74: Error: `(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:75: Error: `8(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:77: Error: `12(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:78: Error: `16(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:80: Error: `20(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:81: Error: `24(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:82: Error: `32(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:108: Error: `(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:109: Error: `8(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:110: Error: `1024(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:111: Error: `1032(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:121: Error: `(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:122: Error: `8(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:150: Error: `(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:151: Error: `2048(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:152: Error: `1024(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:153: Error: `4(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:154: Error: `2052(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:156: Error: `1028(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:157: Error: `8(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:158: Error: `2056(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:169: Error: `(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:170: Error: `8(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:171: Error: `16(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:172: Error: `1032(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:173: Error: `12(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:174: Error: `2060(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:176: Error: `1036(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:183: Error: `24(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:184: Error: `32(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:210: Error: `(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:211: Error: `8(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:212: Error: `1024(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:213: Error: `1032(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:220: Error: `2048(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:221: Error: `2056(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:222: Error: `3072(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:223: Error: `3080(%rdi,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:242: Error: `(%rax,%esi,2)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:243: Error: `8(%rax,%esi,2)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:244: Error: `16(%rax,%esi,2)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:245: Error: `24(%rax,%esi,2)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:270: Error: `(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:271: Error: `2048(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:272: Error: `3072(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:273: Error: `4096(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:274: Error: `1024(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:275: Error: `4(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:276: Error: `2052(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:277: Error: `3076(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:278: Error: `4100(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:279: Error: `1028(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:280: Error: `8(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:281: Error: `2056(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:293: Error: `(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:294: Error: `8(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:295: Error: `16(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:296: Error: `3080(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:297: Error: `4104(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:298: Error: `1032(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:299: Error: `12(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:300: Error: `2060(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:301: Error: `3084(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:302: Error: `4108(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:303: Error: `1036(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:310: Error: `24(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:311: Error: `32(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:337: Error: `1024(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:338: Error: `1032(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:339: Error: `(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:340: Error: `8(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:351: Error: `(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:352: Error: `8(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:354: Error: `12(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:355: Error: `20(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:356: Error: `24(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:357: Error: `32(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:359: Error: `36(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:360: Error: `44(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:386: Error: `1024(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:387: Error: `2048(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:388: Error: `(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:402: Error: `(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:404: Error: `8(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:405: Error: `16(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:431: Error: `1024(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:432: Error: `3072(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:433: Error: `2048(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:434: Error: `(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:448: Error: `(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:451: Error: `8(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:452: Error: `16(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:477: Error: `1024(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:478: Error: `2048(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:479: Error: `3072(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:480: Error: `4096(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:481: Error: `(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:502: Error: `(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:503: Error: `8(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:504: Error: `16(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:529: Error: `1024(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:530: Error: `3072(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:531: Error: `4096(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:532: Error: `5120(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:533: Error: `2048(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:534: Error: `(%rax,%esi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:556: Error: `(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:557: Error: `8(%rdx,%edi)' is not a valid base/index
expression
/tmp/cc4KTT3s.s:558: Error: `16(%rdx,%edi)' is not a valid base/index
expression
make[1]: *** [liba52/resample.o] Error 1
make[1]: Leaving directory `/home/aaronw/ftp/mpeg/ffmpeg/ffmpeg/libavcodec'
make: *** [lib] Error 2





More information about the ffmpeg-devel mailing list