* Debugging why Build Rebuilds Something @ 2019-03-21 9:49 Cohen, Eugene 2019-03-21 10:01 ` Gao, Liming 0 siblings, 1 reply; 4+ messages in thread From: Cohen, Eugene @ 2019-03-21 9:49 UTC (permalink / raw) To: edk2-devel@lists.01.org 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 may 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Debugging why Build Rebuilds Something 2019-03-21 9:49 Debugging why Build Rebuilds Something Cohen, Eugene @ 2019-03-21 10:01 ` Gao, Liming 2019-03-21 10:15 ` Cohen, Eugene 0 siblings, 1 reply; 4+ messages in thread From: Gao, Liming @ 2019-03-21 10:01 UTC (permalink / raw) To: Cohen, Eugene, edk2-devel@lists.01.org Could you help check the timestamp of AutoGen files in OpenSslLib output directory? After the first build, copy OpenSslLib output directory to another directory After the second build, compare the output directory between two builds, please check whether there is the difference for AutoGen.h and Makefile. If no difference, please directly trig Makefile to see whether rebuild happen. If rebuild happen, it may be the issue in Makefile. Then, further check Makefile. 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 may 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Debugging why Build Rebuilds Something 2019-03-21 10:01 ` Gao, Liming @ 2019-03-21 10:15 ` Cohen, Eugene 2019-03-21 10:43 ` Cohen, Eugene 0 siblings, 1 reply; 4+ messages in thread From: Cohen, Eugene @ 2019-03-21 10:15 UTC (permalink / raw) To: Gao, Liming, edk2-devel@lists.01.org Great - I will try this now, thanks Liming! From: Gao, Liming <liming.gao@intel.com> Sent: Thursday, March 21, 2019 4:02 AM To: Cohen, Eugene <eugene@hp.com>; edk2-devel@lists.01.org Subject: RE: Debugging why Build Rebuilds Something Could you help check the timestamp of AutoGen files in OpenSslLib output directory? After the first build, copy OpenSslLib output directory to another directory After the second build, compare the output directory between two builds, please check whether there is the difference for AutoGen.h and Makefile. If no difference, please directly trig Makefile to see whether rebuild happen. If rebuild happen, it may be the issue in Makefile. Then, further check Makefile. 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<mailto: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 may 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<mailto:edk2-devel@lists.01.org> >https://lists.01.org/mailman/listinfo/edk2-devel<https://lists.01.org/mailman/listinfo/edk2-devel> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Debugging why Build Rebuilds Something 2019-03-21 10:15 ` Cohen, Eugene @ 2019-03-21 10:43 ` Cohen, Eugene 0 siblings, 0 replies; 4+ messages in thread From: Cohen, Eugene @ 2019-03-21 10:43 UTC (permalink / raw) To: Gao, Liming, edk2-devel@lists.01.org Liming - thank you - this technique of diff'ing the Makefiles immediately identified the issue. We were defining an environment variable that contained date/time values that 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' <liming.gao@intel.com>; edk2-devel@lists.01.org Subject: RE: Debugging why Build Rebuilds Something Great - I will try this now, thanks Liming! From: Gao, Liming <liming.gao@intel.com<mailto:liming.gao@intel.com>> Sent: Thursday, March 21, 2019 4:02 AM To: Cohen, Eugene <eugene@hp.com<mailto:eugene@hp.com>>; edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org> Subject: RE: Debugging why Build Rebuilds Something Could you help check the timestamp of AutoGen files in OpenSslLib output directory? After the first build, copy OpenSslLib output directory to another directory After the second build, compare the output directory between two builds, please check whether there is the difference for AutoGen.h and Makefile. If no difference, please directly trig Makefile to see whether rebuild happen. If rebuild happen, it may be the issue in Makefile. Then, further check Makefile. 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<mailto: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 may 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<mailto:edk2-devel@lists.01.org> >https://lists.01.org/mailman/listinfo/edk2-devel<https://lists.01.org/mailman/listinfo/edk2-devel> ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-21 10:43 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-03-21 9:49 Debugging why Build Rebuilds Something Cohen, Eugene 2019-03-21 10:01 ` Gao, Liming 2019-03-21 10:15 ` Cohen, Eugene 2019-03-21 10:43 ` Cohen, Eugene
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox