Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936825 - 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 *)' { ... }
Summary: media-libs/x264-0.0.20231114-r1 - error: .../common/ppc/pixel.c:1576:31: erro...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Gentoo Media-video project
URL: https://code.videolan.org/videolan/x2...
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-07-28 10:11 UTC by ernsteiswuerfel
Modified: 2024-10-25 10:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (x264-0.0.20231114-r1:20240728-092545.log,55.76 KB, text/plain)
2024-07-28 10:11 UTC, ernsteiswuerfel
Details
emerge --info (file_936825.txt,6.58 KB, text/plain)
2024-07-28 10:12 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
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.