From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: suse.com, ip: 195.135.221.5, mailfrom: glin@suse.com) Received: from smtp.nue.novell.com (smtp.nue.novell.com [195.135.221.5]) by groups.io with SMTP; Wed, 08 May 2019 23:20:36 -0700 Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Thu, 09 May 2019 08:20:34 +0200 Received: from GaryWorkstation (nwb-a10-snat.microfocus.com [10.120.13.202]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Thu, 09 May 2019 07:20:28 +0100 Date: Thu, 9 May 2019 14:20:23 +0800 From: "Gary Lin" To: "Chen, Farrah" Cc: "devel@edk2.groups.io" , "Hao, Xudong" , "Wei, Danmei" , "Gao, Liming" Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40" Message-ID: <20190509062023.GE28997@GaryWorkstation> References: <1B925CC0CD9F3341B32D442251E7E1DC3E2931EC@SHSMSX104.ccr.corp.intel.com> <20190509032023.GA28997@GaryWorkstation> <1B925CC0CD9F3341B32D442251E7E1DC3E2932BC@SHSMSX104.ccr.corp.intel.com> <20190509040650.GC28997@GaryWorkstation> <1B925CC0CD9F3341B32D442251E7E1DC3E2933C9@SHSMSX104.ccr.corp.intel.com> MIME-Version: 1.0 In-Reply-To: <1B925CC0CD9F3341B32D442251E7E1DC3E2933C9@SHSMSX104.ccr.corp.intel.com> User-Agent: Mutt/1.11.3 (2019-02-01) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 09, 2019 at 06:04:42AM +0000, Chen, Farrah wrote: > Hi Gary, > > Thanks a lot, we can build successfully with this method. > BTW, will this patch be merged to upstream? > I already reported the issue to bugzilla of the original patch: https://bugzilla.tianocore.org/show_bug.cgi?id=1582 The maintainer will fix it. Cheers, Gary Lin > > Thanks, > Fan > > > > > -----Original Message----- > From: Gary Lin [mailto:glin@suse.com] > Sent: Thursday, May 9, 2019 12:07 PM > To: Chen, Farrah > Cc: devel@edk2.groups.io; Hao, Xudong ; Wei, Danmei > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40" > > On Thu, May 09, 2019 at 03:29:09AM +0000, Chen, Farrah wrote: > > Yes, thanks, my return value is 1. > > And how can we build ovmf correctlly? The build steps have been updated? > > > You can tweak TestUtilModule() in edksetup.sh like this: > > function TestUtilModule() > { > if ( $PYTHON_COMMAND -c "import distutils.util" >/dev/null 2>&1 );then > - return 1 > + return 0 > else > echo Error: "No module named 'distutils.util" > - return 0 > + return 1 > fi > } > > Cheers, > > Gary Lin > > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing > > workspace /home/fan/edk2/BaseTools Loading previous configuration from > > /home/fan/edk2/Conf/BuildEnv.sh > > WORKSPACE: /home/fan/edk2 > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools > > CONF_PATH: /home/fan/edk2/Conf > > [vmm@vmm-build edk2]$ echo $? > > 1 > > > > > > Thanks, > > Fan > > > > > > > > -----Original Message----- > > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > > Gary Lin > > Sent: Thursday, May 9, 2019 11:20 AM > > To: devel@edk2.groups.io; Chen, Farrah > > Cc: Hao, Xudong ; Wei, Danmei > > > > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40" > > > > On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote: > > > Hi, > > > > > > We build the latest OVMF and found that it doesn't start to build using "OvmfPkg/build.sh -a X64 -n 40" actually. > > > > > > Step: > > > git clone https://github.com/tianocore/edk2.git > > > cd edk2 > > > git submodule init > > > git submodule update -recursive > > > OvmfPkg/build.sh -a X64 -n 40 > > > Then it didn't start to build. > > > > > > log: > > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing > > > workspace /home/fan/edk2/BaseTools Loading previous configuration > > > from /home/fan/edk2/Conf/BuildEnv.sh > > > WORKSPACE: /home/fan/edk2 > > > EDK_TOOLS_PATH: /home/fan/edk2/BaseTools > > > CONF_PATH: /home/fan/edk2/Conf > > > [vmm@vmm-build edk2]$ > > > > > > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, and we found the first commit has such issue is df7c81b5b219c9aee776baa466dd64c9d318dd80. > > > Do you have any advice? > > > > > TestUtilModule() returned the opposite value. > > For the shell, 0 for good, and 1 for bad. > > > > Gary Lin > > > > > > > > Thanks, > > > Fan > > > > > > > > > > > > > > > > > > > > > > > >