Seemly, this is an incremental build issue.

I try below command. But, I don’t reproduce it.

edksetup.bat Rebuild
build -p Nt32Pkg\Nt32Pkg.dsc -a X64 -t VS2015x86
build -p Nt32Pkg\Nt32Pkg.dsc -a X64 -t VS2015x86 run
build -p Nt32Pkg\Nt32Pkg.dsc -a X64 -t VS2015x86

Thanks
Liming
From: Prem Kumar [mailto:perry.p...@gmail.com]
Sent: Thursday, December 6, 2018 10:42 PM
To: Gao, Liming <liming....@intel.com>
Cc: edk2-devel@lists.01.org
Subject: Re: [edk2] Build fail using latest UDK2018

Recreating this issue is simple..

  1.  Fresh build either NT32Pkg for x64 bit
  2.  Launch NT32 simulator
  3.  Close Nt32 simulator
  4.  And try build again for x64 bit
  5.  It will throw this build error.
I've even tried to delete folder PeiMain from Build folder.. then it gives 
error for another. But it build success when I delete entire build folder.

Configuration used:

  1.  Visual Studio 2016
  2.  Nt32Pkg
  3.  UDK2018

On Thu, Dec 6, 2018 at 5:29 AM Gao, Liming 
<liming....@intel.com<mailto:liming....@intel.com>> wrote:
How reproduce this issue? Could you list your step?

>-----Original Message-----
>From: edk2-devel 
>[mailto:edk2-devel-boun...@lists.01.org<mailto:edk2-devel-boun...@lists.01.org>]
> On Behalf Of
>Prem Kumar
>Sent: Thursday, December 06, 2018 2:37 AM
>To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
>Subject: [edk2] Build fail using latest UDK2018
>
>Hi All,
> When I try to build UDK2018 package I'm facing below build error.
>
>*Note:*
>  When I delete the build folder the same build error is not happening.
>  The same build error is not happening when build is happening for first
>time.
>
>Any pointers is appreciated.
>
>
>build.py...
> : error C0DE: Unknown fatal error when processing
>[c:\myworkspace\MdeModulePkg\Core\Pei\PeiMain.inf]
>
>(Please send email to edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org> 
>for help, attaching following
>call stack trace!)
>
>(Python 2.7.14 on win32) Traceback (most recent call last):
>  File "C:\myworkspace\BaseTools\Source\Python\build\build.py", line 2494,
>in Main
>    MyBuild.Launch()
>  File "C:\myworkspace\BaseTools\Source\Python\build\build.py", line 2227,
>in Launch
>    self._MultiThreadBuildPlatform()
>  File "C:\myworkspace\BaseTools\Source\Python\build\build.py", line 2100,
>in _MultiThreadBuildPlatform
>    self.CreateAsBuiltInf()
>  File "C:\myworkspace\BaseTools\Source\Python\build\build.py", line 2239,
>in CreateAsBuiltInf
>    Module.CreateAsBuiltInf()
>  File "C:\myworkspace\BaseTools\Source\Python\AutoGen\AutoGen.py",
>line
>3617, in CreateAsBuiltInf
>    shutil.copy2(UNIFile, self.OutputDir)
>  File "C:\Python27\lib\shutil.py", line 144, in copy2
>    copyfile(src, dst)
>  File "C:\Python27\lib\shutil.py", line 97, in copyfile
>    with open(dst, 'wb') as fdst:
>IOError: [Errno 13] Permission denied:
>'c:\\myworkspaceBuild\\NT32X64\\DEBUG_VS2015x86\\X64\\MdeModulePk
>g\\Core\\Pei\\PeiMain\\OUTPUT\\PeiCore.uni'
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
>https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to