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

Bug 911634

Summary: media-video/gpac-2.2.0 - In function 'get_pix_yuyv_10': evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
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 Keywords: REGRESSION
Version: unspecified   
Hardware: PPC   
OS: Linux   
URL: https://github.com/gpac/gpac/issues/2758
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 907576    
Attachments: build.log (ppc, 2.2.0)
build.log (ppc, 2.2.1-r1)
emerge --info

Description ernsteiswuerfel archtester 2023-08-02 20:05:43 UTC
Created attachment 866880 [details]
build.log (ppc, 2.2.0)

Same for 2.2.1-r1.

[...]
powerpc-unknown-linux-gnu-gcc -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0/include"  -O2 -mcpu=7450 -mtune=7450 -pipe -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DGPAC_NEED_LIBATOMIC -DNDEBUG -std=gnu99 -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0" -fvisibility="hidden"   -c -o evg/raster_yuv.o evg/raster_yuv.c
powerpc-unknown-linux-gnu-gcc -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0/include"  -O2 -mcpu=7450 -mtune=7450 -pipe -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DGPAC_NEED_LIBATOMIC -DNDEBUG -std=gnu99 -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0" -fvisibility="hidden"   -c -o evg/stencil.o evg/stencil.c
evg/stencil.c: In function 'get_pix_yuyv_10':
evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
 1863 | #define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
      |                                           ^
evg/stencil.c:2220:14: note: in expansion of macro 'GET_LE_10BIT_LEFT_AS_8'
 2220 |         vu = GET_LE_10BIT_LEFT_AS_8(p_src + _this->off_u);
      |              ^~~~~~~~~~~~~~~~~~~~~~
evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
 1863 | #define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
      |                                           ^
evg/stencil.c:2222:22: note: in expansion of macro 'GET_LE_10BIT_LEFT_AS_8'
 2222 |                 vy = GET_LE_10BIT_LEFT_AS_8(p_src + _this->off_y+4);
      |                      ^~~~~~~~~~~~~~~~~~~~~~
evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
 1863 | #define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
      |                                           ^
evg/stencil.c:2224:22: note: in expansion of macro 'GET_LE_10BIT_LEFT_AS_8'
 2224 |                 vy = GET_LE_10BIT_LEFT_AS_8(p_src + _this->off_y);
      |                      ^~~~~~~~~~~~~~~~~~~~~~
evg/stencil.c:1863:43: error: subscripted value is neither array nor pointer nor vector
 1863 | #define GET_LE_10BIT_LEFT_AS_8(_ptr) (_ptr[1] )
      |                                           ^
evg/stencil.c:2225:14: note: in expansion of macro 'GET_LE_10BIT_LEFT_AS_8'
 2225 |         vv = GET_LE_10BIT_LEFT_AS_8(p_src + _this->off_v);
      |              ^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [../config.mak:184: evg/stencil.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0/src'
make: *** [Makefile:13: all] Error 2
 * ERROR: media-video/gpac-2.2.0::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2023-08-02 20:06:44 UTC
Created attachment 866881 [details]
build.log (ppc, 2.2.1-r1)

Looks like an endian issue to me, so sparc probably affected too?
Comment 2 ernsteiswuerfel archtester 2023-08-02 20:08:50 UTC
Created attachment 866882 [details]
emerge --info
Comment 3 ernsteiswuerfel archtester 2024-02-14 21:55:36 UTC
Turns out to be a regression over 2.0.0.

I did a git bisect and filed the issue upstream: https://github.com/gpac/gpac/issues/2758
Comment 4 ernsteiswuerfel archtester 2024-02-21 20:00:29 UTC
Following upstream commit fixes the issue: https://github.com/gpac/gpac/commit/b0ad643014e567f47d1231771b473d25986c512e