From patchwork Tue Dec 1 06:49:21 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Mittal X-Patchwork-Id: 106756 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.5936.1796107769279752291 for ; Mon, 30 Nov 2026 22:49:29 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=ZEiUHZxc; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=Q9WuKlzF; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.168.131, mailfrom: anuj.mittal@oss.qualcomm.com) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B12L5xk1239074 for ; Tue, 1 Dec 2026 06:49:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=sLLrcFABpzjFQOZbkJnljX109A+8llV3oOB ePxbNGm4=; b=ZEiUHZxcqb2FdKYfnfd2cDfrs5bM2g5JWsbWJuF5BbRZHWm+mz4 uXJDiV5GqyjfyyPkcotmYAcNocFKUhOhNx5BMIKkp37y3B5WaJqwFV+SM5wMuG9I 4r8mh2AK/sErsm6u3goX/2X11qPUGJPIrwPnWcl5DHqsG6YpzI2wdgaFOzOfdG7w 0HZySXmdHy2oSBHEEteuaC8rxsopaGshbjA3ksJj3KTl5+VkrxfQhWbf2NZRAH84 eh0VqFBfmT4fnT24OZpsk8a4A5J/d8dX1p/bqPWyyYjrJ+yO4WYovxgxU9nk2o/r +78vlkgVOAjB7np9EVUy0+Kt8MCtSDvh78A== Received: from mail-dl1-f72.google.com (mail-dl1-f72.google.com [74.125.82.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9nb60v85-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 06:49:28 +0000 (GMT) Received: by mail-dl1-f72.google.com with SMTP id a92af1059eb24-1b597143a81so2037489c88.1 for ; Mon, 30 Nov 2026 22:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796107768; x=1796712568; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=sLLrcFABpzjFQOZbkJnljX109A+8llV3oOBePxbNGm4=; b=Q9WuKlzFWzPWxQ6JN4qoJLMnEmsJAzzERZynzDB/Z4mnIVSYgNhGXfWmgv61Ddpo3a q+PNmIYiJD28YsfKOQuKNSDy155KljCQcEnCQG9wtDzY9SVFmUx+uBnhFVhoSMTJJlLH KatIQ8Bq/JG10eviJ8LzDGcULf01Mw8tYhqGVDo9mEW+dbsSiPg1iWBz9X4bcPkndy64 dzW8hodaVru96U/QEk1hE3WL1eEfQWFVYOsh9R9ufxhGGErWYwmEW/VKnF3xgD8hfJU3 1KAW4l7LdCHPW9E8QCH32fiwNaGm1EOXGxXICOas0N/Eai3wIQbcwzU1AaygwEFAw7d4 pGIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796107768; x=1796712568; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=sLLrcFABpzjFQOZbkJnljX109A+8llV3oOBePxbNGm4=; b=Ssxan7PyOskTBx9z1Lg8bwsgbBgLSl6mPvr2KxmlzRGpvTXo2ypEX46b/WutHdQb+z b7UeiGAaba4DV0dGHQ8J2ukmF1Rq3C7lYrH+EGdW8TWq2EvhEDP1D4Q8ETjfBMXU3Oia d06KvjMlkpLecmm7S4EnepImglzRSmRCZteFJC+YMA+0Zl4zZOwBAXBAURChBRveaHfa FUrK0vqKJewZbCdalRFo+zHrWrztq57Sp9DYRvU3EAlUjgC5Qq8rfgLl8rTRiCWuB7pM svepPEpFkO6j1M73qfb458HRJfwX2F39y9o5A5T/DzWTa9482L+KOuVFXu80hCcSDNdO HI2w== X-Gm-Message-State: APuU4Z8fq7Q0SFY7lygaRKznaMpoW8rjj8QvaOVvW6Ynn/c4c0hbvK62 igE9VM+4lHY7mSNZtkdDN5ZZU/v4JbdREdiAhaNeWXdDbAC3QHDHuKRrN2sDE0SfcVtuJqsK313 LRH6s5gM6XMdi73FPQG3iBj28aHU3oRNOD/wx6SOlHMnySCYiqFMqVUziOHl9cY7DSMFMHcwLVf Dklmpj75WPhAp4OtG9U6SsmQ== X-Gm-Gg: AZFdTZe7drJiMzjoTDoqO9wDf6QYA+brmsGuJpcvb/e1DC8UsJCH5OY/mvsmVK1OwGH CXeuRpKIfKPnlUL4Qk8pr64JDAMMg/Jv36q17ficRDaP+8KR5ixxfqHSZlOYzqT6jo76zRXpvl9 ZuVwmx7fRv9CL2bBmWyzzm58ja3v2GClBat5yhzTHFmSxjF9dxI3ZV65edZEnuD1aGoL8kQo3og RRAeXIMhS8MBMTjKUcHCTZK2ophAcoUmTQgw15mcExkHJ9SqJK1zqKPenxPnRlKzVnOkZJ5z75E iMnOI+TWqO55Ob03xPFQPQQgO5Tdf+cvZavhHkgvMl/4Kvh30Sz2LaElrM3Zag63HR4hNReoGYb m6i3VE1M3tVyXBeleXLX9emPAWyH6nWISFEuiFGQD/7zFOp/71ZICr9RadkCB8e4E4iT6eOWjXM UlIOlD X-Received: by 2002:a05:701b:291b:b0:1b5:3878:a9d2 with SMTP id a92af1059eb24-1b5568e950amr29616394c88.20.1796107768002; Mon, 30 Nov 2026 22:49:28 -0800 (PST) X-Received: by 2002:a05:701b:291b:b0:1b5:3878:a9d2 with SMTP id a92af1059eb24-1b5568e950amr29616384c88.20.1796107767473; Mon, 30 Nov 2026 22:49:27 -0800 (PST) Received: from hu-anujmitt-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556829d31sm135132177c88.9.2026.11.30.22.49.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 22:49:26 -0800 (PST) From: Anuj Mittal To: openembedded-devel@lists.openembedded.org Subject: [PATCH] php: fix build of the bundled xxHash with -Og Date: Tue, 1 Dec 2026 12:19:21 +0530 Message-ID: <20261201064921.3966046-1-anuj.mittal@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfX/wtVv0lHv2Ys X/zQ/jxgO5FkrRFNBU+pLduZX+sscbnC/qSFZASiN6J5FBUWhJgZ3VQJU6nYKu/3f0d04xjWtW0 +DEQ6J0aw4Lj8j3UEB/Jv3XfUgXhMSg= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfX6ZluoGCj7nZo mRKEP6Ty17i2PjmXqkviS9gkgggR4kKvwRYZUEUHPuLqo05M4NscHzidB35gfrTZaPOMyxqyijB u+fLHCZ7yLyuec1CI19JDI/pynSVaBP3CsTTVOjew1IYyYtMsJ1Q/7l15AdjP9xwq1nexasWDeM u5PfRMfGGt5WzVDqtGT9So6VMJOkDg8uRrY95l/tENQLk2R0c3R2wckeENHHj0Seo/pARkpoCEQ hHFKhckVxDFm4yzAFvvMcvDA0JmVAVIXxFCSIa3L466+Hk+u4efY8l+IEtW4bPY27lJEBREYNsd iNi7YHvSGFh35RCxacf4M5xSRD+Xwv6aA+y30V5QYBm9OcwcfTQ53Rtga1OfwypbXuO3KnZB6Nq vb9E0JhUAKxD/UQrXhgQrCuns3PqYBOxmHJU8+ZlYMIOm1SyFBrOJU+Tkbf62hircNtr3H5B7pI ZxLOVnocMiPJYRFmpAg== X-Authority-Analysis: v=2.4 cv=fc44WEQF c=1 sm=1 tr=0 ts=6b0e6df8 cx=c_pps a=bS7HVuBVfinNPG3f6cIo3Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=NEAV23lmAAAA:8 a=67BIL_jfAAAA:8 a=EUspDBNiAAAA:8 a=Uz7mkYW-25YCyCIlOd8A:9 a=vBUdepa8ALXHeOFLBtFW:22 X-Proofpoint-ORIG-GUID: EkURKkJDUltyUkvCLJoVpo0hN3zK6F8N X-Proofpoint-GUID: EkURKkJDUltyUkvCLJoVpo0hN3zK6F8N X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 adultscore=0 suspectscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010026 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 06:49:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133740 From: Anuj Mittal With DEBUG_BUILD enabled, php and php-native fail to compile ext/hash/hash_xxhash.c with GCC 14 and newer: ext/hash/xxhash/xxhash.h:4786:1: error: inlining failed in call to 'always_inline' 'XXH3_accumulate_512_sse2': function not considered for inlining The bundled xxHash marks its XXH3 vector paths always_inline but only reaches them through function pointers. It drops the inline hints when __NO_INLINE__ is defined (-O0, -fno-inline) but not for -Og, which can't be detected at compile time. Upstream xxHash closed this as not fixable in code [1] and documents XXH_NO_INLINE_HINTS as the way to compile with -Og [2]. Define XXH_NO_INLINE_HINTS when -Og is selected. [1] https://github.com/Cyan4973/xxHash/issues/943 [2] https://github.com/Cyan4973/xxHash#binary-size-control Signed-off-by: Anuj Mittal --- meta-oe/recipes-devtools/php/php_8.6.0.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meta-oe/recipes-devtools/php/php_8.6.0.bb b/meta-oe/recipes-devtools/php/php_8.6.0.bb index b6cbf02a2f..69eb79a42c 100644 --- a/meta-oe/recipes-devtools/php/php_8.6.0.bb +++ b/meta-oe/recipes-devtools/php/php_8.6.0.bb @@ -127,6 +127,18 @@ CFLAGS += " -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_S # default when cross compiling # See https://bugs.php.net/bug.php?id=60109 CFLAGS += " -DHAVE_LIBDL " + +# The bundled xxHash in ext/hash marks its XXH3 vector paths always_inline but +# only reaches them through function pointers. It drops the inline hints on its +# own when __NO_INLINE__ is defined (-O0, -fno-inline) but never for -Og, and +# GCC 14 and newer no longer resolve those indirect calls at -Og, so +# hash_xxhash.c fails to build with DEBUG_BUILD. Upstream xxHash closed this as +# not fixable in code and documents XXH_NO_INLINE_HINTS as the supported way to +# compile with -Og: +# https://github.com/Cyan4973/xxHash/issues/943 +# https://github.com/Cyan4973/xxHash#binary-size-control +CFLAGS += "${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Og', '-DXXH_NO_INLINE_HINTS', '', d)}" + LDFLAGS += " -ldl " LDFLAGS:append:libc-musl = " -lucontext " LDFLAGS:append:riscv64 = " -latomic"