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 packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED FIXED | ||
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 |
Created attachment 866881 [details]
build.log (ppc, 2.2.1-r1)
Looks like an endian issue to me, so sparc probably affected too?
Created attachment 866882 [details]
emerge --info
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 Following upstream commit fixes the issue: https://github.com/gpac/gpac/commit/b0ad643014e567f47d1231771b473d25986c512e The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=303de897b453ac71ab0c990a9aef7bd86f543948 commit 303de897b453ac71ab0c990a9aef7bd86f543948 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-11-10 10:06:42 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-11-10 10:07:45 +0000 media-video/gpac: Fix build w/ big endian Thanks-to: ernsteiswuerfel <erhard_f@mailbox.org> Closes: https://bugs.gentoo.org/911634 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../gpac/files/gpac-2.2.1-fix-bigendian.patch | 22 ++++++++++++++++++++++ media-video/gpac/gpac-2.2.1-r1.ebuild | 1 + 2 files changed, 23 insertions(+) |
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