[{"id":38371,"web_url":"https://patchwork.libcamera.org/comment/38371/","msgid":"<20260320100256.GG950244@killaraus.ideasonboard.com>","date":"2026-03-20T10:02:56","subject":"Re: [libcamera-ci] [PATCH v2] Add clang build with libstdc++","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"content":"On Fri, Mar 20, 2026 at 09:18:45AM +0100, Barnabás Pőcze wrote:\n> Currently clang is only used to test libc++ builds. This, however, prevents\n> the build testing of e.g. qcam since the packaged qt libraries use libstdc++,\n> so it needs to be disabled when using libc++.\n> \n> So add a clang build job that compiles with libstdc++ on debian 13.\n> \n> Link: https://gitlab.freedesktop.org/camera/libcamera/-/issues/315\n> Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\n> ---\n> changes in v2:\n>   * only add a single new job (instead of 4)\n> \n> v1: https://patchwork.libcamera.org/patch/26160/\n> ---\n>  .gitlab-ci/meson/libstdc++.native |  3 +++\n>  gitlab-ci.yml                     | 21 ++++++++++++---------\n>  2 files changed, 15 insertions(+), 9 deletions(-)\n>  create mode 100644 .gitlab-ci/meson/libstdc++.native\n> \n> diff --git a/.gitlab-ci/meson/libstdc++.native b/.gitlab-ci/meson/libstdc++.native\n> new file mode 100644\n> index 0000000..3116043\n> --- /dev/null\n> +++ b/.gitlab-ci/meson/libstdc++.native\n> @@ -0,0 +1,3 @@\n> +[built-in options]\n> +cpp_args = ['-stdlib=libstdc++']\n> +cpp_link_args = ['-stdlib=libstdc++']\n> diff --git a/gitlab-ci.yml b/gitlab-ci.yml\n> index 6256335..6ff88b2 100644\n> --- a/gitlab-ci.yml\n> +++ b/gitlab-ci.yml\n> @@ -29,7 +29,12 @@ variables:\n>    # clang fails to link with ASan if --no-undefined is enabled.\n>    MESON_CLANG_OPTIONS: >-\n>      -D b_lundef=false\n> +  MESON_CLANG_LIBCPP_OPTIONS: >-\n> +    ${MESON_CLANG_OPTIONS}\n>      --native-file $CI_PROJECT_DIR/.gitlab-ci/meson/libc++.native\n> +  MESON_CLANG_LIBSTDCPP_OPTIONS: >-\n> +    ${MESON_CLANG_OPTIONS}\n> +    --native-file $CI_PROJECT_DIR/.gitlab-ci/meson/libstdc++.native\n>    PACKAGES: >-\n>      ca-certificates\n>      git\n> @@ -199,7 +204,7 @@ build-full:debian:12:\n>          CXX: clang++\n>          MESON_OPTIONS: >-\n>            ${MESON_ALL_OPTIONS}\n> -          ${MESON_CLANG_OPTIONS}\n> +          ${MESON_CLANG_LIBCPP_OPTIONS}\n>            -D qcam=disabled\n>        - ARCH: amd64\n>          BUILD_TYPE: release\n> @@ -207,7 +212,7 @@ build-full:debian:12:\n>          CXX: clang++\n>          MESON_OPTIONS: >-\n>            ${MESON_ALL_OPTIONS}\n> -          ${MESON_CLANG_OPTIONS}\n> +          ${MESON_CLANG_LIBCPP_OPTIONS}\n>            -D qcam=disabled\n> \n>  build-full:debian:12:as-subproject:\n> @@ -256,13 +261,11 @@ build-full:debian:13:\n>        - ARCH: amd64\n>          CC: clang\n>          CXX: clang++\n> -        MESON_OPTIONS: >-\n> -          ${MESON_ALL_OPTIONS}\n> -          ${MESON_CLANG_OPTIONS}\n> -          -D qcam=disabled\n> -          -D cpp_debugstl=false\n> -        # `cpp_debugstl=false` needed approximately between meson 1.4.0 and 1.9.3\n> -        # with clang 18 or later due to https://github.com/mesonbuild/meson/issues/13812\n> +        MESON_OPTIONS:\n> +          # `cpp_debugstl=false` needed approximately between meson 1.4.0 and 1.9.3\n> +          # with clang 18 or later due to https://github.com/mesonbuild/meson/issues/13812\n> +          - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBCPP_OPTIONS} -D qcam=disabled -D cpp_debugstl=false\n> +          - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBSTDCPP_OPTIONS}\n>        - ARCH: armhf\n>        - ARCH: arm64\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 20D87BD87C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 20 Mar 2026 10:03:01 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 1ABD66273B;\n\tFri, 20 Mar 2026 11:03:00 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 83FD9622AD\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 20 Mar 2026 11:02:58 +0100 (CET)","from killaraus.ideasonboard.com\n\t(2001-14ba-703d-e500--2a1.rev.dnainternet.fi\n\t[IPv6:2001:14ba:703d:e500::2a1])\n\tby perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 20B41107;\n\tFri, 20 Mar 2026 11:01:44 +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=\"s2r3HrfF\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1774000904;\n\tbh=pvZ+m433Bbu80604FqyjciXOUuVnsqnOntVpQgtBREk=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=s2r3HrfFiaURJ4OxoVfBf38X1FGq6If+JDRAIqGokM/qdztVk1f/UmMN3eOvdUpEL\n\tty5Eu/qtpSDWLSa5V9qf1s/Az06R4LoEke0YKXDvvZbuA2s3WKFd/9lpSC2y9gISDQ\n\tyhIduCFCCHWoOuUvZx/L6AFr4RB64o4iNaGLfnQk=","Date":"Fri, 20 Mar 2026 12:02:56 +0200","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,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>","Subject":"Re: [libcamera-ci] [PATCH v2] Add clang build with libstdc++","Message-ID":"<20260320100256.GG950244@killaraus.ideasonboard.com>","References":"<20260320081845.748430-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":"<20260320081845.748430-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>"}}]