From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2063.outbound.protection.outlook.com [40.107.94.63]) by sourceware.org (Postfix) with ESMTPS id 379983861823 for ; Fri, 15 Dec 2023 09:55:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 379983861823 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 379983861823 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.94.63 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1702634137; cv=pass; b=UWI9EogMfdOtJmoiVELPgxsNGjsZiQcFQ2pm8mSZ40N2NOdvESXOFqJzyP1EEhLupAOC9yBGvXR6QCiVGJBDYRtxk1SC9jXtWcqlK9X/Acj35doQJqhnYrYvu6YcVV4f0ua5sPBT8juxKdfCEz5SIpQ74ootEf1wHK+t2oIrg6w= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1702634137; c=relaxed/simple; bh=uIw2OfB8xEL7jIRO7YKkL7WJCvkf1w2RXEMwKVOrPVA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=N5B26keZG3plAHVaTmnLIJya8zvE8xBZv6KPRiPtu8IPALGBJ/a5PpMHMzL3wvpyiooUhd41qr7yCoDENf2nHGh1MSx2EvKqTBkCOC2E6nS4IHlGJNNcX7clKQxhdcHnHWofRFSy1mCEGKjyqNd04yGXi111/YnqGl6t1dXT8Pw= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J/bot2o/3mNdND9ittmLJcf8AzWwueKASMTpKG/Ycq/9zLJKaR7nGFJbXXtloOMXEC7AYN4ie3cxSMTNMyU2B4TY0r/iewJcxXliqRMtBHSWn5XD3gWhPhzO/M2hnvtbIN6ME62R9yWDDdqBSNdpcK7mQCIhDO0ZrT5zhLMSw0BPEGdHrU+dVPVjYKV93sXm4w3nmzhiOHFCYe8MmuPI6V1mkBhSmyxYeC028qspo8vS8OJjaDFo4sWyENURDXooWKLxGHP5TulZN0zdA1kHSp5Qze3lR/zGCx+rSYlmISV2wHFhnH9Ejth6ZGKt95523wzGxf0lYsvB6GNI6SRoXA== 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=SXZJX62SAvv6SXO1VjH8w27fu91tIXjcQ6gx1WNGqf4=; b=eXPrTPfNOWyr+Q/VY3rpo2+pMHv7dVvwxU46QRHmYAdOZiDq9tzbbtcFovpEFeS4qvFs0NhIAIMnbwOfI9OJ7xD/1azZU1D5tIYLvLmYJBk9SQ9vI7zZsUi6PzotXQ4l4hlIz5B0AiNYgrCPR2ZSQd+9YlWUDl/7bhsxqN5l6xjFTUQgqUDTOiiVssVvsMv8lq4FIYNCremzqRXFsFOK9O0om0JgSPOOq080kMH9YUOewpuSaUXiFju08ma7W3Mq/VlzrtOSS5mjEJcJuoaN2tVl+2QtVCpmJgwZNQhKMxvs9grdhacU9t9Gzx69/MRpHnTCKpZUFYoCrpwyC1fBxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SXZJX62SAvv6SXO1VjH8w27fu91tIXjcQ6gx1WNGqf4=; b=Uk/fkOYRsmRpCLl0LehOF8OUSi54EQQZ8sKOyJUE97cx/QRdQLF+0SOXPsC/K6eoVJGm7q8adviZ13RrNnxETHz0D5eR9wE3R76+5/o0Vw6guiu+GI/dUeRO1KnOlTTcFs6ukJZd6ALFLIHF8GALYxFS6+691wHNRBOWEOMtbiA= Received: from SA9PR11CA0028.namprd11.prod.outlook.com (2603:10b6:806:6e::33) by BL1PR12MB5142.namprd12.prod.outlook.com (2603:10b6:208:312::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.31; Fri, 15 Dec 2023 09:55:33 +0000 Received: from SN1PEPF0002636E.namprd02.prod.outlook.com (2603:10b6:806:6e:cafe::db) by SA9PR11CA0028.outlook.office365.com (2603:10b6:806:6e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28 via Frontend Transport; Fri, 15 Dec 2023 09:55:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by SN1PEPF0002636E.mail.protection.outlook.com (10.167.241.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7113.14 via Frontend Transport; Fri, 15 Dec 2023 09:55:32 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Fri, 15 Dec 2023 03:55:32 -0600 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Fri, 15 Dec 2023 03:55:31 -0600 From: Neal Frager To: CC: , , Neal Frager Subject: [PATCH v1 1/1] configure: correct tooldir install path Date: Fri, 15 Dec 2023 09:55:29 +0000 Message-ID: <20231215095529.739093-1-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002636E:EE_|BL1PR12MB5142:EE_ X-MS-Office365-Filtering-Correlation-Id: 748c7e3c-302b-421d-9564-08dbfd53fa7a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UZR4PBiB2rECP39qsuLd31MgXcPB5NCP7CRHk5Uc0R8nxqDLGvesPN2+ZzKXIH04ehp6cE+F0bgdgr6TDI30+PayiExIPIkRvkDobcgX+G6T8gSG4N6hwEl3xjGqq6hAgZ3zvILFkE30sLVsKTmijWiQIlWhyvWxITuvpjUkRJwpPz+vTLYSBqgrK3MJmL1ifYh0Ci0BvLJZH8LJvOS/HHZ9XYv9ItCzoEabt1Al6s7bso9cpYHNmEUSoEnLHg6eAwGpbS/q8JGmJxo2qYF1DHLaV8086O/VZ9A/zsXCed9wiSks9fU/l1FcybgYwiaSP2Zic36p1QdXMwECsLjiNF/GZahvU3xzwjT/HDjhc/747KeGp8LCe/bIor/wTuREGJe/8wA4DubYJ2IkGPsSx5qaT7QhCdRvYHYWboSrUCiXI/WPaUvLuYnCKLLH4NSg874tOjtZ15eVv8VQZrTa4g1d4opDazo9PH/stzcUU06bYmFbW7/AbuqF3Ra+FOwFdjL+9UyaawltcIjJqfMhn7kr2G/IyTVDo9w7X6dMmr001gR/v4FJtaBjGwYs7trQ4wDZdQk0nyWzx5NvLsUYXLWHNsBfEwCIPjOPHE2lIuesMF4IMxUNy2hpGU+P3ssg3ay2jzO5SKhyPaJhQzWEAXhZjGwsjnOaX5RThZLLHVV49927XOVopFYpgYbqB6uXx93ih8C0gHBDyjICxga053Xz7xQGqJ9Suy+Bz+jGccNOjiuPFEaVsENRAY3shfNAohZ+dIlErFaGvDKJwVk5qA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(39860400002)(396003)(136003)(346002)(376002)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(82310400011)(40470700004)(46966006)(36840700001)(4326008)(8936002)(44832011)(8676002)(2906002)(5660300002)(478600001)(54906003)(70206006)(70586007)(316002)(6916009)(41300700001)(356005)(81166007)(40480700001)(36860700001)(47076005)(86362001)(36756003)(82740400003)(40460700003)(2616005)(1076003)(26005)(336012)(426003)(83380400001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2023 09:55:32.8882 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 748c7e3c-302b-421d-9564-08dbfd53fa7a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002636E.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5142 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,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,T_SCC_BODY_TEXT_LINE 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: This patch is required to fix how the newlib headers are installed when using a sysroot install directory. The cross compiler expects headers to be in .../host/usr/arm-none-eabi/sysroot/usr/include/newlib.h by default newlib installed the headers into .../host/usr/arm-none-eabi/sysroot/usr/arm-none-eabi/include/newlib.h ${exec_prefix} provides the .../host/usr/arm-none-eabi/sysroot path ${target_noncanonical} provides an extra arm-none-eabi/ that must be removed. Signed-off-by: Neal Frager Co-developed-by: Chris Wardman --- configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index eb0ba840b..29ab40cf6 100755 --- a/configure +++ b/configure @@ -821,6 +821,7 @@ enable_linker_plugin_flags enable_stage1_languages enable_objc_gc with_build_sysroot +with_install_sysroot with_debug_prefix_map with_build_config enable_vtable_verify @@ -1590,6 +1591,7 @@ Optional Packages: --with-isl-lib=PATH Specify the directory for the installed isl library --with-build-sysroot=SYSROOT use sysroot as the system root during the build + --with-install-sysroot use sysroot install directory --with-debug-prefix-map='A=B C=D ...' map A to B, C to D ... in debug information --with-build-config='NAME NAME2...' @@ -7057,7 +7059,12 @@ esac # Some systems (e.g., one of the i386-aix systems the gas testers are # using) don't handle "\$" correctly, so don't use it here. +# Check whether --with-install-sysroot was given. +if test "${with_install_sysroot+set}" = set; then : +tooldir='${exec_prefix}' +else tooldir='${exec_prefix}'/${target_noncanonical} +fi build_tooldir=${tooldir} # Create a .gdbinit file which runs the one in srcdir -- 2.25.1