From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web10.4175.1588066718349420214 for ; Tue, 28 Apr 2020 02:38:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=pi0U6vdj; spf=pass (domain: nuviainc.com, ip: 209.85.221.48, mailfrom: leif@nuviainc.com) Received: by mail-wr1-f48.google.com with SMTP id f13so23777341wrm.13 for ; Tue, 28 Apr 2020 02:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ac4sB4O6HM82/Ci8i3sMRX6qtVIaK1LrLPQESD77Rac=; b=pi0U6vdjMkVO5zngj0Hd86XNnCugntpuO2iaYyBYwqf6IeeQFPsthmKUFDJXBqokOb Gy0lKHvrwFjNk/iuTGmV1xVNcdWaxT5hBgHq/eN0Fu7yF1FXziIbqMcyXTF1KcTZ/e18 8nJ+hbJaCJcceWyZe1lduHzG+eppCbDKinKqiS5+TyiJSrTIcS817i6cYV3mSGZxuQie PfSMW7+BkDylJAKzYwnPxaedvEXREE3S1wd0NHA1WdcVurbfbghBp3HARQ/ySNYP0HVF KzGF5/VdnFhC8N8gH+stsMEnW+r4YVQJksfb2LZ3mQCqHc3OTwwPZOpUWOfk1GubxIjZ NlgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ac4sB4O6HM82/Ci8i3sMRX6qtVIaK1LrLPQESD77Rac=; b=m+IkQVsVyX/2lOGNGs++MsmRdIjIvgS1HEcsgZXQ2StRcySYR5trPUnTimLdLTz6ZW 2Lg1JVmNK1beo2Ar9KRL2j1YA7nTxwpkw8xgXHWZkoQ5k5sKmd7dGbEYm94xDxrS4S6h ulo6qYUBm8rXGXx1+rRzzev2u4S2hsTElIgC/4Nx3s4kGqfrVfS7zD1cQJOs/lKvvAjc 8vkUfTZ3DLGiXqmCtnSp7KQe0SOu2UHx9253ZSbiKJDNw2DB0ZQvxMVFnlqJzktjFdHa c1+TJioUPTrUZJt8Ftb5oZC12vaumc0rhKEe3fSm+7YQI0iPrqsyJpZYImP1L3pgu8jJ 6ikg== X-Gm-Message-State: AGi0PuY3k17/EW/wegc1CfBOrTcwL0lqrNciM3jdIQxrrIlUE8U4tdEm lKUbbG6YPfyEGzpA8n9e/1GifDiCCr+vC3EHJqBhT12fGpgk/Y8t7D4ESSAKwUDPfSSirgcfxg4 uOvqfTWS41vJZnt9Xnn2ExxHlj6Tld4992wY4map2JqnEBakhnWzoZ4+gbLQMaek= X-Google-Smtp-Source: APiQypKr7cBtV8GWPy1ez+K+d30OapXI4byfFmLIUeRyOhDLpN0RyBgTB8V4DDjhhtxYWukWQrhc+A== X-Received: by 2002:adf:ef8b:: with SMTP id d11mr35157570wro.340.1588066715713; Tue, 28 Apr 2020 02:38:35 -0700 (PDT) Return-Path: Received: from vanye ([2001:470:1f09:12f0:b26e:bfff:fea9:f1b8]) by smtp.gmail.com with ESMTPSA id j10sm2636208wmi.18.2020.04.28.02.38.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 02:38:35 -0700 (PDT) Date: Tue, 28 Apr 2020 10:38:32 +0100 From: "Leif Lindholm" To: devel@edk2.groups.io, Navdeeppal.Singh@dell.com Cc: spbrogan@outlook.com, sean.brogan@microsoft.com, Jordan Justen , Andrew Fish , Ray Ni Subject: Re: [edk2-devel] EmulatorPkg WinHost build failure with VS2019 Was: EDK2 environment setup Message-ID: <20200428093832.GA21486@vanye> References: <54a4f7933a1c4c0ea0eb34b43b837fb2@BLRX13MDC402.AMER.DELL.COM> <476a558a166b44e993d60c156fefd72a@BLRX13MDC402.AMER.DELL.COM> <71f3d979500348cbbe263445163583b5@BLRX13MDC402.AMER.DELL.COM> MIME-Version: 1.0 In-Reply-To: <71f3d979500348cbbe263445163583b5@BLRX13MDC402.AMER.DELL.COM> User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Navdeep, (+EmulatorPkg maintainers) Please provide logs in text format rather than as screenshots (although admittedly, I only spotted this one because it got quaranteened). Nevertheless, the current issue looks like https://stackoverflow.com/questions/61082301/how-to-solution-the-following-error-when-build-emulatorpkg I.e., WinHost requires version specific linker options for Visual Studio that don't seem to have been implemented for VS2019 yet. Given that MSFT:*_VS2017_X64_DLINK_FLAGS and MSFT:*_VS2015x86_X64_DLINK_FLAGS look identical, adding a copied line and renaming it MSFT:*_VS2019_X64_DLINK_FLAGS might work. Alternatively, the X64 versions could perhaps be condensed to simply a single MSFT:*_*_X64_DLINK_FLAGS. / Leif On Tue, Apr 28, 2020 at 09:15:09 +0000, Navdeeppal.Singh@dell.com wrote: > Hi, > > Yes I am using edksetup.bat. > > I was able to fix VFR compiler after making path changes. > > And I was able to build MdeModulePkg Successfully. > > But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg. > > > > [cid:image002.jpg@01D61D6B.6D7A8320] > > > > Regards, > > Navdeep > > -----Original Message----- > From: Sean Brogan > Sent: Tuesday, April 28, 2020 2:28 AM > To: devel@edk2.groups.io; Singh, Navdeeppal; sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com; jim.slaughter@sage-micro.com > Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup > > > > > > [EXTERNAL EMAIL] > > > > Are you using edksetup.bat? I would have expected this code to set the path for you. > > https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#L134 > > So without more logs i don't know. > > > > > > > > If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR. > > > > Here is the readme and details. > > https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtEmulatorPackages_v10/EmulatorPkg/PlatformCI > > > > Here is the commit you should cherry-pick if you want to try it. > > > > https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd76f068d0a2 > > > > > > > > Thanks > > Sean > > > > > > > > On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com wrote: > > > Hi, > > > > > > Thanks for your help. > > > > > > I am to build base tools and able to generate bin files. > > > > > > "Build" command is generated. > > > > > > Later, I am trying to build "EmulatorPkg". > > > > > > And running into VfrCompile error. > > > > > > 'VfrCompile' is not recognized as an internal or external command, > > > > > > operable program or batch file. > > > > > > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1' > > > > > > Stop. > > > > > > 'VfrCompile' is not recognized as an internal or external command, > > > > > > operable program or batch file. > > > > > > I can see VfrCompile.exe generated in "BaseTools". > > > > > > Attached build log for "Emulator Pkg". > > > > > > I tried checking the Env Paths . > > > > > > Regards, > > > > > > Navdeep > > > > > > *From:* Sean Brogan > > > > *Sent:* Friday, April 24, 2020 12:33 AM > > > *To:* devel@edk2.groups.io; Singh, Navdeeppal; Bret Barkelew; > > > jim.slaughter@sage-micro.com > > > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup > > > > > > [EXTERNAL EMAIL] > > > > > > Navdeep, > > > > > > Yes since the 202002 stable tag there have been submodules introduced > > > to the basetools. If you look closely you will see in the CI process > > > this required a change where stuart_setup is run before calling > > > edk2toolsbuild.py. > > > > > > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb36 > > > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1 > > > > > > If you are using "stuart" to build then that is the suggested path as > > > stuar_setup will init your submodules listed in the RequiredSubmodules > > > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136). > > > Given that the edk2 project and ecosystem has numerous ways to setup > > > your environment and build, you can also just make sure your workspace > > > is complete prior to running Edk2ToolsBuild.py. In this case you only > > > need to run "git submodule update --init" > > > > > > I just did this and it works fine with VS2019. > > > > > > Jim, > > > > > > Just as fyi as I know there are lots of reasons for toolchain selection. > > > > > > I believe the Visual studio build tools are available free of charge > > > (not the IDE but the compilers). Directions here. > > > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-s > > > tudio-2019-preferred > > > > > > Thanks > > > > > > Sean > > > > > > *From:* devel@edk2.groups.io > > > >> *On Behalf Of > > > *Navdeeppal.Singh via groups.io > > > *Sent:* Thursday, April 23, 2020 9:14 AM > > > *To:* Bret Barkelew > > >; devel@edk2.groups.io > > > > > > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup > > > > > > Hi Bret, > > > > > > Yes PIP requirements are up to date. > > > > > > On further digging through the logging file BASETOOLS_BUILD.txt. > > > > > > INFO - subprocess not exit successfully > > > > > > INFO - Error while execute command 'nmake all' in direcotry > > > C:\edk2\BaseTools\Source\C\BrotliCompress > > > > > > Regards, > > > > > > Navdeep > > > > > > *From:* Bret Barkelew > > > > > > *Sent:* Thursday, April 23, 2020 9:37 PM > > > *To:* devel@edk2.groups.io ; Singh, > > > Navdeeppal > > > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup > > > > > > [EXTERNAL EMAIL] > > > > > > Have you installed the up-to-date Python requirements? "pip install > > > -upgrade -r pip-requirements.txt"? > > > > > > That's the first thing I would check. Otherwise, happy to look at the > > > problem with you. > > > > > > - Bret > > > > > > *From: *NAVDEEPPAL_SINGH via groups.io > > > > > > *Sent: *Thursday, April 23, 2020 6:05 AM > > > *To: *devel@edk2.groups.io > > > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup > > > > > > I am trying to setup EDK2 environment setup from Tianocore/EDK2. > > > While doing the Base Tool setup. After running > > > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :- > > > c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init > > > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool Traceback > > > (most recent call last): > > > File "Edk2ToolsBuild.py", line 177, in > > > main() > > > File "Edk2ToolsBuild.py", line 173, in main > > > Edk2ToolsBuild().Invoke() > > > File "C:\Program > > > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.p > > > y", line 141, in Invoke > > > retcode = self.Go() > > > File "Edk2ToolsBuild.py", line 139, in Go > > > raise Exception("Failed to build.") > > > Exception: Failed to build. > > > > > > set EDK_TOOLS_PATH=C:\edk2\BaseTools > > > set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32 > > > Can some one help > > > > > > > > >