Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 936825

Summary: media-libs/x264-0.0.20231114-r1 - error: .../common/ppc/pixel.c:1576:31: error: assignment to 'x264_pixel_cmp_x3_t' { ... } from incompatible pointer type 'int (*)(uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t, int *)' { ... }
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: UNCONFIRMED ---    
Severity: normal CC: erhard_f
Priority: Normal    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
URL: https://code.videolan.org/videolan/x264/-/commit/de1bea534ff74195d1205cb5d50dab815bb7bc23
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412, 941869    
Attachments: build.log
emerge --info

Description ernsteiswuerfel archtester 2024-07-28 10:11:25 UTC
Created attachment 898458 [details]
build.log

[...]
../x264-c196240409e4d7c01b47448d93b1f9683aaa7cf7/common/ppc/pixel.c:1009:1: note: in expansion of macro 'PIXEL_SAD_X4_ALTIVEC'
 1009 | PIXEL_SAD_X4_ALTIVEC( pixel_sad_x4_8x16_altivec, 8 )
      | ^~~~~~~~~~~~~~~~~~~~
../x264-c196240409e4d7c01b47448d93b1f9683aaa7cf7/common/ppc/pixel.c:1009:1: warning: no return statement in function returning non-void [-Wreturn-type]
../x264-c196240409e4d7c01b47448d93b1f9683aaa7cf7/common/ppc/pixel.c: In function 'x264_8_pixel_init_altivec':
../x264-c196240409e4d7c01b47448d93b1f9683aaa7cf7/common/ppc/pixel.c:1576:31: error: assignment to 'x264_pixel_cmp_x3_t' {aka 'void (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, long int,  int *)'} from incompatible pointer type 'int (*)(uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t,  int *)' {aka 'int (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, long int,  int *)'} [-Wincompatible-pointer-types]
 1576 |     pixf->sad_x3[PIXEL_8x16]  = pixel_sad_x3_8x16_altivec;
      |                               ^
../x264-c196240409e4d7c01b47448d93b1f9683aaa7cf7/common/ppc/pixel.c:1578:31: error: assignment to 'x264_pixel_cmp_x3_t' {aka 'void (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, long int,  int *)'} from incompatible pointer type 'int (*)(uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t,  int *)' {aka 'int (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, long int,  int *)'} [-Wincompatible-pointer-types]
 1578 |     pixf->sad_x3[PIXEL_8x8]   = pixel_sad_x3_8x8_altivec;
      |                               ^
../x264-c196240409e4d7c01b47448d93b1f9683aaa7cf7/common/ppc/pixel.c:1581:31: error: assignment to 'x264_pixel_cmp_x4_t' {aka 'void (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, long int,  int *)'} from incompatible pointer type 'int (*)(uint8_t *, uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t,  int *)' {aka 'int (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, long int,  int *)'} [-Wincompatible-pointer-types]
 1581 |     pixf->sad_x4[PIXEL_8x16]  = pixel_sad_x4_8x16_altivec;
      |                               ^
../x264-c196240409e4d7c01b47448d93b1f9683aaa7cf7/common/ppc/pixel.c:1583:31: error: assignment to 'x264_pixel_cmp_x4_t' {aka 'void (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, long int,  int *)'} from incompatible pointer type 'int (*)(uint8_t *, uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t,  int *)' {aka 'int (*)(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *, long int,  int *)'} [-Wincompatible-pointer-types]
 1583 |     pixf->sad_x4[PIXEL_8x8]   = pixel_sad_x4_8x8_altivec;
      |                               ^
make: *** [Makefile:310: common/ppc/pixel-8.o] Error 1
 * ERROR: media-libs/x264-0.0.20231114-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2024-07-28 10:12:08 UTC
Created attachment 898459 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2024-07-28 10:19:08 UTC
Issue was already reported and patched upstream:
https://code.videolan.org/videolan/x264/-/commit/de1bea534ff74195d1205cb5d50dab815bb7bc23

The patch applies cleanly on x264-0.0.20231114-r1 and works fine.