| Message ID | 20260530073155.1588404-1-f_l_k@t-online.de |
|---|---|
| State | Accepted |
| Headers | show |
| Series | [meta-oe] libcamera: add workaround to fix build with gcc 16 | expand |
Not sure if the maintainers want to go in this direction but I've tested this patch and it fixes the build issue. Tested-by: Ryan Eatmon <reatmon@ti.com> On 5/30/2026 2:31 AM, Markus Volk via lists.openembedded.org wrote: > libcamera fails if using gcc16 with -Werror=array-bounds= > > Ignore this issue for now until it is properly fixed > > Signed-off-by: Markus Volk <f_l_k@t-online.de> > --- > meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb > index 74cb910417..9be439fdf1 100644 > --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb > +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb > @@ -100,3 +100,5 @@ FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera" > GLIBC_64BIT_TIME_FLAGS = "" > > INSANE_SKIP += "32bit-time" > + > +CXXFLAGS += "-Wno-error=array-bounds=" > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#127294): https://lists.openembedded.org/g/openembedded-devel/message/127294 > Mute This Topic: https://lists.openembedded.org/mt/119559335/6551054 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [reatmon@ti.com] > -=-=-=-=-=-=-=-=-=-=-=- >
there is a report on libcamera with similar problem see https://lists.libcamera.org/pipermail/libcamera-devel/2026-January/057081.html however, no resolution, Would be good to ping that thread as well. On Tue, Jun 2, 2026 at 8:16 AM Ryan Eatmon via lists.openembedded.org <reatmon=ti.com@lists.openembedded.org> wrote: > > Not sure if the maintainers want to go in this direction but I've tested > this patch and it fixes the build issue. > > Tested-by: Ryan Eatmon <reatmon@ti.com> > > > On 5/30/2026 2:31 AM, Markus Volk via lists.openembedded.org wrote: > > libcamera fails if using gcc16 with -Werror=array-bounds= > > > > Ignore this issue for now until it is properly fixed > > > > Signed-off-by: Markus Volk <f_l_k@t-online.de> > > --- > > meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/meta-multimedia/recipes-multimedia/libcamera/ > libcamera_0.7.1.bb b/meta-multimedia/recipes-multimedia/libcamera/ > libcamera_0.7.1.bb > > index 74cb910417..9be439fdf1 100644 > > --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb > > +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb > > @@ -100,3 +100,5 @@ FILES:${PN}-pycamera = > "${PYTHON_SITEPACKAGES_DIR}/libcamera" > > GLIBC_64BIT_TIME_FLAGS = "" > > > > INSANE_SKIP += "32bit-time" > > + > > +CXXFLAGS += "-Wno-error=array-bounds=" > > > > > > > > > > > > -- > Ryan Eatmon reatmon@ti.com > ----------------------------------------- > Texas Instruments, Inc. - LCPD - MGTS > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#127361): > https://lists.openembedded.org/g/openembedded-devel/message/127361 > Mute This Topic: https://lists.openembedded.org/mt/119559335/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > >
diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb index 74cb910417..9be439fdf1 100644 --- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb @@ -100,3 +100,5 @@ FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera" GLIBC_64BIT_TIME_FLAGS = "" INSANE_SKIP += "32bit-time" + +CXXFLAGS += "-Wno-error=array-bounds="
libcamera fails if using gcc16 with -Werror=array-bounds= Ignore this issue for now until it is properly fixed Signed-off-by: Markus Volk <f_l_k@t-online.de> --- meta-multimedia/recipes-multimedia/libcamera/libcamera_0.7.1.bb | 2 ++ 1 file changed, 2 insertions(+)