From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=216.205.24.162; helo=us-smtp-delivery-162.mimecast.com; envelope-from=eugene@hp.com; receiver=edk2-devel@lists.01.org Received: from us-smtp-delivery-162.mimecast.com (us-smtp-delivery-162.mimecast.com [216.205.24.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 76CA82194EB70 for ; Thu, 21 Mar 2019 03:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hp.com; s=mimecast20180716; t=1553165033; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QWjH3Raqu6CDEwOiLlvAEoJVj3JMPyRX0eUTMwqzdxs=; b=hQAs2sdbsED4JXxnF3MJZ+mnMGX3h67vY+eP2jG70w+mpcLDz1TFbTZyIBXcm8Fdk7rU2wE04b/2Znmx4YuFYtAGt8PhOeNbeWNEokdzxDKtJH3PuAk3oqpA/B1kHsxthmblOJ2VJrM0MDCgC9L7Zgj3Ty/BRiV58pLmUqyTbMI= Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-co1nam04lp2059.outbound.protection.outlook.com [104.47.45.59]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-3-uvOYD3o5Mj6ZB15HOWP_RA-1; Thu, 21 Mar 2019 06:43:49 -0400 Received: from CS1PR8401MB1189.NAMPRD84.PROD.OUTLOOK.COM (10.169.97.20) by CS1PR8401MB0342.NAMPRD84.PROD.OUTLOOK.COM (10.169.14.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Thu, 21 Mar 2019 10:43:47 +0000 Received: from CS1PR8401MB1189.NAMPRD84.PROD.OUTLOOK.COM ([fe80::54db:23c0:d6a8:589b]) by CS1PR8401MB1189.NAMPRD84.PROD.OUTLOOK.COM ([fe80::54db:23c0:d6a8:589b%3]) with mapi id 15.20.1709.017; Thu, 21 Mar 2019 10:43:47 +0000 From: "Cohen, Eugene" To: "Gao, Liming" , "edk2-devel@lists.01.org" Thread-Topic: Debugging why Build Rebuilds Something Thread-Index: AdTfyl12AWpLEHd6RKm3MDB6Fhh7RwAAgmXwAACjt7AAAE1pUA== Date: Thu, 21 Mar 2019 10:43:47 +0000 Message-ID: References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E4089FC@SHSMSX104.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [75.174.144.62] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 16abe6b4-3c34-4bbb-4407-08d6adea194f x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:CS1PR8401MB0342; x-ms-traffictypediagnostic: CS1PR8401MB0342: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0983EAD6B2 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(136003)(366004)(376002)(346002)(39860400002)(6602003)(199004)(189003)(13464003)(316002)(74316002)(54896002)(93156006)(8936002)(9686003)(110136005)(81156014)(8676002)(6436002)(97736004)(81166006)(7736002)(2940100002)(68736007)(52536014)(53936002)(105586002)(2906002)(14444005)(86362001)(71190400001)(486006)(33656002)(11346002)(256004)(186003)(53546011)(26005)(6506007)(229853002)(6306002)(478600001)(5660300002)(99286004)(446003)(2501003)(102836004)(71200400001)(476003)(7696005)(55016002)(236005)(3846002)(6116002)(106356001)(606006)(14454004)(66066001)(76176011)(790700001)(6246003)(25786009); DIR:OUT; SFP:1102; SCL:1; SRVR:CS1PR8401MB0342; H:CS1PR8401MB1189.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: YxzQetyxxl98ZpGYe/EMBYPoEEWQHekCy4qjnBi/QvHwDnXixe6LPZG0QE3JHPCtFMah5GZCjtiEhtM4VDwWd5KBLKpmefg5SdZN+vUObKLO9+AvMQDN+VMx3MlG5AbEgHrJYX+o3QuMqorIY+wtI9NbTJL/HcFdX2BmiezP8OtvYKH3GD+jyi8ScgtjCvn6Fcj63fvjvLKmrWCUEfPRap04ltD77hNJS+ikgqRrYuNDATetiqZ6ioGlZbRC3mcO+cgEMxLulbrZ2r5n8BXQM8fxr9JSXgo+GfnT+h35JeOz4RMwK4zmiQwymKsSxEQI1Vtu/0OD3X7Ah7eJrtrrZg97/+CDjTN4WwGma8BCjCDuxxx0dsVJLCJdHmjl8SYQlD11UbnTn3xL0qSzux89o/ZKjgHzLI9b3PDajRJeTEE= MIME-Version: 1.0 X-OriginatorOrg: hp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16abe6b4-3c34-4bbb-4407-08d6adea194f X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2019 10:43:47.6059 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ca7981a2-785a-463d-b82a-3db87dfc3ce6 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0342 X-MC-Unique: uvOYD3o5Mj6ZB15HOWP_RA-1 X-Mimecast-Spam-Score: 0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: Debugging why Build Rebuilds Something X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Mar 2019 10:43:55 -0000 Content-Language: en-US Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Liming - thank you - this technique of diff'ing the Makefiles immediately i= dentified the issue. We were defining an environment variable that contained date/time values th= at was used in tools_def resulting in all this unnecessary rebuild behavior= . Thanks a ton! Eugene From: Cohen, Eugene Sent: Thursday, March 21, 2019 4:15 AM To: 'Gao, Liming' ; edk2-devel@lists.01.org Subject: RE: Debugging why Build Rebuilds Something Great - I will try this now, thanks Liming! From: Gao, Liming > Sent: Thursday, March 21, 2019 4:02 AM To: Cohen, Eugene >; edk2-devel@lists.0= 1.org Subject: RE: Debugging why Build Rebuilds Something Could you help check the timestamp of AutoGen files in OpenSslLib output di= rectory? After the first build, copy OpenSslLib output directory to another director= y After the second build, compare the output directory between two builds, pl= ease check whether there is the difference for AutoGen.h and Makefile. If n= o difference, please directly trig Makefile to see whether rebuild happen. = If rebuild happen, it may be the issue in Makefile. Then, further check Mak= efile. Thanks Liming >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >Cohen, Eugene >Sent: Thursday, March 21, 2019 5:50 PM >To: edk2-devel@lists.01.org >Subject: [edk2] Debugging why Build Rebuilds Something > >I'm experiencing an annoying problem where OpenSslLib is constantly being >rebuilt. I don't think I've done anything unusual or different to it but >nevertheless it gets built almost every time I rebuild the same platform. > >I don't believe any source file timestamps are changing so I think this ma= y be >the build.py tool deciding to re-generate stuff. (As a side note: does the >Autogen process only run when changes are detected on dependencies? I >assume this must be the case otherwise everything would get rebuilt, right= ?) > >Is there a debug flag that can be turned on to see why build might choose = to >rebuild something? The normal build report and debug flags don't see to >provide the information for "why" something is being rebuilt. > >Thanks, > >Eugene > >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel