From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web09.2993.1649476437363597969 for ; Fri, 08 Apr 2022 20:54:00 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=GfM9imoC; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: bob.c.feng@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649476437; x=1681012437; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=sbItqHL8KF68RyC2VxBRJpdo5Y5eLyWzJQ+IhoQibRE=; b=GfM9imoC4uLBlVS1locLAh/OLhvcRaRrZpF1RLknFHn4i0zyb5shYEkm 87sx4FKnHGCyYhMYccyTTWZ4jFjHMAAtm71H3Rkamngs0l/76YRBDd2k3 u/oAAPQ/GKuuyzJW84Hr2DkUtUZrypYyfp2qH3AVQZE1WQHtdU1Onh3eq DN+6eyZPCyGJdP3VgYWx8rzMGL2+L19pAajEQd03SAvl7wiAcsriaitlE gO0Z488FcATuh6gZUTxhp76jGuxirNlRQ5t1CWzVE4rA3BUKlhXljGf69 +B5VAMP+rDdmPZl4QpSaELFZsXoBB6qbwfPSmyBXxfv1kDxA3znmhWFpQ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10311"; a="348190924" X-IronPort-AV: E=Sophos;i="5.90,247,1643702400"; d="scan'208";a="348190924" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2022 20:53:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,247,1643702400"; d="scan'208";a="797085929" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga006.fm.intel.com with ESMTP; 08 Apr 2022 20:53:56 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Fri, 8 Apr 2022 20:53:56 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Fri, 8 Apr 2022 20:53:55 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Fri, 8 Apr 2022 20:53:55 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Fri, 8 Apr 2022 20:53:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pl2snpomBJFrkb7c1BxukkHBwOsvhu4cyzfO4MVKhJZl61/KrjqXIl7aXgYF4MyUJO/QWj9BZXunFtlJuAH0AvwAIeGmygden+1PmM6N0ZJ4Eptv3Fkigxtm2kPbEopILukYU1Ye9uQgnV8dWenqjxIJC7847o/z8mQzr7PL6WKrP8w7m/Efs43J2Ea3iEj506kUyN9UC2AbUayGDQeGa9gSSTPXPHVrlzI1rq15sdd0sSVp/GTtnic9MSlNQlY9SUAJF8DpzSGeFD0CkqW/LDZe9zq/YOZM/T/N7opgHmnCz6JqorL6vLb4KuPPhdh41IxtXsPEbJoFdz2RL8ZdPw== 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=+Arveo1l7mHCLZj8uiCAIjydqZV/LudcNV728hPwXPM=; b=QQodNnrGtAzv7UtD6E3QKFL/UGoD8OIOZTQtzrMZ7HimPlfWZ/WCRaEhD1lAJt+IUtffdLGRyxM4U/yoHyX6F96a5tHDCmYX438LB/ouyY63QommUlGnuv4dOippqgW2S7i0uc5cQAuO16R/fKMToCdssiP4rUAJCpGL2rFw+VdERmXTOp9LyfDwxE7DR7NFnX/12nkERSLvEvQpC7zKMruqNsqFfjhv6FHFrEW8AibcWiHWz9qXefXaFXKT7vJwio3mOHzJLz3HS2UhCZlsgUWyyRA8h18cpr50+YyyRJf0PTREGziLsWok5NXSlpK0MfpGDbljdOFr3PrGMgrS+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH7PR11MB5863.namprd11.prod.outlook.com (2603:10b6:510:135::11) by DM6PR11MB2906.namprd11.prod.outlook.com (2603:10b6:5:6a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.22; Sat, 9 Apr 2022 03:53:49 +0000 Received: from PH7PR11MB5863.namprd11.prod.outlook.com ([fe80::bdfa:2a87:8b69:fb8c]) by PH7PR11MB5863.namprd11.prod.outlook.com ([fe80::bdfa:2a87:8b69:fb8c%7]) with mapi id 15.20.5144.022; Sat, 9 Apr 2022 03:53:48 +0000 From: "Bob Feng" To: Gerd Hoffmann , Pedro Falcato , "Chen, Christine" , "Gao, Liming" CC: edk2-devel-groups-io , Pawel Polawski , Oliver Steffen , Rebecca Cran Subject: Re: [edk2-devel] [PATCH v3 0/3] BaseTools: fix gcc workaround Thread-Topic: [edk2-devel] [PATCH v3 0/3] BaseTools: fix gcc workaround Thread-Index: AQHYSAb5UxyqHBQ+vUyxqfSQS+csl6zf3owAgARhWoCAArZmoA== Date: Sat, 9 Apr 2022 03:53:48 +0000 Message-ID: References: <20220404093229.1971782-1-kraxel@redhat.com> <20220407101225.d2m2i4h2dsacaw57@sirius.home.kraxel.org> In-Reply-To: <20220407101225.d2m2i4h2dsacaw57@sirius.home.kraxel.org> Accept-Language: en-US X-Mentions: yuwei.chen@intel.com,gaoliming@byosoft.com.cn X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.401.20 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4765f6cd-fca7-4a04-2021-08da19dc8dd4 x-ms-traffictypediagnostic: DM6PR11MB2906:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BSAjvdL3zOeX+BqthpvK6xrPl42ANFYKyAV/VYnCWRdaKjjHj3TI3ZNId2B8OdEt2yL5TVKwaoBw+RDupPvPyz7mUBlomdb2gFKr5Ju4a+4Ns/CNP0Zf2Ml4A1EqUnBxQZunWiDGKIRrqMWtb3yE52grF+ZESiZi3Az7/vgzCZkW6oc2SzM5kaPDSQjzpEEjl7WklPHQqvr/HrHTPj39cLAQ7RX6RVBi1UHgQn0SFPMtxMUc/2jYiMTgoDNcHMoZY23vPHtkU2Sw7ozNsxTF2m8k9+SDkkvRKC4xTfBmUK5To/U4aurRw+f+bYmwNvZu68dI91JWgF4AVNEMI3RXXM+ZycO/cxwND9kqObEmfyba6z7QkqpWCLIzkPTeN7X8X1VRuhIKx6j7VjzwiVFKlY+FQE19xiJXSEWd/Zvm5Bq949ziZI9JwoLmtbmeKHmuHXWjlmmYA7+1GkMol5RVyc+B7i/+qoRfKZUXDVHB5o9e0sWWWZUW76OKRZopmeU3JnL3OpP2QlxsDQaVBAssy9PUwvyJ7BOI4ItEb0lgRiNFpw9mPOA0EMP4aoiY8CbNZLl0eXwKRigMIIN2pNtjMpHqkhSEV0qkUP1tO3O6Wk2I5sAV5itwDUPu1aYl/EGjVrnv54vnNxly5mo5IYjp4zwlBJwkA/GZcpvg4U95wNu13Flk2H0xLVwXne+nOXnvuJMawf7TFjBuLFNfFenUs5AhhLO3WUtaQ1sHA21tq/GQOYeTnDJkfO4GQ71XYSqVoD4KvNBa2OSvyQ88bgBkaaTL4IOpVCWvbFsLhxKY8+Y= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR11MB5863.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(966005)(2906002)(508600001)(38100700002)(82960400001)(8936002)(52536014)(9686003)(71200400001)(86362001)(6506007)(5660300002)(7696005)(54906003)(110136005)(122000001)(53546011)(55016003)(33656002)(4326008)(66946007)(83380400001)(66476007)(64756008)(66556008)(66446008)(8676002)(76116006)(186003)(38070700005)(26005)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?x/KwSeoalIDaJR7857Fs+gu9fbM1BpOqtio98yjbRTbfAhg98N0QPlk3rfmr?= =?us-ascii?Q?cTNOwVfqN+Kry8v8yFtIjjiIFoqa3X7Vpll/GJAI5HrQXynyWYOaxcLPjJyp?= =?us-ascii?Q?Ffa+gvUpn7VzRoJP6PC8W5/1txYCaYu6eqcLxqYsKTApVJo/lyXKlyLeqJ0L?= =?us-ascii?Q?OeA4y69kH87N47V0eLtYjBJetcnzjk7udnqxM58Lg4iQLnnjAmWlszTzWQaX?= =?us-ascii?Q?WZChOvxA2XHSCx97kruRKQ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=?us-ascii?Q?AtbaBLKFAq+MuEJKJZGnaIa1zagd3Q0lccfvSk6QfXDdWGwt+xthW/iadZYk?= =?us-ascii?Q?rI6JfH0DHyalpX/kUGQEdPyYQXo0w/ykPZMQEVqIEJQU+2UmQSdHvHkNFUvq?= =?us-ascii?Q?lcf2BGqpbnd0BQEZSR4hwp6wA76/lG8/FCIDiwp4zyM1JUWZKZ5vsuRLphU4?= =?us-ascii?Q?wGRYddljAKWLtXItAYKdsX5QZFnuFcOQVCvO/FqapaX7Ko7htOXhlElUVQrd?= =?us-ascii?Q?Aiail6/NV4LN9sghJ3pIwgWQzrslUr1uOayUqQPJAjQY3KOKf9kEQZSeU2ww?= =?us-ascii?Q?wQ8WMxSEN8OtTYIPKJQlWkJrrt4tP8a2jY66fjkvH5T6LKky+07doWQFSeIM?= =?us-ascii?Q?xmq1f11ValcWsPQDg06nboalohk1FPfwytKzVY7f99ikhRjM+5jvUzoYj8Pj?= =?us-ascii?Q?dkQMEnI1TDQphoDCjx3MeZ/NWJj9kd4Tidv5CrvXFoiQq3u7J8uN5o2QzMz/?= =?us-ascii?Q?cppZrE5VgHf5HaIvma9lSofyDZYlrPjVIlqkjiUSHnMLNr7S4cGG01U8rF7l?= =?us-ascii?Q?FYSJbvdq5v9QQbDqvpz5nfaNWCXI+MCfl9kuumKApQg76CqnP7ISoi4+dlRK?= =?us-ascii?Q?ZA5U2SNeHw=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5863.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4765f6cd-fca7-4a04-2021-08da19dc8dd4 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2022 03:53:48.7773 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Iz+i6PY+FgjKFPT1YQAScl2UrWvAQkGtz7vP4XxcJTZPy/H9JJ8KZAaHLpxOdRXliM3cCALiktv3ELMNo0Sb4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2906 Return-Path: bob.c.feng@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Gerd, Your patches are great but I think we can't take them because of the incomp= atible license. I think the new Toolchain definition, like GCC12, can not resolve this issu= e because Toolchain is not used for building BaseTools. So I'd prefer the second option of using 'gcc -dumpversion'. And also we have the task to convert the tools implemented by C to python i= mplementation. After we have done that, there will be no BaseTools build is= sue. https://github.com/tianocore/edk2-staging/tree/PyBaseTools @Gao, Liming @Chen, Christine Could you review the corresponding patch? Thanks, Bob -----Original Message----- From: Gerd Hoffmann =20 Sent: Thursday, April 7, 2022 6:12 PM To: Pedro Falcato Cc: edk2-devel-groups-io ; Chen, Christine ; Gao, Liming ; Pawel Polawski ; Feng, Bob C ; Oliver Steffen ; Rebecca Cran Subject: Re: [edk2-devel] [PATCH v3 0/3] BaseTools: fix gcc workaround On Mon, Apr 04, 2022 at 04:18:56PM +0100, Pedro Falcato wrote: > Hi Gerd, >=20 > These patches are a great idea but I don't know if we can take GPLv2=20 > code like that. Are they even mergeable into the main edk2 repo (as=20 > it's not compatible with BSD-2-clause)? It's build system, doesn't end up being linked into firmware code, so not s= ure license compatibility is actually a problem here. In any case I strongly prefer to fix that in some automatic way which does = *not* require a new GCC12 tool chain definition. So, any comments how to move forward with this? Can we take the series as-is? If not, other suggestions? Second-best idea I've seen on the list is using 'gcc -dumpversion'. Is it an option to just raise the minimum required gcc version to something= newer? gcc5 was released almost 7 years ago ... take care, Gerd