From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80119.outbound.protection.outlook.com [40.107.8.119]) by sourceware.org (Postfix) with ESMTPS id EDE203858401 for ; Tue, 18 Oct 2022 15:20:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EDE203858401 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=sma.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sma.de ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n8+iytrOpQlvuSGiUvyabp01MLxdm5VRkbE0CHJq3ud4shy8dH918aEVkZcoosnNld3CUT68ML11KJublLxRkSXZkZQSP3Y4LsyQPJSlRBe0zsQd4alCxrpHjTI+z38BLqjOA46dN9E3An1EB/qVH3u99K7skLro9oscyg3fnfGKzoqvBVRlqOLiJrVCOGGw8pDPuzacnnf6tRj2YX1Rwsz2jai1UkshurT57M73h/OmLPb1i2sgl0ZI6d8uwHqzkC79MRDIv6eITwVD2Zj5I8hHd23HBFk+SHNokKJhtTrXVkPqxhcxEQHoNeUMDywaLe16m4vBT98+JgHW7xkSRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hQEqP1obSGFMuWb536K8HVY3kPT3IZ5WKooKTPAujWA=; b=azwgSFeYSxofD9lm/UdLDTz2aP0uV51hTiVKXHzocfuONS1A9uFC5idLce5jZEMzBLj0ecFgRQotb537w0TN17H2pGa6H8h6Pb6hS7wBktRuNBHe5mcXGz949w4qORtxMh9zeGOIjLv+r7tbcWZwE5Rv1Ze7Tyh5g64WVtVUbZZdaI2yOAyGFomsYLhrjLZ5Yr7YNVwLuISttnH1j5/tISJGr08/rIYDA73AZFcHa9PeYKqPlcvhAbE+FSDXkkmFUDrsdpdfgGr70xq01bIRsh+56vyM9SvULUNHAPTWLa+wLn/A5pHv93Of5Sgy6hEh1AtMrlYtP5u8cg/ox9tZ2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=permerror (sender ip is 52.137.61.15) smtp.rcpttodomain=sourceware.org smtp.mailfrom=sma.de; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=sma.de; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sma.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hQEqP1obSGFMuWb536K8HVY3kPT3IZ5WKooKTPAujWA=; b=BLSEgnUotNa6vnzAkRfQ0FXZ2Etkqy9KgGiFnU8Dq4WckXdePA16uWtifhy9VnpUcax7aAPBHSGV1EP5xK60T2yerhdm/2hpjnaqtnlNZH7sE5YM9A1DHPjgU53JykDIhB9kSoe7wBUKh9cYi1asAE9DcrVivMh4PJbBr0VlARM= Received: from AS9PR06CA0045.eurprd06.prod.outlook.com (2603:10a6:20b:463::30) by DU2PR04MB8679.eurprd04.prod.outlook.com (2603:10a6:10:2de::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.29; Tue, 18 Oct 2022 15:20:55 +0000 Received: from AM0EUR02FT050.eop-EUR02.prod.protection.outlook.com (2603:10a6:20b:463:cafe::48) by AS9PR06CA0045.outlook.office365.com (2603:10a6:20b:463::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.31 via Frontend Transport; Tue, 18 Oct 2022 15:20:55 +0000 X-MS-Exchange-Authentication-Results: spf=permerror (sender IP is 52.137.61.15) smtp.mailfrom=sma.de; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=sma.de; Received-SPF: PermError (protection.outlook.com: domain of sma.de used an invalid SPF mechanism) Received: from mailrelay01.sma.de (52.137.61.15) by AM0EUR02FT050.mail.protection.outlook.com (10.13.54.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20 via Frontend Transport; Tue, 18 Oct 2022 15:20:55 +0000 Received: from pc6687.sma.de (10.9.11.72) by azwewpexc-2.sma.de (172.26.34.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 18 Oct 2022 17:20:53 +0200 From: Felix Riemann To: CC: Felix Riemann Subject: [PATCH] sysdeps: arm: Fix preconfigure script for ARMv8/v9 targets [BZ #29698] Date: Tue, 18 Oct 2022 17:20:44 +0200 Message-ID: <20221018152044.14956-1-svc.sw.rte.linux@sma.de> X-Mailer: git-send-email 2.35.3 Reply-To: Felix Riemann MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.9.11.72] X-ClientProxiedBy: azwewpexc-2.sma.de (172.26.34.10) To azwewpexc-2.sma.de (172.26.34.10) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0EUR02FT050:EE_|DU2PR04MB8679:EE_ X-MS-Office365-Filtering-Correlation-Id: 2826e755-e17b-4469-0fbb-08dab11c5a0f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4RKf3aC4qQzzc3GOJuzPhAuX3I72b0Zz3hxOfqGqh+9x0czlaAzbui7GzxaLRfrI+cGOuM0RH/wcYMr1QFD3+c1JUGt5fDmFWN9p99NK1xlEyjXSrYHCDpjHwx+fR+AlkIKFsJRLnEGAZs6NALnIDwLgkB5r3u260mkk0K6tUL08ijiYVxdfN632YhRdMqr6tvoVn82BL5sNyVdFh4seX3om74Ar2jNzeWLC/XaqPiguCMhhbYn3ItjjYkhpkjx11fwT+CizJp24ANxVTKMflQn7HnTCrlQ2Zlqawowv3ubl5HRRqUaFFi7kLtcV9TG9BaJxve/7ip2W6qTLVmzQjpnialK9NlzQCG+94WTCaXkGfBb7K92T79XgePT2of5rTy7e8eMtOsXWVt4DUnLBBAEtvVR7Q6pXpxFAwVj8X7PxFiAG1ZiHFs8EhPiw2XTY3tfpD4nfcovIELFa1a2/zRKGqaLwicxfj7wjpBUrGAuAIXlA2K9A+bpyPHERM1QJv4eHZ0prg/71tXWQwCUPSIb8o9lHbsGcG0MpzQ43k+vM+qk1gPtT0AAxhztwUMhjc6aXVw3OYy1g2tRK4hE31vmzRVE9gxTaFKzo65D97vQe3vbupBqzOyyXOwP4Gp4m7GTtvyyj3Oid1Rvk6TQiKZL+zRCaBi/odt2PHZwAKnRUVcx/hrXITao3TJ2HAVG3BPan+IqSAhkB124SbVjFdTgo0iae3T8yQp1BGlYG+kQDzBHSrGi2jh1DqP/m6vsAAQN9OlYFF9gHiJa1iZooWA== X-Forefront-Antispam-Report: CIP:52.137.61.15;CTRY:NL;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mailrelay01.sma.de;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(136003)(396003)(39860400002)(451199015)(46966006)(36840700001)(6916009)(478600001)(316002)(8676002)(4326008)(6666004)(70586007)(70206006)(82740400003)(41300700001)(2906002)(8936002)(7696005)(26005)(356005)(336012)(5660300002)(1076003)(186003)(2616005)(16526019)(47076005)(426003)(36860700001)(83380400001)(40480700001)(81166007)(82310400005)(103116003)(36756003)(86362001)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: sma.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2022 15:20:55.4327 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2826e755-e17b-4469-0fbb-08dab11c5a0f X-MS-Exchange-CrossTenant-Id: a059b96c-2829-4d11-8837-4cc1ff84735d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a059b96c-2829-4d11-8837-4cc1ff84735d;Ip=[52.137.61.15];Helo=[mailrelay01.sma.de] X-MS-Exchange-CrossTenant-AuthSource: AM0EUR02FT050.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8679 X-Spam-Status: No, score=-10.0 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Felix Riemann The ARM preconfigure script tries to detect the capabilities of the target platform by checking the compiler's predefined architecture macros. However, if the compiler is tuning for AArch32 on ARMv8/v9 this step fails: checking for sysdeps preconfigure fragments... aarch64 alpha arc arm WARNING: arm/preconfigure: Did not find ARM architecture type; using default This is because preconfigure.ac doesn't escape the square brackets in the glob for matching compilers targeting ARMv8. Adding another pair of brackets to escape the first pair fixes this: checking for sysdeps preconfigure fragments... aarch64 alpha arc arm Found compiler is configured for something newer than v7 - using v7 Signed-off-by: Felix Riemann --- sysdeps/arm/preconfigure | 2 +- sysdeps/arm/preconfigure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/arm/preconfigure b/sysdeps/arm/preconfigure index e95c988f29..326bede5b5 100644 --- a/sysdeps/arm/preconfigure +++ b/sysdeps/arm/preconfigure @@ -22,7 +22,7 @@ arm*) sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'` case "x$archcppflag" in - x__ARM_ARCH_89*__) + x__ARM_ARCH_[89]*__) machine=armv7 { $as_echo "$as_me:${as_lineno-$LINENO}: Found compiler is configured for something newer than v7 - using v7" >&5 $as_echo "$as_me: Found compiler is configured for something newer than v7 - using v7" >&6;} diff --git a/sysdeps/arm/preconfigure.ac b/sysdeps/arm/preconfigure.ac index a523b4fb4c..a707385263 100644 --- a/sysdeps/arm/preconfigure.ac +++ b/sysdeps/arm/preconfigure.ac @@ -22,7 +22,7 @@ arm*) sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'` case "x$archcppflag" in - x__ARM_ARCH_[89]*__) + x__ARM_ARCH_[[89]]*__) machine=armv7 AC_MSG_NOTICE([Found compiler is configured for something newer than v7 - using v7]) ;; -- 2.35.3