From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: farrah.chen@intel.com) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by groups.io with SMTP; Wed, 08 May 2019 23:04:51 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2019 23:04:50 -0700 X-ExtLoop1: 1 Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 08 May 2019 23:04:50 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 8 May 2019 23:04:49 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 8 May 2019 23:04:49 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.33]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.10]) with mapi id 14.03.0415.000; Thu, 9 May 2019 14:04:42 +0800 From: "Chen, Farrah" To: Gary Lin 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" Thread-Topic: [edk2-devel] OVMF will not start to build using "OvmfPkg/build.sh -a X64 -n 40" Thread-Index: AdUGDyS+XOvl88AuQFmC1Y1te2Ukkf//h+GA//94ScCAAJSxAP//WeaA Date: Thu, 9 May 2019 06:04:42 +0000 Message-ID: <1B925CC0CD9F3341B32D442251E7E1DC3E2933C9@SHSMSX104.ccr.corp.intel.com> References: <1B925CC0CD9F3341B32D442251E7E1DC3E2931EC@SHSMSX104.ccr.corp.intel.com> <20190509032023.GA28997@GaryWorkstation> <1B925CC0CD9F3341B32D442251E7E1DC3E2932BC@SHSMSX104.ccr.corp.intel.com> <20190509040650.GC28997@GaryWorkstation> In-Reply-To: <20190509040650.GC28997@GaryWorkstation> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYmZiMWNlZGItOGVjZi00N2IyLWFkMmMtODE2NzVlOTdiMWM2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUjZ5K050Vjcwd0VvdGZQSmJNTU5CeVhlb3V1dHdNNUhxRHZLOHhzTWs1SlFqMEpcL1dNYzVMK2FMVDdrcVRSa1EifQ== x-ctpclassification: CTP_NT x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: farrah.chen@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Gary, Thanks a lot, we can build successfully with this method. BTW, will this patch be merged to upstream? Thanks, Fan -----Original Message----- From: Gary Lin [mailto:glin@suse.com]=20 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/buil= d.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? >=20 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=20 > workspace /home/fan/edk2/BaseTools Loading previous configuration from= =20 > /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 >=20 >=20 > Thanks, > Fan >=20 >=20 >=20 > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of=20 > Gary Lin > Sent: Thursday, May 9, 2019 11:20 AM > To: devel@edk2.groups.io; Chen, Farrah > Cc: Hao, Xudong ; Wei, Danmei=20 > > Subject: Re: [edk2-devel] OVMF will not start to build using "OvmfPkg/bu= ild.sh -a X64 -n 40" >=20 > On Thu, May 09, 2019 at 02:31:13AM +0000, Chen, Farrah wrote: > > Hi, > >=20 > > We build the latest OVMF and found that it doesn't start to build usin= g "OvmfPkg/build.sh -a X64 -n 40" actually. > >=20 > > 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. > >=20 > > log: > > [vmm@vmm-build edk2]$ OvmfPkg/build.sh -a X64 -n 40 Initializing=20 > > workspace /home/fan/edk2/BaseTools Loading previous configuration=20 > > 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]$ > >=20 > > We use the latest commit: 792f0d4f12ad5c01afdf9c92df8c479ff0f19a79, an= d we found the first commit has such issue is df7c81b5b219c9aee776baa466dd6= 4c9d318dd80. > > Do you have any advice? > >=20 > TestUtilModule() returned the opposite value. > For the shell, 0 for good, and 1 for bad. >=20 > Gary Lin >=20 > >=20 > > Thanks, > > Fan > >=20 > >=20 > >=20 > >=20 > >=20 >=20 >=20 >=20 >=20