From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 0F3723858C20 for ; Tue, 7 Mar 2023 15:38:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0F3723858C20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.98,241,1673942400"; d="scan'208";a="99127033" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 07 Mar 2023 07:38:14 -0800 IronPort-SDR: loT/urnSa88Hlo+QQMOlyh54t8uusLMpV+423OCqEL43LHswjARbd6K3sBR5WEUrkFxT/vl5Lr 3yXOT1WpNd7yEjEqxO/hwd+PzYG3NHxhWZyAYz8HU3YeDW/7ECbUYCTjo59h/1Rv0ZMujtKCKb ZiQMl3PyNEgTILiFZH4TyjkqIDK8Dupx3FJeNl1Q9RwxQW/xO6BtTCeLcMV/gbLvztCigWugLC 0Fng9j+c9mXLP81LJFTB5JX+eZ3+XRE0iSIyx9BX3nKAY3t46l6JEZO2+AiVaPH77W9F4o/sEM dAs= Message-ID: <99e77e25-0c83-1087-691d-43530e7395b3@codesourcery.com> Date: Tue, 7 Mar 2023 15:38:08 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Clarification on newlib version for building AMDGCN offloading backend Content-Language: en-GB To: Wileam Yonatan Phan , "gcc@gcc.gnu.org" References: From: Andrew Stubbs In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 06/03/2023 19:23, Wileam Yonatan Phan via Gcc wrote: > Hi, > > I'm working on adding a build recipe for GCC with AMDGCN offloading backend in Spack. Can anyone clarify the following sentence listed on the wiki? > >> The Newlib version needs to be contemporaeous with GCC, at least until the ABI is finalized. > > > What are the correct contemporaneous versions for each version of GCC >= 10? Just match the dates and you'll probably be fine. We've mostly synchronised the ABI changes across the GCC mainline and the development branch precisely because the Newlib dependency is shared. Right now the required version of Newlib is 4.3.0.20230120. Prior to the ABI change a month or so ago you would have to use a Newlib snapshot. I wouldn't recommend spending very much of your valuable time on enabling old versions of these toolchains. Andrew