From patchwork Tue May 12 14:45:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 26740 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 1968EC32F7 for ; Tue, 12 May 2026 14:45:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 849EE63025; Tue, 12 May 2026 16:45:27 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="bjHLNuNz"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 92F356271A for ; Tue, 12 May 2026 16:45:24 +0200 (CEST) Received: from killaraus.ideasonboard.com (2001-14ba-70f3-e800--a06.rev.dnainternet.fi [IPv6:2001:14ba:70f3:e800::a06]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id ACB3656D for ; Tue, 12 May 2026 16:45:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1778597116; bh=m+vH1k5+fRRc6yDcGrvwMmwObFEPuIUxzowyQuThYV4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bjHLNuNznKZFTbMP1ShBH6kMC5tqP11epdzIucWuZM7U45HoRKhQw64Cbu0FIa+34 9ZHV7t+c4IqZd8veq9Hn7L7ohP8fqU3rl3m5y1rYirdVcBYmmVdjJbMenUEQ50Wb5S emXeEFL28cLcTk/sZDBsyGuWyZMP6oTp06itaA1Y= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [libcamera-ci] [PATCH 2/3] Disable ASan and debugstl in release builds Date: Tue, 12 May 2026 17:45:19 +0300 Message-ID: <20260512144520.171290-3-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260512144520.171290-1-laurent.pinchart@ideasonboard.com> References: <20260512144520.171290-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The compilation of release builds, ASan and debugstl is known to cause lots of positives with various versions of gcc. One of them is already worked around by disabling ASan for gcc 12 release builds. More will be triggered by release builds using newer gcc versions. While some of the false positives can be worked around in libcamera, others with gcc 14 and gcc 15 would require more intrusive changes. Disabling either ASan or debugstl is enough to avoid the false positives. Given that distributions are not expected to enable ASan or debugstl in their packages, it is important to test release compilation without those options as that will be the main use case. If we later find value in having release builds with either ASan or debugstl in CI, new jobs will be added. Signed-off-by: Laurent Pinchart Reviewed-by: Barnabás Pőcze --- gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitlab-ci.yml b/gitlab-ci.yml index e5b3925e49d5..f9496fcdc80c 100644 --- a/gitlab-ci.yml +++ b/gitlab-ci.yml @@ -186,12 +186,10 @@ build-full:debian:12: BUILD_TYPE: release CC: gcc-12 CXX: g++-12 - # gcc 12.2.0 has a bug that triggers a false positive warning with ASan - # in release builds (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105562). - # Disable the address sanitizer for now. MESON_OPTIONS: >- ${MESON_ALL_OPTIONS} -D b_sanitize=none + -D cpp_debugstl=false - ARCH: amd64 CC: clang CXX: clang++ @@ -206,6 +204,8 @@ build-full:debian:12: MESON_OPTIONS: >- ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBCPP_OPTIONS} + -D b_sanitize=none + -D cpp_debugstl=false -D qcam=disabled build-full:debian:13: