Hi Team,
I am trying to local compile BOOT image with some local changes, but will
encounter below error, can you please help to provide the solution?
Thanks a lot.
Build error:
Generating FVMAIN_COMPACT FV
#
build.py...
: error C0DE: Tools code failure
Please send email to [email protected]<mailto:[email protected]>
for help, attaching following call stack trace!
Traceback (most recent call last):
File
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py",
line 371, in GenFdsApi
GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList)
File
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py",
line 510, in GenFd
FdObj.GenFd()
File
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/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
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/GenFds/Region.py",
line 134, in AddToBuffer
FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum,
ErasePolarity, Flag=Flag)
File
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/GenFds/Fv.py",
line 127, in AddToBuffer
FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress,
IsMakefile=Flag, FvName=self.UiFvName)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsFileStatement.py",
line 156, in GenFfs
sectList, align = section.GenSection(OutputDir, self.NameGuid, SecIndex,
self.KeyStringList, None, Dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/GenFds/DataSection.py",
line 115, in GenSection
GenFdsGlobalVariable.GenerateSection(OutputFile, [self.SectFileName],
Section.Section.SectionType.get(self.SecType), IsMakefile = IsMakefile)
File
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py",
line 520, in GenerateSection
if (os.path.getsize(Output) >= GenFdsGlobalVariable.LARGE_FILE_SIZE and
^^^^^^^^^^^^^^^^^^^^^^^
File
"/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/Common/LongFilePathOsPath.py",
line 21, in getsize
return os.path.getsize(LongFilePath(filename))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen genericpath>", line 62, in getsize
FileNotFoundError: [Errno 2] No such file or directory:
'/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/Build/LanaiLAA/Core/DEBUG_CLANG160LINUX/FV/Ffs/DDE58710-41CD-4306-DBFB-3FA90BB1D2DDFVMAIN_COMPACT/DDE58710-41CD-4306-DBFB-3FA90BB1D2DDSEC2.raw'
build.py...
: error 7000: Failed to execute command
- Failed -
Build end time: 01:30:31, Apr.08 2026
Build total time: 00:00:30
[buildex.py] ERROR: Run ['python',
'/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2/BaseTools/Source/Python/build/build.py',
'-p', 'QcomPkg/SocPkg/Lanai/LAA/Core.dsc', '-j',
'/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/BuildLogs/Lanai_LAA_build_Core_DEBUG.log',
'-w', '-a', 'AARCH64', '-b', 'DEBUG', '-y', 'XBLCore_build_report.txt', '-t',
'CLANG160LINUX', '-D',
'BUILDROOT=/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images',
'-D',
'BOOTROOT=/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/boot',
'-D', 'REL=DEBUG', '-D', 'PRODMODE=DEBUGMODE', '-D', 'VAR=LAA', '-D',
'COMPLIER=', '-D', 'FIRSTDLL=', '-D', 'SECONDDLL=', '-D', 'XBLSEC=', '-D',
'TARGETROOT=QcomPkg/SocPkg/Lanai', '-D', 'TARGETID=SocLanai', '-D',
'TARGETPKG=SocPkg', '-D', 'QCOMDIR=', '-D',
'LOGDIR=/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/BuildLogs',
'-D',
'BOOTTOOLS=/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/boot_tools',
'-D',
'EDK2ROOT=/local/mnt/workspace/8650/260408_myafang_BOOT.MXF.2.1-01945-LANAI-1_01/boot_images/edk2',
'-D', 'CLANG160=/pkg/qct/software/llvm/release/arm/16.0.2/bin', '-D',
'SECTOOLS_DIR=/pkg/sectools/v2/latest/Linux', '-D',
'DTC=/pkg/qct/software/boottools/', '-D',
'SECTOOLSROOT=/pkg/sectools/v2/latest/Linux', '-D', 'COMPILER=CLANG160LINUX',
'-D', 'AARCH=AARCH64'] Build Subprocess failed with error...
None
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121875): https://edk2.groups.io/g/devel/message/121875
Mute This Topic: https://groups.io/mt/118728787/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-