Build.py Tools Code Failure


Iversen, Stephen <stephen.iversen@...>
 

Hello,

 

I obtained the following error when trying to build a BIOS image.

 

  Traceback (most recent call last):

  File "/workarea/Edk2/BaseTools/Source/Python/GenFds/GenFds.py", line 371, in GenFdsApi

  GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList)

  File "/workarea/Edk2/BaseTools/Source/Python/GenFds/GenFds.py", line 510, in GenFd

  FdObj.GenFd()

  File "/workarea/Edk2/BaseTools/Source/Python/GenFds/Fd.py", line 131, in GenFd

  RegionObj.AddToBuffer (FdBuffer, self.BaseAddress, self.BlockSizeList, self.ErasePolarity, GenFdsGlobalVariable.ImageBinDict, self.DefineVarDict, Flag=Flag)

  File "/workarea/Edk2/BaseTools/Source/Python/GenFds/Region.py", line 134, in AddToBuffer

  FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, ErasePolarity, Flag=Flag)

  File "/workarea/Edk2/BaseTools/Source/Python/GenFds/Fv.py", line 127, in AddToBuffer

  FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress, IsMakefile=Flag, FvName=self.UiFvName)

  File "/workarea/Edk2/BaseTools/Source/Python/GenFds/FfsFileStatement.py", line 72, in GenFfs

  shutil.rmtree(OutputDir)

  File "/usr/lib/python2.7/shutil.py", line 275, in rmtree

  onerror(os.remove, fullname, sys.exc_info())

  File "/usr/lib/python2.7/shutil.py", line 273, in rmtree

  os.remove(fullname)

  OSError: [Errno 13] Permission denied: '/workarea/Intel/Build/EagleStreamFspPkg/DEBUG_GCC5/FV/Ffs/D9093578-08EB-44DF-B9D8-D0C1D3D55D96FSP-S/D9093578-08EB-44DF-B9D8-D0C1D3D55D96SEC1.raw.txt'

 

It instructed me to email you for help. What is the appropriate measure to fix this?

 

Thanks!

Stephen Iversen

Join devel@edk2.groups.io to automatically receive all group messages.