From patchwork Wed Dec 24 05:17:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 77373 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F044E74917 for ; Wed, 24 Dec 2025 05:17:49 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.115636.1766553465490245313 for ; Tue, 23 Dec 2025 21:17:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=lUzCpPLt; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=4453656b1c=hongxu.jia@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BO4kOGS1064863; Tue, 23 Dec 2025 21:17:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=PPS06212021; bh=HiAtGjz5+4iXHT6kSQdb 72z6YtsZNrptvJadKB5c9c8=; b=lUzCpPLtxetgbIlm2DJP+25tv9a7npwJ5Zo3 iSfaZDdkC/th0gb10vYxMIErnp1n4yXV1S8/FFymRriU7k2fqqIMeMypw9u8XgyQ R7WY2oWWxZ/w1xT0dP5pM8wWMnZtunUO3eY0m+VMAzglhbrHtk75YMkjqZsOjBLp VgeSfuOxltbCCNlGiLUOnxWBez21XkPuDbVePeH4Ek7/nnQNE+LMA1r73mjI11nJ PSQEXOtU5h+0n8XKLC6uonO74GwalBgR1RtisdUfcedEIismYs4NPh0bxGdM1wjU WlsDuT+ABCv9oXxfp0joibmgvgpsHf+1JdSn6LjpML7HwEUkVQ== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4b5v6hbjkc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 23 Dec 2025 21:17:43 -0800 (PST) Received: from ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Tue, 23 Dec 2025 21:17:43 -0800 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Tue, 23 Dec 2025 21:17:42 -0800 From: Hongxu Jia To: , Subject: [PATCH v3] vte: fix build failed for ppc64 Date: Wed, 24 Dec 2025 13:17:34 +0800 Message-ID: <20251224051734.2346176-1-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjI0MDA0MiBTYWx0ZWRfXxMdiSTjrEvJX 4bLi1ojZlg9GwcqNTCf1lYMKrOZ4r404r4sbiLv89lrpw28CEmxxdpjJPiyr50I0BqUYoObnbPF Nq0K6I9v0HqLrxM5flxC3Hn0VA+T+vGNYUHX6W/5C1b9gVoE8HBu9hxHfrUu+Nmzwvlcsqwe2tc p4QHz3JYpZyLWj0TPDxa8As8GMj3tfl1q+2mhC08ifbSaH9FssOuPZY4ocAerHOXAPqdrKPhEO0 K/R6FB3SI/wtzbzyao3/ad6GD+RVLg8tTdluj4tIjlfA9kXK1AjdSKhTe/E1r1DMFEheRfc7NLi u3UjwPPuKlzXqUxREpKDu9IrhS0Kvl4u3qwuIR6TcFDPfj49WXUMB2NA7jtD3YKH9ZnPa6sI/id 2oh1LjpT4umr7/VuxirOasY9c8h/qCMym7V/MV2VW3CyXT4COdAUZBeQrXbC74MdbFBPvAkRi1/ 0atl+HCHEJUT9JLGoBA== X-Proofpoint-GUID: gqdbt6csEYlvWNMu29xTpUbbWNbiqVDf X-Proofpoint-ORIG-GUID: gqdbt6csEYlvWNMu29xTpUbbWNbiqVDf X-Authority-Analysis: v=2.4 cv=KYffcAYD c=1 sm=1 tr=0 ts=694b7777 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=wP3pNCr1ah4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=NEAV23lmAAAA:8 a=GHR8O2WEAAAA:20 a=t7CeM3EgAAAA:8 a=XSH4sVuqln5_Vc76GyUA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-24_01,2025-12-22_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2512240042 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 24 Dec 2025 05:17:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/228523 $ echo 'MACHINE = "qemuppc64"' >> conf/local.conf $ bitbake vte ... |subprojects/simdutf/simdutf.cpp:20533:7: error: there are no arguments to 'write_v_u16_11bits_to_utf8' that depend on a template parameter, so a declaration of 'write_v_u16_11bits_to_utf8' must be available [-Wtemplate-body] |20533 | write_v_u16_11bits_to_utf8( | | ^~~~~~~~~~~~~~~~~~~~~~~~~~ |subprojects/simdutf/simdutf.cpp:20533:7: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) |subprojects/simdutf/simdutf.cpp:20559:7: error: there are no arguments to 'ppc64_convert_utf16_to_1_2_3_bytes_of_utf8' that depend on a template parameter, so a declaration of 'ppc64_convert_utf16_to_1_2_3_bytes_of_utf8' must be available [-Wtemplate-body] |20559 | ppc64_convert_utf16_to_1_2_3_bytes_of_utf8( | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |subprojects/simdutf/simdutf.cpp:20533:33: error: 'write_v_u16_11bits_to_utf8' was not declared in this scope |20533 | write_v_u16_11bits_to_utf8( | | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ |20534 | in, utf8_output, as_vector_u8(one_byte_bytemask), one_byte_bitmask); | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... The source file subprojects/simdutf/simdutf.cpp is generated by python3 script singleheader/amalgamate.py and the definition of write_v_u16_11bits_to_utf8 and ppc64_convert_utf16_to_1_2_3_bytes_of_utf8 for ppc64 [1] requires option --with-utf16 and --with-latin1 [1] https://github.com/simdutf/simdutf/commit/497f4f29fe25a79af00ce25693a14682a5f669a5 Signed-off-by: Hongxu Jia --- ...-fix-compile-simdutf-failed-on-ppc64.patch | 77 +++++++++++++++++++ meta/recipes-support/vte/vte_0.82.1.bb | 1 + 2 files changed, 78 insertions(+) create mode 100644 meta/recipes-support/vte/vte/0001-build-fix-compile-simdutf-failed-on-ppc64.patch diff --git a/meta/recipes-support/vte/vte/0001-build-fix-compile-simdutf-failed-on-ppc64.patch b/meta/recipes-support/vte/vte/0001-build-fix-compile-simdutf-failed-on-ppc64.patch new file mode 100644 index 0000000000..e7bc6ae47c --- /dev/null +++ b/meta/recipes-support/vte/vte/0001-build-fix-compile-simdutf-failed-on-ppc64.patch @@ -0,0 +1,77 @@ +From 005923710c3da36667737acdbdad68b5b3a0c1bc Mon Sep 17 00:00:00 2001 +From: Hongxu Jia +Date: Tue, 23 Dec 2025 18:28:29 -0800 +Subject: [PATCH] build: fix compile simdutf failed on ppc64 + +... +|subprojects/simdutf/simdutf.cpp:20533:7: error: there are no arguments to 'write_v_u16_11bits_to_utf8' that depend on a template parameter, so a declaration of 'write_v_u16_11bits_to_utf8' must be available [-Wtemplate-body] +|20533 | write_v_u16_11bits_to_utf8( +| | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +|subprojects/simdutf/simdutf.cpp:20533:7: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) +|subprojects/simdutf/simdutf.cpp:20559:7: error: there are no arguments to 'ppc64_convert_utf16_to_1_2_3_bytes_of_utf8' that depend on a template parameter, so a declaration of 'ppc64_convert_utf16_to_1_2_3_bytes_of_utf8' must be available [-Wtemplate-body] +|20559 | ppc64_convert_utf16_to_1_2_3_bytes_of_utf8( +| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +|subprojects/simdutf/simdutf.cpp:20533:33: error: 'write_v_u16_11bits_to_utf8' was not declared in this scope +|20533 | write_v_u16_11bits_to_utf8( +| | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ +|20534 | in, utf8_output, as_vector_u8(one_byte_bytemask), one_byte_bitmask); +| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +... + +The source file subprojects/simdutf/simdutf.cpp is generated by python3 +script singleheader/amalgamate.py and the definition of write_v_u16_11bits_to_utf8 +and ppc64_convert_utf16_to_1_2_3_bytes_of_utf8 for ppc64 [1] requires option +--with-utf16 and --with-latin1 + +Add option --with-utf16 and --with-latin1 by default. + +[1] https://github.com/simdutf/simdutf/commit/497f4f29fe25a79af00ce25693a14682a5f669a5 + +Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/vte/-/issues/2926] +Tweak for release tarball + +Signed-off-by: Hongxu Jia +--- + subprojects/packagefiles/simdutf/meson.build | 3 ++- + subprojects/simdutf/meson.build | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/subprojects/packagefiles/simdutf/meson.build b/subprojects/packagefiles/simdutf/meson.build +index 330ee89..ab934c3 100644 +--- a/subprojects/packagefiles/simdutf/meson.build ++++ b/subprojects/packagefiles/simdutf/meson.build +@@ -41,11 +41,12 @@ simdutf_amalgamate = [ + '--no-zip', + '--no-readme', + '--with-utf8', +- # '--with-utf16', ++ '--with-utf16', + '--with-utf32', + # '--with-base64', + # '--with-detect-enc', + '--with-ascii', ++ '--with-latin1', + ] + + if get_option('debug') +diff --git a/subprojects/simdutf/meson.build b/subprojects/simdutf/meson.build +index 330ee89..ab934c3 100644 +--- a/subprojects/simdutf/meson.build ++++ b/subprojects/simdutf/meson.build +@@ -41,11 +41,12 @@ simdutf_amalgamate = [ + '--no-zip', + '--no-readme', + '--with-utf8', +- # '--with-utf16', ++ '--with-utf16', + '--with-utf32', + # '--with-base64', + # '--with-detect-enc', + '--with-ascii', ++ '--with-latin1', + ] + + if get_option('debug') +-- +2.34.1 + diff --git a/meta/recipes-support/vte/vte_0.82.1.bb b/meta/recipes-support/vte/vte_0.82.1.bb index b5d6f2fb62..0a2535f21e 100644 --- a/meta/recipes-support/vte/vte_0.82.1.bb +++ b/meta/recipes-support/vte/vte_0.82.1.bb @@ -19,6 +19,7 @@ inherit gnomebase gi-docgen features_check upstream-version-is-even gobject-intr SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch \ file://0001-support-reproducibility-for-debug-sources.patch;patchdir=./subprojects/simdutf \ + file://0001-build-fix-compile-simdutf-failed-on-ppc64.patch \ " SRC_URI[archive.sha256sum] = "79376d70402d271e2d38424418e1aea72357934d272e321e3906b71706a78e3a"