From patchwork Wed Dec 2 08:47:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Joshi X-Patchwork-Id: 106955 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.32426.1796204924021053050 for ; Wed, 02 Dec 2026 01:48:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=nARlDV1Y; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: qualcomm.com, ip: 205.220.168.131, mailfrom: rahujosh@qualcomm.com) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26osjF267542 for ; Wed, 2 Dec 2026 08:47:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=JuuD5+qzvhjBCRMytNB8F/q8cN4D2w5H0XB U6FhF6eY=; b=nARlDV1Y17K6/LTXBtrgYj4u61RlSfhHvKkxk8M+ZNPtAA/SJyk 81n4fUtqq8FzraiTZsUusPu+DN+JQP7KbFU0H7N4tf/gV5MbctAizxMei2vgggMt lAO2dzShxa/KJqA//fVQs5oPi6PCf/gVfoXZnKhq5xNSMup3bRZWpv4IO7P9dQyJ T0AB8e3/x4baxa4WYUKvaBbbnwZauU9cA1G55syXi1McJj8X/XAuy9X9FLIOb3VO 4PCBqrB9RFJRi936NZrDUP/UtUzyG3AViPDBFRQDBZ4J7ujRNiaGCRz7LjpLW7Dw u0FuBLaoUHJC+JoqfFIGduL4k3W7TvwPK+g== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja3ax32j6-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 02 Dec 2026 08:47:57 +0000 (GMT) Received: from pps.filterd (apblrppmta01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B28lsdv1954240; Wed, 2 Dec 2026 08:47:54 GMT Received: from hyd-e160-a08-1-06.qualcomm.com (HYD-E160-A08-1-06.qualcomm.com [10.147.152.235]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 6B28lsQD1954231 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 02 Dec 2026 08:47:54 +0000 (GMT) Received: by hyd-e160-a08-1-06.qualcomm.com (Postfix, from userid 4788169) id 9E91F6B6; Wed, 2 Dec 2026 14:17:53 +0530 (IST) From: Rahul Joshi To: openembedded-devel@lists.openembedded.org Cc: Rahul Joshi Subject: [PATCH] php: Fix xxhash always_inline build failure under DEBUG_BUILD Date: Wed, 2 Dec 2026 14:17:53 +0530 Message-Id: <20261202084753.3198169-1-rahujosh@qti.qualcomm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDAzNCBTYWx0ZWRfXzvxIbcbGro5O WjIuZihm7d5xvRKF0GGPnr1wDLCI9BeO5hVOxFCswtbrJwD/lWmxS55Up1viO0T3P7lqFMwHFio Wr3kCEH5n5REX4Vt+l07ux1uCzg8208= X-Authority-Analysis: v=2.4 cv=J5s/fwnS c=1 sm=1 tr=0 ts=6b0fdb3d cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=67BIL_jfAAAA:8 a=EUspDBNiAAAA:8 a=AItzNh1cgIDHaouSm8EA:9 X-Proofpoint-GUID: Wmdou7Xx-X6bguvIc1DmuqjVEu19jF8u X-Proofpoint-ORIG-GUID: Wmdou7Xx-X6bguvIc1DmuqjVEu19jF8u X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDAzNCBTYWx0ZWRfX3Mi4tUSAs+Sf 3nzxyo/3HBraAizHD3Czgj2cBCjqM58S++CKPCRTBkpQVEhLc+O8klUohMQaST/LSEFlP6q3bfw OQPDqkIlIyLSLRWD8GUyFi5nFTngTv+4YkPOIqOVJYjKOAP5Xu56YD43s0LnU144J9vOK6CyUfu WmYzkqPhzlPmifEFn+n65yTUWrf3xtO+lwwFtUBwEKV5+WXze6CYJgTnONPW/PRvjkGjbFqdl3i JFLmQNCMWoOgl+7i3g6Zp4kGekp1WmsvzbeDMtEIyyI2AIkV3xGRhhkd1EGIKykqePaOosE/zC5 CmPphnSzehDxTKpdouosZwx1LpBHltiGpZi3IrwH4DFALgnATfrbkf+Ur1zlaKPwdiGUf7bDVDJ yCf/UfIq5xnEwnuNhEitdujSd4QdhfkyObwXhZDx48XVQXtcIBBENU+lKv6pvz9P8W1qxthEzPZ JoL3ynmq1fJTqx5ibxQ== 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-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1011 bulkscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020034 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 ; Wed, 02 Dec 2026 11:29:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133833 Yocto's DEBUG_BUILD variable lowers SELECTED_OPTIMIZATION for every recipe, including -native ones. At that reduced optimization level GCC can no longer honor the "always_inline" attribute combined with the target("sse2") attribute on the accumulate/scramble functions of the bundled xxHash (ext/hash/xxhash/xxhash.h), and turns the failure to inline into a hard compile error instead of a warning: ext/hash/xxhash/xxhash.h:4786:1: error: inlining failed in call to 'always_inline' 'XXH3_accumulate_512_sse2': function not considered for inlining This breaks php-native (and anything depending on it) whenever its sstate is invalidated under a DEBUG_BUILD configuration. Define XXH_NO_INLINE_HINTS, a flag the bundled xxHash already supports, so XXH_FORCE_INLINE drops the always_inline hint and falls back to a plain static function, letting the compiler decide whether to inline it. Signed-off-by: Rahul Joshi --- meta-oe/recipes-devtools/php/php_8.6.0.bb | 10 ++++++++++ 1 file changed, 10 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..770ee3f8ea 100644 --- a/meta-oe/recipes-devtools/php/php_8.6.0.bb +++ b/meta-oe/recipes-devtools/php/php_8.6.0.bb @@ -123,6 +123,16 @@ export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" CFLAGS += " -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR}/apache2" +# At low optimization levels (e.g. DEBUG_BUILD builds using -native +# recipes) GCC fails to honor the "always_inline" + target("sse2") +# attributes on the bundled xxHash's accumulate/scramble functions and +# turns that into a hard compile error instead of just not inlining: +# error: inlining failed in call to 'always_inline' 'XXH3_accumulate_512_sse2': +# function not considered for inlining +# XXH_NO_INLINE_HINTS drops the forced-inline hint so xxHash falls back +# to ordinary static functions, letting the compiler decide. +CFLAGS += " -DXXH_NO_INLINE_HINTS=1" + # Adding these flags enables dynamic library support, which is disabled by # default when cross compiling # See https://bugs.php.net/bug.php?id=60109