From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 7661B4AA5A for ; Sun, 21 Dec 2025 23:39:58 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'LKdFRa9SvhzbmcBtQ1Ra5dFaVOP9oFJxKaWa6wZWX48=', expected b'2yS//cl6u2w88J9diFq6s0H1pZUgGmFjzGnp0IfLDC8=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1766360378; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=LKdFRa9SvhzbmcBtQ1Ra5dFaVOP9oFJxKaWa6wZWX48=; b=wIJfsjUMRcTs+ht1uvPDfzVrihYJiwLZbKAv04gXIcLH0xBiqHODy4QiPpSjMeGmjBJ8f orimq55Apd8K+bMu9SMNVqQzQuYY/5cSMRsdynMmtRss8P1Cgcekrsfsrn7S70ZT/B4a3zR ev0COiVErfeQmbevQVJWgGsfz6CVPFb0TdS10COUmbIW3yD+W+ehvR6eFHVX1/Are9UtoSU Wmutr0xwBDxby3jC2HPc7eh8ll7Aby/3MjSaSIeWNxGGia9KjbUOg0oy6zp5P8HP7oHiWAR 1vGGzD5dKo2Sz7WZ0p6EUG4uRdJMG0zSLWkSQ8HV8ezBQK/xXFC2LdXzH3wA== Received: from [172.20.0.2] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 8D005690ABE; Mon, 22 Dec 2025 01:39:38 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1766360369; b=Z61Hgj6RBYUqmfXsZapYGIt9xCVgbcf6UztqtM9KkV1aYWQ1mhGOTs7bnkwGxvwNN+MYd W/yvjuo5iueyTjMqq4UmJ9BXCgdWLvsITFCCyASkvbg3fik8fNIWB4CkGymywi4o4cn23qM eRnzWPGGC1wrzPzcrSAOGn9e7f3oV+4waFVJy+if0geaIKEik3ebjibKd4lAGtUi70P6yyM nYAEtoi2cNxaiH2olH1tjabylqatXWpLh2dN7L/Cn8Ut8vruKggGOoTaQk3iN6iVHRuOV1V CePGuMemt2kuWIq/sgmvG6eK83Oxh+kktnm8TaWl91QzRev16P2HJv2Mx/Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1766360369; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=8ilcMrCIHaRqysH7WKU+vdUrzaVNbvuHfxNX18ATTRg=; b=UTIk8zle0dLJTz9KiY03pIdMxfUEZml2+BDAudToAHXBdMPUap3qPMZDZaFK+au7gVXoL WgAWZVBL/u42on7FC698mk5mZx4Bof/fnVMHyPn20MglOYAPGzrnEoax5pshJgvx7MJzIkB K1BpDRe9oJOrSeuHfF1Y1FH0bqrU6Ug6MgssqNyBap+XZPdjZxCEpBZK/SoIydi6IoizbNo pstaiVijkhACizX+RV3JBBbDSJPqTxmiYkgJ91fz6caKbeBEbRezH4DiW6eqT5SUdolLFtD 5lmm+e8CAq8PDSsqqGBYVig93xfpymVU1hIyLVtzLyV3KoRC7OnHylCCrxIQ== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1766360359; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=2yS//cl6u2w88J9diFq6s0H1pZUgGmFjzGnp0IfLDC8=; b=VAw0CGv1nRn+ckRI7SfQr8TfQAeEV2eioBJta755uZckmC4Pq5SC17lwGU+fpFlOzjfJ6 iWrAyempNacCTF98DilKk9JYh345A//ZeYo7zR/90bCT6kxTZsOB/5TR/9CF2djtgyoffQw 30LnvF8RnRCQZbDmcaD9TPgwgJbxl+vEju+8jY6GqSJdL4kH7gOJR6+rrWc0gKmUMsj0if/ cMvlcQiGF7qdg56QCRi+3B6ItS3ICULLL5r/K+ZDJvPFkoZulNFDpsgPmiCKD0JxtqODI0w 0FLisT22QMR+vbv68++oHXIb+10ZYz5riXOVysSi3IKQDxFvbcM3Fne7v+Cg== Received: from 55ca25703178 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 7822F690A78 for ; Mon, 22 Dec 2025 01:39:19 +0200 (EET) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Sun, 21 Dec 2025 23:39:19 -0000 Message-ID: <176636035968.60.13550997556676738699@2cb04c0e5124> Message-ID-Hash: 3CVMRXKKBBV2AYBJ4PT4OYQ7XUSQ4NUM X-Message-ID-Hash: 3CVMRXKKBBV2AYBJ4PT4OYQ7XUSQ4NUM X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] configure: Fix ARM architecture feature detection for ARMv6 (PR #21256) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Jun Zhao via ffmpeg-devel Cc: Jun Zhao Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #21256 opened by Jun Zhao (mypopydev) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21256 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21256.patch When configuring for ARMv6 targets (e.g., Raspberry Pi 1 with ARM1176JZF-S), the configure script incorrectly enabled ARMv6T2 and NEON features that are not supported by plain ARMv6 cores. All ARM architecture extensions are enabled by default, and the subarch-based case statement only enabled optimization flags without explicitly disabling incompatible features. This fix adds explicit feature disabling based on the detected ARM subarchitecture: - ARMv5TE: Disable all ARMv6+ features - ARMv6 variants: Disable ARMv6T2, NEON, and VFPv3 - ARMv6T2: Disable NEON and VFPv3 - ARMv7/8: Let compiler tests determine feature support Without this fix, compiled binaries would contain unsupported instructions and crash with SIGILL on ARMv6 devices. Fixes trac ticket #11695 Signed-off-by: Jun Zhao >>From 212753d3dc2c31456019345a1718e273f6677dd5 Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Sun, 21 Dec 2025 20:28:26 +0800 Subject: [PATCH] configure: Fix ARM architecture feature detection for ARMv6 When configuring for ARMv6 targets (e.g., Raspberry Pi 1 with ARM1176JZF-S), the configure script incorrectly enabled ARMv6T2 and NEON features that are not supported by plain ARMv6 cores. All ARM architecture extensions are enabled by default, and the subarch-based case statement only enabled optimization flags without explicitly disabling incompatible features. This fix adds explicit feature disabling based on the detected ARM subarchitecture: - ARMv5TE: Disable all ARMv6+ features - ARMv6 variants: Disable ARMv6T2, NEON, and VFPv3 - ARMv6T2: Disable NEON and VFPv3 - ARMv7/8: Let compiler tests determine feature support Without this fix, compiled binaries would contain unsupported instructions and crash with SIGILL on ARMv6 devices. Fixes trac ticket #11695 Signed-off-by: Jun Zhao --- configure | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 4791a67562..0f07757f83 100755 --- a/configure +++ b/configure @@ -5570,10 +5570,33 @@ elif enabled arm; then esac case "$subarch" in - armv5t*) enable fast_clz ;; - armv[6-8]*) + armv5t*) + enable fast_clz + # ARMv5TE doesn't support ARMv6+ features + disable armv6 armv6t2 neon vfp vfpv3 + ;; + armv6) enable fast_clz disabled fast_unaligned || enable fast_unaligned + # Plain ARMv6 doesn't support ARMv6T2 or NEON + disable armv6t2 neon vfpv3 + ;; + armv6j|armv6k|armv6z|armv6zk) + enable fast_clz + disabled fast_unaligned || enable fast_unaligned + # These ARMv6 variants don't support ARMv6T2 or NEON + disable armv6t2 neon vfpv3 + ;; + armv6t2*) + enable fast_clz + disabled fast_unaligned || enable fast_unaligned + # ARMv6T2 doesn't support NEON + disable neon vfpv3 + ;; + armv[7-8]*) + enable fast_clz + disabled fast_unaligned || enable fast_unaligned + # ARMv7/ARMv8 features are checked later via compiler tests ;; esac -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org