From patchwork Fri Jul 31 22:15:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1339633 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=iNobE0yA; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BJM6Q1lVLz9sRN for ; Sat, 1 Aug 2020 08:15:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8F51F86DE1; Fri, 31 Jul 2020 22:15:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ij56V_9lWHXD; Fri, 31 Jul 2020 22:15:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5608486DDA; Fri, 31 Jul 2020 22:15:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4F0971BF336 for ; Fri, 31 Jul 2020 22:15:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4980687ED9 for ; Fri, 31 Jul 2020 22:15:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7ARh+bwlRDct for ; Fri, 31 Jul 2020 22:15:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by whitealder.osuosl.org (Postfix) with ESMTPS id 19AAA87ECF for ; Fri, 31 Jul 2020 22:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1596233714; bh=hfW+1k10hTJfsGf4gg4nG98jL+iSGQWE1QUjo+chPFQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=iNobE0yAEvUWCLKHjjRAhsUh2Cz/cMDozgrnMP66/ZNr+Ow6YON5J5IaNQGvJtrJh viwh47cXJrJiSCyTMcsuCkY3HcV9Ra/K8O9q5+kOKgAg8q0pJdgkqvaAZhKaY/Ih/Z o7FjloZmRbYtcIAN5+Cxy2VEBiBnNLgjPwzXvxLc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.fritz.box ([62.216.209.105]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MUXtY-1kAXEw34MK-00QSnt; Sat, 01 Aug 2020 00:15:14 +0200 From: Peter Seiderer To: buildroot@busybox.net Date: Sat, 1 Aug 2020 00:15:13 +0200 Message-Id: <20200731221514.32623-1-ps.report@gmx.net> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:aeqSe5h3kZdu5NvbG46Dd8PTUfDVBJK51Hfl4gUkXO1fr6TyO+T T5IKjSXWMijtwWXB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odWTiNe+MI8IKfnabdP/ 4FFWKqBxwsO+vFZJ+nT9eHmlf/lKSwWelMCsi796vgWJKckNN9NHQlci2zY36oUjacSAJrPyP 5uzhXqVWEkxefiOXwfBhPeU+uxe7DMmR6QwPSL4EIbm6COdXi9B/Q70epo3DwSAVcvztELm4k 1Ehr3HECSbOw1a/OqLrszof43MVh32yO3AxfgERTiYSyo/FCU/CMd/1UeD2XTg+uSkkDBF1X7 LfbBrNqRbPmbISRXy7TTLLau3Nn37KDbUyX3Mjzimk+Y0/IeDAJ+OvhfnuErZG63KsmHkOjTx xr1FnsoFNemVzMgAUPBN8A6wAUS8Or2Ri0jnIiKCh9mK9NVN9nRncctdTAsgLLFyxOor6MrUh gVUNMwUuao7tPIyvqQkUkK19F2mi5jny0DXkPmQ== Subject: [Buildroot] [PATCH v1 1/2] package/libcamera: needs faligned-new X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kieran Bingham Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.net/results/2db7292e251ce81d31187c3a9eb36dbc9236bd07 ../src/libcamera/v4l2_videodevice.cpp: In member function 'int libcamera::V4L2VideoDevice::allocateBuffers(unsigned int, std::vector >*)': ../src/libcamera/v4l2_videodevice.cpp:1139:39: error: 'new' of type 'libcamera::V4L2BufferCache' with extended alignment 8 [-Werror=aligned-new=] 1139 | cache_ = new V4L2BufferCache(*buffers); | ^ ../src/libcamera/v4l2_videodevice.cpp:1139:39: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter ../src/libcamera/v4l2_videodevice.cpp:1139:39: note: use '-faligned-new' to enable C++17 over-aligned new support ../src/libcamera/v4l2_videodevice.cpp: In member function 'int libcamera::V4L2VideoDevice::importBuffers(unsigned int)': ../src/libcamera/v4l2_videodevice.cpp:1315:36: error: 'new' of type 'libcamera::V4L2BufferCache' with extended alignment 8 [-Werror=aligned-new=] 1315 | cache_ = new V4L2BufferCache(count); | ^ ../src/libcamera/v4l2_videodevice.cpp:1315:36: note: uses 'void* operator new(std::size_t)', which does not have an alignment parameter ../src/libcamera/v4l2_videodevice.cpp:1315:36: note: use '-faligned-new' to enable C++17 over-aligned new support Signed-off-by: Peter Seiderer --- package/libcamera/libcamera.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libcamera/libcamera.mk b/package/libcamera/libcamera.mk index a39e9f1c3e..9739f715a1 100644 --- a/package/libcamera/libcamera.mk +++ b/package/libcamera/libcamera.mk @@ -36,6 +36,10 @@ LIBCAMERA_LICENSE_FILES = \ LICENSES/CC0-1.0.txt \ LICENSES/CC-BY-SA-4.0.txt +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_7),y) +LIBCAMERA_CXXFLAGS = -faligned-new +endif + ifeq ($(BR2_PACKAGE_LIBCAMERA_V4L2),y) LIBCAMERA_CONF_OPTS += -Dv4l2=true else