[{"id":38263,"web_url":"https://patchwork.libcamera.org/comment/38263/","msgid":"<20260220144538.GA1691215@killaraus.ideasonboard.com>","date":"2026-02-20T14:45:38","subject":"Re: [PATCH v1] py: Disable `-Winvalid-offsetof`","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"content":"On Fri, Feb 20, 2026 at 03:12:16PM +0100, Barnabás Pőcze wrote:\n> A \"small vector\" implementation has been introduced in the latest version\n> of pybind11 (3.0.2), which might `offsetof()` on a non standard layout type.\n> This triggers the `invalid-offsetof` warning.\n> \n> So disable it for the python binding.\n> \n> Link: https://github.com/pybind/pybind11/pull/5824\n> Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\n> ---\n>  src/py/libcamera/meson.build | 1 +\n>  1 file changed, 1 insertion(+)\n> \n> diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build\n> index b0bd291fa..6c3b66bc5 100644\n> --- a/src/py/libcamera/meson.build\n> +++ b/src/py/libcamera/meson.build\n> @@ -53,6 +53,7 @@ pycamera_deps = [\n> \n>  pycamera_args = [\n>      '-fvisibility=hidden',\n> +    '-Wno-invalid-offsetof',\n>      '-Wno-shadow',\n>      '-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT',\n>  ]","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 4930FC31E9\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 20 Feb 2026 14:45:44 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 655C462266;\n\tFri, 20 Feb 2026 15:45:43 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5B96461FBF\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 20 Feb 2026 15:45:42 +0100 (CET)","from killaraus.ideasonboard.com (unknown [83.245.237.175])\n\tby perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 12662502;\n\tFri, 20 Feb 2026 15:44:47 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"rhkhwmq0\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1771598688;\n\tbh=nmIcENml4IzKMulYrEYtLlM0WSAYfHP+cTNlYBLz9Zg=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=rhkhwmq0khv27F5kORazYuaICI6FgPKDaQ1kiB65p2DZ2k+TJwnF10T7OWU0W9q3A\n\tJpCwgBlBwWHmg1OOstcdDy8DUF8V0s3K2OQszfvtOo/PVSmO9kNoMXC7X4bvn/tk7f\n\tdBL4w3a+HslgegTQidPv80L61F+BIZwWbW7+ant4=","Date":"Fri, 20 Feb 2026 15:45:38 +0100","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>","Cc":"libcamera-devel@lists.libcamera.org","Subject":"Re: [PATCH v1] py: Disable `-Winvalid-offsetof`","Message-ID":"<20260220144538.GA1691215@killaraus.ideasonboard.com>","References":"<20260220141216.195395-1-barnabas.pocze@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"<20260220141216.195395-1-barnabas.pocze@ideasonboard.com>","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":38279,"web_url":"https://patchwork.libcamera.org/comment/38279/","msgid":"<177186986471.62266.1412159422476352330@ping.linuxembedded.co.uk>","date":"2026-02-23T18:04:24","subject":"Re: [PATCH v1] py: Disable `-Winvalid-offsetof`","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"content":"Quoting Laurent Pinchart (2026-02-20 14:45:38)\n> On Fri, Feb 20, 2026 at 03:12:16PM +0100, Barnabás Pőcze wrote:\n> > A \"small vector\" implementation has been introduced in the latest version\n> > of pybind11 (3.0.2), which might `offsetof()` on a non standard layout type.\n> > This triggers the `invalid-offsetof` warning.\n> > \n> > So disable it for the python binding.\n> > \n> > Link: https://github.com/pybind/pybind11/pull/5824\n> > Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n> \n> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\n> \n> > ---\n> >  src/py/libcamera/meson.build | 1 +\n> >  1 file changed, 1 insertion(+)\n> > \n> > diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build\n> > index b0bd291fa..6c3b66bc5 100644\n> > --- a/src/py/libcamera/meson.build\n> > +++ b/src/py/libcamera/meson.build\n> > @@ -53,6 +53,7 @@ pycamera_deps = [\n> > \n> >  pycamera_args = [\n> >      '-fvisibility=hidden',\n> > +    '-Wno-invalid-offsetof',\n> >      '-Wno-shadow',\n> >      '-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT',\n> >  ]\n> \n> -- \n> Regards,\n> \n> Laurent Pinchart","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id A1F76BE175\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 23 Feb 2026 18:04:29 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D23C862291;\n\tMon, 23 Feb 2026 19:04:28 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id E4D2A621CE\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 23 Feb 2026 19:04:27 +0100 (CET)","from monstersaurus.ideasonboard.com\n\t(cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 8289D4F1;\n\tMon, 23 Feb 2026 19:03:31 +0100 (CET)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"AASKS/Nj\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1771869811;\n\tbh=MqWnFBXKFhO+tZm4BU/1NMD6DKP4dCLYAb7ZvNEBQxA=;\n\th=In-Reply-To:References:Subject:From:Cc:To:Date:From;\n\tb=AASKS/NjQutu5ENHDp/vRf8R2nukekNloQ+T9Sv87uYq6LQ9x+zf3OXM0f0MEL+Hh\n\taivS1ml1PMUOhl8D/0JIQN/DUS/hvawAGfNM/37BNv5uT5i9bvuzV6SBqPJgIek88j\n\txwohSYk6NXpBFaD8j+e4ABbFdgvcVGMLmwDpbtbU=","Content-Type":"text/plain; charset=\"utf-8\"","MIME-Version":"1.0","Content-Transfer-Encoding":"quoted-printable","In-Reply-To":"<20260220144538.GA1691215@killaraus.ideasonboard.com>","References":"<20260220141216.195395-1-barnabas.pocze@ideasonboard.com>\n\t<20260220144538.GA1691215@killaraus.ideasonboard.com>","Subject":"Re: [PATCH v1] py: Disable `-Winvalid-offsetof`","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","Cc":"libcamera-devel@lists.libcamera.org","To":"=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>","Date":"Mon, 23 Feb 2026 18:04:24 +0000","Message-ID":"<177186986471.62266.1412159422476352330@ping.linuxembedded.co.uk>","User-Agent":"alot/0.9.1","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]