[x264-devel] [PATCH] Fixes Linux PPC Build

Dominik 'Rathann' Mierzejewski dominik at greysector.net
Fri Dec 5 20:06:07 CET 2008


On Friday, 05 December 2008 at 19:24, David Wolstencroft wrote:
> The attached patch fixes PPC compilation on Linux. Apple's GCC is more lax
> with regards to typecasting vector data types and does not even issue a
> warning. Apple's GCC also provides no command line switch to increase
> strictness.

For the record, this is the original problem:
[...]
gcc -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -DHAVE_MALLOC_H -DARCH_PPC -DSYS_LINUX -DWORDS_BIGENDIAN -DHAVE_PTHREAD -fPIC -maltivec -mabi=altivec   -c -o common/ppc/pixel.o common/ppc/pixel.c
common/ppc/pixel.c: In function 'pixel_satd_16x8_altivec':
common/ppc/pixel.c:434: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts
common/ppc/pixel.c:434: error: incompatible types in assignment
common/ppc/pixel.c:435: error: incompatible types in assignment
common/ppc/pixel.c:436: error: incompatible types in assignment
common/ppc/pixel.c:437: error: incompatible types in assignment
common/ppc/pixel.c:438: error: incompatible types in assignment
common/ppc/pixel.c:439: error: incompatible types in assignment
common/ppc/pixel.c:440: error: incompatible types in assignment
common/ppc/pixel.c:441: error: incompatible types in assignment
common/ppc/pixel.c: In function 'pixel_satd_16x16_altivec':
common/ppc/pixel.c:519: error: incompatible types in assignment
common/ppc/pixel.c:520: error: incompatible types in assignment
common/ppc/pixel.c:521: error: incompatible types in assignment
common/ppc/pixel.c:522: error: incompatible types in assignment
common/ppc/pixel.c:523: error: incompatible types in assignment
common/ppc/pixel.c:524: error: incompatible types in assignment
common/ppc/pixel.c:525: error: incompatible types in assignment
common/ppc/pixel.c:526: error: incompatible types in assignment
common/ppc/pixel.c:568: error: incompatible types in assignment
common/ppc/pixel.c:569: error: incompatible types in assignment
common/ppc/pixel.c:570: error: incompatible types in assignment
common/ppc/pixel.c:571: error: incompatible types in assignment
common/ppc/pixel.c:572: error: incompatible types in assignment
common/ppc/pixel.c:573: error: incompatible types in assignment
common/ppc/pixel.c:574: error: incompatible types in assignment
common/ppc/pixel.c:575: error: incompatible types in assignment
make: *** [common/ppc/pixel.o] Error 1

And the gcc was 4.3.2.

Regards,
R.

-- 
Fedora http://fedoraproject.org/wiki/User:Rathann
RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"


More information about the x264-devel mailing list