From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web10.4709.1586313656103609452 for ; Tue, 07 Apr 2020 19:40:56 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=036735f001=derek.lin2@hpe.com) Received: from pps.filterd (m0150244.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0382bw18029209 for ; Wed, 8 Apr 2020 02:40:55 GMT Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 3091pd9gs5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 08 Apr 2020 02:40:55 +0000 Received: from G4W10205.americas.hpqcorp.net (g4w10205.houston.hpecorp.net [16.207.82.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3427.houston.hpe.com (Postfix) with ESMTPS id 910C457 for ; Wed, 8 Apr 2020 02:40:54 +0000 (UTC) Received: from G4W10204.americas.hpqcorp.net (2002:10cf:5210::10cf:5210) by G4W10205.americas.hpqcorp.net (2002:10cf:520f::10cf:520f) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Apr 2020 02:40:54 +0000 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (15.241.52.10) by G4W10204.americas.hpqcorp.net (16.207.82.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 8 Apr 2020 02:40:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QxH0i9kmTwAhVV0pQLpwn8IHT3RQaGOVgvFyPMcliMX5RZqIA4Cw1+SzV8Anuthx3FuoEfw7+zc6wSxF5347M0pjx/bgisS38mwIKVSQjo961gZWOLAVAsGI7bxPEq9phttZws74Icq6c4cfRea8QLCmOhsCrxGt7otv7CNOvhQxssqq1Pa7ch60HhzC1dT9MbtwZLzKJx9scLfZ9HyQnd28QVXbauWXyTB2WhaLtBHIXpOd+WygpvV+Lyzo8VuttckzeVOCBt/T17bENZATnxeKYo926OE0Etjg/LHgaMbcW+HV57GYOEgGon5loXWSgqjaBryHgv9rpMuloKf8uQ== 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-SenderADCheck; bh=DR+TxEixeIuomVUBr95z0b7hF8fYlIP8mVnGMJfCpu0=; b=RBm2V+Kd4m+avtW5199YptMQgRAN6uSztO+kjBEZUxOH79tx3OCdDtRceVjUM44RdQGiUeSgxYG8tpo2Zyf0awQp7XhP8gDeViVzNZmdupaua7gQePscwFUjwSYXCgNx/1RzzoLAQex0SsByEhuAVEr+VzlZcVONwvkA7zakLUl5xN2tLKO76lD4g2IBfujs5Sz5L+UlHXGliK471l/CM8IZ8RUYXqIC1cBEkPRE1PEP1LDxDwF3FjMCnDym8+koPcbj/v3xsmeNZmYOW4tjLgmpTDeUbuI/jtjJW4KaS9ljZIRolDny77D5f1nQU4Ie9wcf1SN+7QXYWCC2MvHFdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from DF4PR8401MB0955.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::11) by DF4PR8401MB0876.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Wed, 8 Apr 2020 02:40:51 +0000 Received: from DF4PR8401MB0955.NAMPRD84.PROD.OUTLOOK.COM ([fe80::441e:61a:d8e9:f204]) by DF4PR8401MB0955.NAMPRD84.PROD.OUTLOOK.COM ([fe80::441e:61a:d8e9:f204%10]) with mapi id 15.20.2900.015; Wed, 8 Apr 2020 02:40:51 +0000 From: "Lin, Derek (HPS SW)" To: "devel@edk2.groups.io" , "bret.barkelew@microsoft.com" Thread-Topic: [EXTERNAL] [edk2-devel] Basetools fail without error message due to PCD type differs in architecture. Thread-Index: AQHWC77VhtNEpxXJS0O7ez3pXmML2ahuNPaAgABJkIA= Date: Wed, 8 Apr 2020 02:40:51 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [1.171.104.224] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a57c1ec3-3961-423a-92bb-08d7db6640f2 x-ms-traffictypediagnostic: DF4PR8401MB0876: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1107; x-forefront-prvs: 0367A50BB1 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0955.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFTY:;SFS:(10019020)(39860400002)(136003)(366004)(346002)(376002)(396003)(55016002)(186003)(66556008)(66446008)(7696005)(66946007)(66476007)(64756008)(9686003)(26005)(52536014)(86362001)(15650500001)(316002)(76116006)(2906002)(6506007)(966005)(53546011)(478600001)(110136005)(33656002)(8676002)(5660300002)(81156014)(76236002)(9326002)(81166006)(71200400001)(8936002);DIR:OUT;SFP:1102; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mELFrZjuu1ko+geucnpjkDgY93jmOv7qZuSpK0usrQUdu9vdXyKZgwWi0TjJsMexI0xB37CeXdOAG0PWCw4PMUYyBvrfgJ6XIBuiROhkYYY+JzpR+Gwzy3knJAZTQ38qakVBu+J4MPtsa4fnQlzPCQjE+rO+IsBFgTRI5NoKFOXpLTRAgTulTwhq7l7cuAEjHFjDA09XtYtaOgemvtjsYkLj9jH5wMJHMwadI/bc2tI1UoZWhacpVNX5p3F6frnhi5eKHa28wONrxI2LonwsHBqCciAhPKIx9T4KmRBNJvHedWommhLUm4Nm/Vyf0YyDUBUIIrrok/DkPYklSvPsaFEhRxp2xJWSr1m9OQ1z9GU9EqJ8z9MVAgF16PTsRCc6brFOdAVIsEvHB5/UJDWE3SVOPj8IEhkrQB5sryRAm1ujHtaJv6X+s6rkNaCW2akuY6anoSt6i9yZu/AUZX3TlLS0PxRZX66k+bVU36q8xIQHfHT4MBvHaj9BGgzIhCAbWPUyFQ0rZLYIpv1s7FrSyA== x-ms-exchange-antispam-messagedata: E1DPevBG9JNrklvYIWHryQvSfcDfKQaBy8u22YV61wZd7YzfhNgdBfQJVGyVU5VgidSx0xc0mgyLhC06cGSj7UCHDtN4O/VHPq9GMf/2+KBp2RD1c77Kprb4m1GfHdducQcsFi+fn6YUgQqILgmJkg== x-ms-exchange-transport-forked: True X-MS-Exchange-CrossTenant-Network-Message-Id: a57c1ec3-3961-423a-92bb-08d7db6640f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2020 02:40:51.7681 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wMnmosansbKwEeEQgpytw88ZE2F40Tg4C5r9nANNhWpkHdF2K4ec6rGrZO2QSea4u1oM9kGgtov5bRmpqIrXdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0876 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 12 URL's were un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 Subject: Re: [edk2-devel] Basetools fail without error message due to PCD type differs in architecture. X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-07_10:2020-04-07,2020-04-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=687 lowpriorityscore=0 clxscore=1015 mlxscore=0 spamscore=0 phishscore=0 malwarescore=0 impostorscore=0 bulkscore=0 adultscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004080015 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DF4PR8401MB09557F87A1A9D7532961064DC2C00DF4PR8401MB0955_" --_000_DF4PR8401MB09557F87A1A9D7532961064DC2C00DF4PR8401MB0955_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Bret, Thanks for your feedback. I'm very sorry that I didn't describe it clearly= . The Basetools just "crash" in the configuration. The Basetools crash witho= ut any information, then build stops. I've looked into the BaseTools code, the python code crash, during the gen= eration of PCD database for IA32. I'm not sure if the PCD spec allows different PCD type in different archit= ectures. If the spec allows it, the build needs to be fixed and make sure it works.= I remember the dynamic PCD database carry from PEI to DXE. And I don't thi= nk that work if PEI is FixedAtBuild while DXE is Dyanamic. In my opinion, this configuration should come to a build failure. And defi= ne the error in PCD spec. Thanks, Derek From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Bret= Barkelew via groups.io Sent: Wednesday, April 8, 2020 5:48 AM To: devel@edk2.groups.io; Lin, Derek (HPS SW) Subject: Re: [EXTERNAL] [edk2-devel] Basetools fail without error message = due to PCD type differs in architecture. This seems like a legitimate configuration. I don't know that it should be= considered an error. A warning, maybe. This is also what the build report is perfect for finding. Did you check t= he PCD build report when debugging? - Bret From: Lin, Derek (HPS SW) via groups.io Sent: Sunday, April 5, 2020 7:55 PM To: devel@edk2.groups.io Subject: [EXTERNAL] [edk2-devel] Basetools fail without error message due = to PCD type differs in architecture. We've found a Basetool issue. When a PCD is FixAtBuild at IA32 and Dynamic is at X64, there is no error = message in this situation and it's very difficult to find the root cause. Here's example to see the issue: https://github.com/howdou/edk2/commit/333c5f33adc652308355ec100f7f385d5523= 92fa I think it is not allowed to have FixAtBuild at IA32 and Dynamic at X64. B= aseTool should have an error message for this. --_000_DF4PR8401MB09557F87A1A9D7532961064DC2C00DF4PR8401MB0955_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Bret,

 

Thanks for your feedb= ack. I’m very sorry that I didn’t describe it clearly.

 

The Basetools just &#= 8220;crash” in the configuration. The Basetools crash without any inf= ormation, then build stops.

I’ve looked int= o the BaseTools code, the python code crash, during the generation of PCD d= atabase for IA32.

 

 

I’m not sure if= the PCD spec allows different PCD type in different architectures.

If the spec allows it= , the build needs to be fixed and make sure it works. I remember the dynami= c PCD database carry from PEI to DXE. And I don’t think that work if = PEI is FixedAtBuild while DXE is Dyanamic.

 

In my opinion, this c= onfiguration should come to a build failure. And define the error in PCD sp= ec.

 

Thanks,

Derek

 

From: devel@edk2.groups.io [mailto:devel@edk= 2.groups.io] On Behalf Of Bret Barkelew via groups.io
Sent: Wednesday, April 8, 2020 5:48 AM
To: devel@edk2.groups.io; Lin, Derek (HPS SW) <derek.lin2@hpe.co= m>
Subject: Re: [EXTERNAL] [edk2-devel] Basetools fail without error m= essage due to PCD type differs in architecture.

 

This seems like a legitimate configuration. I don&#= 8217;t know that it should be considered an error. A warning, maybe.

 

This is also what the build report is perfect for f= inding. Did you check the PCD build report when debugging?

 

- Bret

 

 

We've found a Basetool issue. 
When a PCD is FixAtBuild at IA32 and Dynamic is at X64, there is no error = message in this situation and it's very difficult to find the root cause.
Here's example to see the issue:
h= ttps://github.com/howdou/edk2/commit/333c5f33adc652308355ec100f7f385d552392= fa

I think it is not allowed to have FixAtBuild at IA32 and Dynamic at X64. B= aseTool should have an error message for this.

 

--_000_DF4PR8401MB09557F87A1A9D7532961064DC2C00DF4PR8401MB0955_--