From patchwork Mon May 1 12:32:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1775483 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q92fr0x6fz20fX for ; Mon, 1 May 2023 22:32:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 39A5240A14; Mon, 1 May 2023 12:32:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 39A5240A14 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0-SDc9k1ZTk9; Mon, 1 May 2023 12:32:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id A9CB340A52; Mon, 1 May 2023 12:32:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A9CB340A52 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8CBBC1BF422 for ; Mon, 1 May 2023 12:32:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 7364740A04 for ; Mon, 1 May 2023 12:32:44 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 7364740A04 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ie202iA9sJ3j for ; Mon, 1 May 2023 12:32:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 2A6F4401B1 Received: from mail.heine.tech (mail.heine.tech [IPv6:2a01:4f8:1c0c:5073::1]) by smtp2.osuosl.org (Postfix) with ESMTPS id 2A6F4401B1 for ; Mon, 1 May 2023 12:32:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A2DBE1814B9; Mon, 1 May 2023 14:32:37 +0200 (CEST) To: buildroot@buildroot.org Date: Mon, 1 May 2023 14:32:03 +0200 Message-Id: <20230501123211.18167-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1682944360; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=uFAvBeNs7ZwYB9EvX9g1allU5zXBzu9rurBwGQ0fF54=; b=S2GbXU8zdzHDf9U9rniSykT8z6b0IkLVJthiGwhipngj5zPLTNRxaFCkkrGyefq1uXfuBg J4FQmvumxZ95M4swCS14XIbxI+gqyYCjz+tuqmCSiYCll791exxuEKPFiei+Dr8UqvF4rR IQ3N3cN4o9xPaeRIolcHo3CMOYoLRf8= X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=S2GbXU8z Subject: [Buildroot] [PATCH] package/wpewebkit: fix NEON build with gcc-12 X-BeenThere: buildroot@buildroot.org 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: , X-Patchwork-Original-From: Michael Nosthoff via buildroot From: Michael Nosthoff Reply-To: Michael Nosthoff Cc: Adrian Perez de Castro Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" since gcc-12 gcc complains about attributes in between decl-specifiers. This code is NEON specific so it should not appear on builds for other systems. Signed-off-by: Michael Nosthoff --- @Adrian: should I submit this somewhere upstream? Or would it make more sense to include this in the other NEON specific patch? --- .../0002-change-position-of-alignas.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/wpewebkit/0002-change-position-of-alignas.patch diff --git a/package/wpewebkit/0002-change-position-of-alignas.patch b/package/wpewebkit/0002-change-position-of-alignas.patch new file mode 100644 index 0000000000..5a1564c4c1 --- /dev/null +++ b/package/wpewebkit/0002-change-position-of-alignas.patch @@ -0,0 +1,33 @@ +From e2a3e36c8df59d83de0a48b806cad5bb5515a658 Mon Sep 17 00:00:00 2001 +From: Michael Nosthoff +Date: Tue, 18 Apr 2023 19:47:03 +0200 +Subject: [PATCH] change position of alignas + +fixes: +Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp:38:8: error: standard attributes in middle of decl-specifiers + 38 | static alignas(16) short s_FELightingConstantsForNeon[] = { + | ^~~~~~~ + +on gcc-12 + +Signed-off-by: Michael Nosthoff +--- + .../platform/graphics/cpu/arm/filters/FELightingNEON.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp b/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp +index 64950d1732e8..cafb4ee184ba 100644 +--- a/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp ++++ b/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp +@@ -35,7 +35,7 @@ namespace WebCore { + // ALPHAX_Q ALPHAY_Q REMAPX_D REMAPY_D + + +-static alignas(16) short s_FELightingConstantsForNeon[] = { ++static short alignas(16) s_FELightingConstantsForNeon[] = { + // Alpha coefficients. + -2, 1, 0, -1, 2, 1, 0, -1, + 0, -1, -2, -1, 0, 1, 2, 1, +-- +2.34.1 +