Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911634 - 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
Summary: media-video/gpac-2.2.0 - In function 'get_pix_yuyv_10': evg/stencil.c:1863:43...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL: https://github.com/gpac/gpac/issues/2758
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: 907576
  Show dependency tree
 
Reported: 2023-08-02 20:05 UTC by ernsteiswuerfel
Modified: 2024-02-21 20:00 UTC (History)
1 user (show)

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


Attachments
build.log (ppc, 2.2.0) (gpac-2.2.0:20230802-194040.log,367.25 KB, text/plain)
2023-08-02 20:05 UTC, ernsteiswuerfel
Details
build.log (ppc, 2.2.1-r1) (gpac-2.2.1-r1:20230802-194859.log,371.64 KB, text/plain)
2023-08-02 20:06 UTC, ernsteiswuerfel
Details
emerge --info (file_911634.txt,6.39 KB, text/plain)
2023-08-02 20:08 UTC, ernsteiswuerfel
Details

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