From patchwork Thu May 4 09:41:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 68743 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C458E3858004 for ; Thu, 4 May 2023 09:42:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C458E3858004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683193360; bh=OrX5vd0AdaTibiwEIFkaMC75lMz/OlfOwvpHsPBiM3Y=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=jlPpBGpjntkKadGyVpV0UY3vOUy9fhLvwoxr/pgU7p61b3D+5SUJA4xQBlShetlGh RcGLbS8tO4EU1XskyqdE4Kdp8ausfzi6LSn7Zpmyvzvg2hO5uG3tz7ROx9oWOF8pCw wAY+5TGVAIIMy7FmSpAI9Uqz7Mi99bbN8Wdu9mdw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061.outbound.protection.outlook.com [40.107.20.61]) by sourceware.org (Postfix) with ESMTPS id 7A1333858D28 for ; Thu, 4 May 2023 09:42:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A1333858D28 Received: from AS9PR05CA0348.eurprd05.prod.outlook.com (2603:10a6:20b:490::18) by PAWPR08MB9470.eurprd08.prod.outlook.com (2603:10a6:102:2e9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26; Thu, 4 May 2023 09:42:12 +0000 Received: from AM7EUR03FT009.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:490:cafe::50) by AS9PR05CA0348.outlook.office365.com (2603:10a6:20b:490::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26 via Frontend Transport; Thu, 4 May 2023 09:42:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT009.mail.protection.outlook.com (100.127.140.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26 via Frontend Transport; Thu, 4 May 2023 09:42:12 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Thu, 04 May 2023 09:42:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b035a63d88f7c7fa X-CR-MTA-TID: 64aa7808 Received: from 736d0f49d07b.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 409E4C2B-A296-4E01-A5C5-53E77F68E86D.1; Thu, 04 May 2023 09:42:01 +0000 Received: from EUR02-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 736d0f49d07b.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 04 May 2023 09:42:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nSpsFmjINlJk5zFZuST05e8IbMEtjlOMDM3wDS3HBviMcJ38XH/IGfcS1Z3g8IoxtcgLLBatjIXgxwU2Hqprj07Q85zBYl3Gg/Kj96pQ83v7/x90ADCRuTNqNoHrNWYVvMPgU5UYLTRpNDmIpaUWtHsxSMbbONyBOgBry6tBJ5bLQjbc6+DC6J+FXI1084YztJV5FNeYVnjwFtR2Cik0Z2ZrN5cWpKtljs3fgDsDE3bd/4Zno652dq4RRa/le1nfZLJIgOZHcGpRmkgez8ghMeaz+ZA1mWf3VdkWlp9HAzfwaV2ie8TZXrdqFLau0GnXw5VZx1gnZV3brTb71e5+Qg== 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=OrX5vd0AdaTibiwEIFkaMC75lMz/OlfOwvpHsPBiM3Y=; b=fMdBrEfdrIszLnS4AsuiHwu9QKViJYGiW5NzJmahqw1dRGTjnNjMX2tEWYV8JmBFmS2hTFjIpqLJ/zTkZQU91Kjv/Xqeo8YskBxilh+nc6hRmSlUoBSxkeeW3wXd2ycQ6+aGOAPFhZpzKW9q6LLxEpzdeiXOrbxZQbW0ElKXxN+zBEOBhYSUfEBpTaqFp9dMWW44bqtiZ401Etr4cjAUY3YuJZzt1Lvbqx6jnu1JcmIATrHeGVDG77PhjbgyVtIrIsfdSQZra85ecgoUWD/rc9B/EU4i5KHv/lUQ9Ko1nhh/s4me3pwY8SDBZOPOwlkGSw/rkGQdVBRMZ0V9IsAHNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) by DU2PR08MB10015.eurprd08.prod.outlook.com (2603:10a6:10:49f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Thu, 4 May 2023 09:41:59 +0000 Received: from DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::242d:33fe:1c48:bd8]) by DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::242d:33fe:1c48:bd8%6]) with mapi id 15.20.6363.026; Thu, 4 May 2023 09:41:59 +0000 Date: Thu, 4 May 2023 10:41:45 +0100 To: Joseph Myers Cc: Joe Ramsay , Subject: [COMMITTED] aarch64: fix SVE ACLE check for bootstrap glibc builds Message-ID: References: <20230412133749.40588-1-Joe.Ramsay@arm.com> <59eac67e-2ad2-c583-624e-bb1086a32081@codesourcery.com> Content-Disposition: inline In-Reply-To: <59eac67e-2ad2-c583-624e-bb1086a32081@codesourcery.com> X-ClientProxiedBy: LO4P123CA0062.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:153::13) To DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR08MB7179:EE_|DU2PR08MB10015:EE_|AM7EUR03FT009:EE_|PAWPR08MB9470:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ab9ee6b-581b-4c57-d08b-08db4c83d699 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 6IOl3gx72gv+FjCJiS7yk68ioUEeBjPfUzv89ZOcxaF6fcx0KcdrCX6B0Uzps2rK53q++TCiW7E4965PwMx62VCvfMrn5uOGyqxu9Dh2xgbXy5fIE2dBzlH3Z3dP1QzHwbFQJu+wL+zUi/TlZxiWZJR40g3DlhxkI4bfYe2FP3+hU12neWNQY/AkkwGESs8KyjTO4ivmBVb0oUBqAXjlaX2DP1cmA4GmzZjxiRWbK2aPSzh4ipp01Pq47ueC2Z1xM+NcWcid0iwoHXcGU+Lt0+xL1ymE5Yap6YgX+4u4VSgHM6UNysOiwfoXPLFzpmWNYqZMqB+dK70kZpk1qHcYCAFzQMJSotuMz7+mU2IrPDicMeSXGV5Z2oxs61nL26FaXL/hVuQHYeMA4Kpn2Lx8RHSV9fqwUENuJijIJ3YSrCrp8HJ7KVlWumLzulRmDhuJxfofzbmhGJ+6KM7GaG5TZ+Bd2CwPuyA3OBuv40XkIIaasjz0DrOCDcVRAQ9Yg+lxNrKhwgmpCDYGfbarmCIeKF/mCT8/UfAxWuaiiPqvif7zOep0ljNFfSlH0fgulUBf X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB7179.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(396003)(39860400002)(346002)(366004)(376002)(136003)(451199021)(6512007)(6506007)(26005)(186003)(38100700002)(83380400001)(41300700001)(8936002)(5660300002)(36756003)(2616005)(2906002)(478600001)(6666004)(54906003)(44832011)(316002)(6486002)(8676002)(4326008)(6916009)(86362001)(66556008)(66476007)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB10015 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT009.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 5a16ce68-9b8b-4970-658e-08db4c83ce1a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xOMsvtP+BMNJac8GvMO6jbbkHHeF0JT2/aBhxUPhcNf6Bg0i984L7ZaD/0U29Zq2p4CN922GNPD6GqsjD4xnLbrdNt0Xv0br1qnkhm7j+KbaedsPs6jZzp1NI0PzpClv0FdQ0JViKQNMv6PeuLOq6DYSaklg9OHqr2OKI0K/tTMrzpccNL5LAQhcfFK6kls28TdEaMnADLHR6U0a3kvBD+pTrHGsXS1Z0MIuLIvEbgcXtRrt+RCun2ktFwCFhJQgrS+ZeADRzD2HjkjZ1/Ysfk7rz7VSD5xQmZIplDCrji3QlO5H7YRD+GSkUWshw08GII/Xuw2Du2C/DRNdZM3hLvjgsEBOTJmaDUBAm119VrRcYfV2sAs9bGBCDyRNDV+KPm1lXIJSthiSRO6Kl5Wa4m4hC0vEBjD6QUUoSmx8pZG1xw1y+Lgk+gkHBBwJu31GncJD/j1gbp7h1oTd71Xw8i4ApoTxvlHxGCUzAZzCqP6nq9GKvw2CZu7FQqkGBqy21oqT4cncyNrhINxLx9qpBY1zY7x2XFAWReC5uZwLusstPnhVMXbckwACF5kSnJx3pL9mE8TUgvFDjsCsTlQeo92Acs4Wa6wKDCA18AVZ9rS0vv6jAVBUQzejBKB21JjG50GIojJ+h/v13CLIuzEs4vVdNIWHOcR6dtnLYD3L0yY7LN1QyPgmPDpHksuGSQCswhmR8WoQNdd1sjgnujMbSpqOuKcA+3ptVBQtLcaiL/0= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230028)(4636009)(136003)(39860400002)(346002)(376002)(396003)(451199021)(40470700004)(36840700001)(46966006)(6506007)(26005)(83380400001)(6512007)(2616005)(336012)(36860700001)(2906002)(47076005)(54906003)(34020700004)(44832011)(5660300002)(81166007)(356005)(8676002)(6862004)(8936002)(82740400003)(186003)(82310400005)(6486002)(41300700001)(6666004)(86362001)(316002)(4326008)(70206006)(70586007)(40460700003)(40480700001)(478600001)(36756003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2023 09:42:12.7263 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ab9ee6b-581b-4c57-d08b-08db4c83d699 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT009.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9470 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Szabolcs Nagy via Libc-alpha From: Szabolcs Nagy Reply-To: Szabolcs Nagy Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" arm_sve.h depends on stdint.h but that relies on libc headers unless compiled in freestanding mode. Without this change a bootstrap glibc build (that uses a compiler without installed libc headers) failed with checking for availability of SVE ACLE... In file included from [...]/arm_sve.h:28, from conftest.c:1: [...]/stdint.h:9:16: fatal error: stdint.h: No such file or directory 9 | # include_next | ^~~~~~~~~~ compilation terminated. configure: error: mathvec is enabled but compiler does not have SVE ACLE. [...] --- sysdeps/aarch64/configure | 2 +- sysdeps/aarch64/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index 22ed9d38d2..d0d78d69f1 100644 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -342,7 +342,7 @@ else cat > conftest.c < EOF - if ! ${CC-cc} conftest.c -fsyntax-only; then + if ! ${CC-cc} conftest.c -fsyntax-only -ffreestanding; then as_fn_error 1 "mathvec is enabled but compiler does not have SVE ACLE. Either use a compatible compiler or configure with --disable-mathvec (this results in incomplete ABI)." fi rm conftest.c diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac index ba519c9053..259edc3de8 100644 --- a/sysdeps/aarch64/configure.ac +++ b/sysdeps/aarch64/configure.ac @@ -112,7 +112,7 @@ AC_CACHE_CHECK(for availability of SVE ACLE, libc_cv_has_sve_acle, [dnl cat > conftest.c < EOF - if ! ${CC-cc} conftest.c -fsyntax-only; then + if ! ${CC-cc} conftest.c -fsyntax-only -ffreestanding; then as_fn_error 1 "mathvec is enabled but compiler does not have SVE ACLE. Either use a compatible compiler or configure with --disable-mathvec (this results in incomplete ABI)." fi rm conftest.c