From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-00154904.pphosted.com (mx0a-00154904.pphosted.com [148.163.133.20]) by mx.groups.io with SMTP id smtpd.web10.4303.1588067558976956626 for ; Tue, 28 Apr 2020 02:52:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@dell.com header.s=smtpout1 header.b=hR/O7XTR; spf=pass (domain: dell.com, ip: 148.163.133.20, mailfrom: navdeeppal.singh@dell.com) Received: from pps.filterd (m0170392.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03S9nFRq009884 for ; Tue, 28 Apr 2020 05:52:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=smtpout1; bh=cyz7p+LHPivg2PbEEmCKQHyfL9iAEmxqu4RJq7AeVVY=; b=hR/O7XTRwMNrlKz8moTu+G1ftSw3/r/vxjPvdkzHp7B80ePBaDeEwNJ6g44r7PQn9sfW SMLbOCh3BP23+dTZtCCTQJz9X9lVyOGHkO4kOtXv0oaYd+8Bq+12hNcd5hCoRM/lphHq 0zrKDYDZmtkIxnoNw1Fg0GSquFFxcjUx2Kph2yVOMGTx8H/lJs0RMXt8A6yiS86VMw3+ 4SPd2V84mosrkEOf5qBsqoY7Ys5DkZjRYkNWJn13WpDKBJygQLU4yNDp1CAfCy7qAht1 Q43HHHmi93d+AslVRhAr4agDK8GZUQPxwn2SlA/DtKBJ2GXzn5k0HJ1GFYf2EqKC0OM+ qQ== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 30mgce6yjq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 28 Apr 2020 05:52:38 -0400 Received: from pps.filterd (m0144104.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03S9qXIM083629 for ; Tue, 28 Apr 2020 05:52:37 -0400 Received: from ausxippc101.us.dell.com (ausxippc101.us.dell.com [143.166.85.207]) by mx0b-00154901.pphosted.com with ESMTP id 30pd3fkcyv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 28 Apr 2020 05:52:37 -0400 X-LoopCount0: from 10.166.136.215 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,346,1549951200"; d="scan'208";a="1382457724" From: To: , , CC: , , , Subject: Re: [edk2-devel] EDK2 environment setup Thread-Topic: [edk2-devel] EDK2 environment setup Thread-Index: AQHWHUIulOjOl1N6N0ujJQB1wErMM6iOSs7Q Date: Tue, 28 Apr 2020 09:52:31 +0000 Message-ID: References: <54a4f7933a1c4c0ea0eb34b43b837fb2@BLRX13MDC402.AMER.DELL.COM> <476a558a166b44e993d60c156fefd72a@BLRX13MDC402.AMER.DELL.COM> <71f3d979500348cbbe263445163583b5@BLRX13MDC402.AMER.DELL.COM> <20200428094756.GB21486@vanye> In-Reply-To: <20200428094756.GB21486@vanye> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Enabled=True; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SiteId=945c199a-83a2-4e80-9f8c-5a91be5752dd; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Owner=Navdeeppal_Singh@Dell.com; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SetDate=2020-04-28T09:52:27.4422479Z; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Name=External Public; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Application=Microsoft Azure Information Protection; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_ActionId=30f0731e-2a4e-4481-b530-1c62ec40c6f3; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Extended_MSFT_Method=Manual x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [143.166.170.235] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-28_05:2020-04-27,2020-04-28 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 suspectscore=0 spamscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 clxscore=1015 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004280083 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 clxscore=1015 priorityscore=1501 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004280083 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thank you. Able to build Emulator pkg after adding VS2019 build options. Regards, Navdeep -----Original Message----- From: Leif Lindholm =20 Sent: Tuesday, April 28, 2020 3:18 PM To: devel@edk2.groups.io; guomin.jiang@intel.com Cc: Singh, Navdeeppal; spbrogan@outlook.com; sean.brogan@microsoft.com; Br= et.Barkelew@microsoft.com; jim.slaughter@sage-micro.com Subject: Re: [edk2-devel] EDK2 environment setup [EXTERNAL EMAIL]=20 My bad, was checking on a different computer than I thought where the edk2 checkout wasn't up to date. Still, gives me a way to close out the st= ackoverflow question, so thanks :) / Leif On Tue, Apr 28, 2020 at 09:35:22 +0000, Guomin Jiang wrote: > It is known issue and can refer https://bugzilla.tianocore.org/show_bug.= cgi?id=3D2637 for detail. >=20 > It have been fixed in newest repository, you can update to the newest re= pository and try again. >=20 > From: devel@edk2.groups.io On Behalf Of=20 > Navdeeppal.Singh@dell.com > Sent: Tuesday, April 28, 2020 5:15 PM > To: spbrogan@outlook.com; devel@edk2.groups.io;=20 > sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com;=20 > jim.slaughter@sage-micro.com > Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup >=20 >=20 > Hi, >=20 > Yes I am using edksetup.bat. >=20 > I was able to fix VFR compiler after making path changes. >=20 > And I was able to build MdeModulePkg Successfully. >=20 > But while building Emulator Pkg. I see the following Linker Error. Do I = need to build some other module before building Emulator Pkg. >=20 >=20 >=20 > [cid:image001.jpg@01D61D83.5E9F0750] >=20 >=20 >=20 > Regards, >=20 > Navdeep >=20 > -----Original Message----- > From: Sean Brogan > > Sent: Tuesday, April 28, 2020 2:28 AM > To: devel@edk2.groups.io; Singh,=20 > Navdeeppal;=20 > sean.brogan@microsoft.com;=20 > Bret.Barkelew@microsoft.com;=20 > jim.slaughter@sage-micro.com > Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup >=20 >=20 >=20 >=20 >=20 > [EXTERNAL EMAIL] >=20 >=20 >=20 > Are you using edksetup.bat? I would have expected this code to set the = path for you. >=20 > https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat# > L134 >=20 > So without more logs i don't know. >=20 >=20 >=20 >=20 >=20 >=20 >=20 > If you want to use "stuart" (my preferred method) I have a commit here f= or EmulatorPkg which has a platformbuild.py and readme.md that describes th= e process. This should be committed to edk2 master this week to enable Pla= tform CI for every PR. >=20 >=20 >=20 > Here is the readme and details. >=20 > https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtE > mulatorPackages_v10/EmulatorPkg/PlatformCI >=20 >=20 >=20 > Here is the commit you should cherry-pick if you want to try it. >=20 >=20 >=20 > https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd > 76f068d0a2 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > Thanks >=20 > Sean >=20 >=20 >=20 >=20 >=20 >=20 >=20 > On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com wrote: >=20 > > Hi, >=20 > > >=20 > > Thanks for your help. >=20 > > >=20 > > I am to build base tools and able to generate bin files. >=20 > > >=20 > > "Build" command is generated. >=20 > > >=20 > > Later, I am trying to build "EmulatorPkg". >=20 > > >=20 > > And running into VfrCompile error. >=20 > > >=20 > > 'VfrCompile' is not recognized as an internal or external command, >=20 > > >=20 > > operable program or batch file. >=20 > > >=20 > > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1' >=20 > > >=20 > > Stop. >=20 > > >=20 > > 'VfrCompile' is not recognized as an internal or external command, >=20 > > >=20 > > operable program or batch file. >=20 > > >=20 > > I can see VfrCompile.exe generated in "BaseTools". >=20 > > >=20 > > Attached build log for "Emulator Pkg". >=20 > > >=20 > > I tried checking the Env Paths . >=20 > > >=20 > > Regards, >=20 > > >=20 > > Navdeep >=20 > > >=20 > > *From:* Sean Brogan=20 > > > >=20 > > *Sent:* Friday, April 24, 2020 12:33 AM >=20 > > *To:* devel@edk2.groups.io; Singh,=20 > > Navdeeppal; Bret Barkelew; >=20 > > jim.slaughter@sage-micro.com >=20 > > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup >=20 > > >=20 > > [EXTERNAL EMAIL] >=20 > > >=20 > > Navdeep, >=20 > > >=20 > > Yes since the 202002 stable tag there have been submodules=20 > > introduced >=20 > > to the basetools. If you look closely you will see in the CI=20 > > process >=20 > > this required a change where stuart_setup is run before calling >=20 > > edk2toolsbuild.py. >=20 > > >=20 > > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb > > 36 >=20 > > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1 >=20 > > >=20 > > If you are using "stuart" to build then that is the suggested path=20 > > as >=20 > > stuar_setup will init your submodules listed in the=20 > > RequiredSubmodules >=20 > > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L= 136). >=20 > > Given that the edk2 project and ecosystem has numerous ways to setup >=20 > > your environment and build, you can also just make sure your=20 > > workspace >=20 > > is complete prior to running Edk2ToolsBuild.py. In this case you=20 > > only >=20 > > need to run "git submodule update --init" >=20 > > >=20 > > I just did this and it works fine with VS2019. >=20 > > >=20 > > Jim, >=20 > > >=20 > > Just as fyi as I know there are lots of reasons for toolchain selectio= n. >=20 > > >=20 > > I believe the Visual studio build tools are available free of charge >=20 > > (not the IDE but the compilers). Directions here. >=20 > > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual > > -s >=20 > > tudio-2019-preferred >=20 > > >=20 > > Thanks >=20 > > >=20 > > Sean >=20 > > >=20 > > *From:* devel@edk2.groups.io=20 > > >=20 > > > > :devel@edk2.groups.io>>> *On Behalf Of >=20 > > *Navdeeppal.Singh via groups.io >=20 > > *Sent:* Thursday, April 23, 2020 9:14 AM >=20 > > *To:* Bret Barkelew =20 > > >;=20 > > devel@edk2.groups.io >=20 > > >=20 > > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup >=20 > > >=20 > > Hi Bret, >=20 > > >=20 > > Yes PIP requirements are up to date. >=20 > > >=20 > > On further digging through the logging file BASETOOLS_BUILD.txt. >=20 > > >=20 > > INFO - subprocess not exit successfully >=20 > > >=20 > > INFO - Error while execute command 'nmake all' in direcotry >=20 > > C:\edk2\BaseTools\Source\C\BrotliCompress >=20 > > >=20 > > Regards, >=20 > > >=20 > > Navdeep >=20 > > >=20 > > *From:* Bret Barkelew =20 > > > >=20 > > *Sent:* Thursday, April 23, 2020 9:37 PM >=20 > > *To:* devel@edk2.groups.io=20 > > ; Singh, >=20 > > Navdeeppal >=20 > > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup >=20 > > >=20 > > [EXTERNAL EMAIL] >=20 > > >=20 > > Have you installed the up-to-date Python requirements? "pip install >=20 > > -upgrade -r pip-requirements.txt"? >=20 > > >=20 > > That's the first thing I would check. Otherwise, happy to look at=20 > > the >=20 > > problem with you. >=20 > > >=20 > > - Bret >=20 > > >=20 > > *From: *NAVDEEPPAL_SINGH via groups.io >=20 > > >=20 > > *Sent: *Thursday, April 23, 2020 6:05 AM >=20 > > *To: *devel@edk2.groups.io=20 > > >=20 > > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup >=20 > > >=20 > > I am trying to setup EDK2 environment setup from Tianocore/EDK2. >=20 > > While doing the Base Tool setup. After running >=20 > > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :- >=20 > > c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init >=20 > > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool=20 > > Traceback >=20 > > (most recent call last): >=20 > > File "Edk2ToolsBuild.py", line 177, in >=20 > > main() >=20 > > File "Edk2ToolsBuild.py", line 173, in main >=20 > > Edk2ToolsBuild().Invoke() >=20 > > File "C:\Program >=20 > > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable > > .p >=20 > > y", line 141, in Invoke >=20 > > retcode =3D self.Go() >=20 > > File "Edk2ToolsBuild.py", line 139, in Go >=20 > > raise Exception("Failed to build.") >=20 > > Exception: Failed to build. >=20 > > >=20 > > set EDK_TOOLS_PATH=3DC:\edk2\BaseTools >=20 > > set EDK_TOOLS_BIN=3DC:\edk2\BaseTools\Bin\Win32 >=20 > > Can some one help >=20 > > >=20 >=20 >=20 >=20