public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] bootloader build error
@ 2024-04-04 12:13 Bill Shih 施炫全 via groups.io
  2024-04-05 23:21 ` Andrew Fish via groups.io
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Shih 施炫全 via groups.io @ 2024-04-04 12:13 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 6044 bytes --]

Hi Sir

I have problem when building android bootloader.

The log suggested I could mail you for help.

Can I have your suggestion to solve this error?

Thank you

The log:

build.py...
: error C0DE: Unknown fatal error when processing [/.../vendor/BOOT.MXF.2.0/boot_images/boot/***/Library/EblCmdLib/EblCmdLib.inf [AARCH64, CLANG120LINUX, RELEASE]]

(Please send email to devel@edk2.groups.io<mailto:devel@edk2.groups.io> for help, attaching following call stack trace!)

(Python 2.7.18 on linux2) Traceback (most recent call last):
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2599, in Main
    MyBuild.Launch()
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2394, in Launch
    self._MultiThreadBuildPlatform()
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2234, in _MultiThreadBuildPlatform
    Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain)
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2109, in PerformAutoGen
    CmdListDict = self._GenFfsCmd(Wa.ArchList)
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2006, in _GenFfsCmd
    GenFfsDict = GenFds.GenFfsMakefile('', GlobalData.gFdfParser, self, ArchList, GlobalData)
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py", line 544, in GenFfsMakefile
    FvObj.AddToBuffer(Buffer=None, Flag=True)
  File "/.../vendor/BOOT.MXF.2.0/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 "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 518, in GenFfs
    InputSectList, InputSectAlignments = self.__GenComplexFileSection__(Rule, FvChildAddr, FvParentAddr, IsMakefile=IsMakefile)
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 969, in __GenComplexFileSection__
    SectList, Align = Sect.GenSection(self.OutputPath, self.ModuleGuid, SecIndex, self.KeyStringList, self, IsMakefile = IsMakefile)
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/EfiSection.py", line 321, in GenSection
    IsMakefile=IsMakefile
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py", line 502, in GenerateSection
    if (os.path.getsize(Output) >= GenFdsGlobalVariable.LARGE_FILE_SIZE and
  File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/Common/LongFilePathOsPath.py", line 21, in getsize
    return os.path.getsize(LongFilePath(filename))
  File "/usr/lib/python2.7/genericpath.py", line 57, in getsize
    return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: '/.../vendor/BOOT.MXF.2.0/boot_images/Build/ClarenceLAA/Core/RELEASE_CLANG120LINUX/FV/Ffs/1C04F529-0612-4319-9315-B2E75C16810AFeatureEnablerDxe/1C04F529-0612-4319-9315-B2E75C16810ASEC2.1.pe32'


- Failed -
Build end time: 17:11:19, Apr.03 2024
Build total time: 00:00:04

, u'-b', u'RELEASE', u'-t', u'CLANG120LINUX', '-D', 'TARGETPKG=SocPkg', '-D', u'DTC=/pkg/qct/software/boottools/', '-D', 'EDK2ROOT=/.../vendor/BOOT.MXF.2.0/boot_images/edk2', '-D', u'CLANG120=/opt/LLVM/12.0.3/bin', '-D', 'BOOTTOOLS=/.../vendor/BOOT.MXF.2.0/boot_images/boot_tools', '-D', u'COMPILER=CLANG120LINUX', '-D', u'SECTOOLSROOT=/.../vendor/QCM4490.LA.1.0/common/sectoolsv2/ext/Linux', '-D', '***DIR=', '-D', 'TARGETID=SocClarence', '-D', u'VAR=LAA', '-D', 'TARGETROOT=***/SocPkg/Clarence', '-D', u'BOOTROOT=/.../vendor/BOOT.MXF.2.0/boot_images/boot', '-D', 'BUILDROOT=/.../vendor/BOOT.MXF.2.0/boot_images', '-D', 'PRODMODE=PRODMODE', '-D', 'XBLSEC=', '-D', u'AARCH=AARCH64', '-D', 'SECONDDLL=', '-D', 'COMPLIER=', '-D', 'REL=RELEASE', '-D', 'FIRSTDLL=']

ERROR: buildex::Run  ['python', u'/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py', u'-p', u'***/SocPkg/Clarence/LAA/Core.dsc', u'-j', u'***/SocPkg/Clarence/LAA/build_Core.log', u'-w', u'-a', u'AARCH64', u'-b', u'RELEASE', u'-t', u'CLANG120LINUX', '-D', 'TARGETPKG=SocPkg', '-D', u'DTC=/pkg/qct/software/boottools/', '-D', 'EDK2ROOT=/.../vendor/BOOT.MXF.2.0/boot_images/edk2', '-D', u'CLANG120=/opt/LLVM/12.0.3/bin', '-D', 'BOOTTOOLS=/.../vendor/BOOT.MXF.2.0/boot_images/boot_tools', '-D', u'COMPILER=CLANG120LINUX', '-D', u'SECTOOLSROOT=/.../vendor/QCM4490.LA.1.0/common/sectoolsv2/ext/Linux', '-D', '***DIR=', '-D', 'TARGETID=SocClarence', '-D', u'VAR=LAA', '-D', 'TARGETROOT=***/SocPkg/Clarence', '-D', u'BOOTROOT=/.../vendor/BOOT.MXF.2.0/boot_images/boot', '-D', 'BUILDROOT=/.../vendor/BOOT.MXF.2.0/boot_images', '-D', 'PRODMODE=PRODMODE', '-D', 'XBLSEC=', '-D', u'AARCH=AARCH64', '-D', 'SECONDDLL=', '-D', 'COMPLIER=', '-D', 'REL=RELEASE', '-D', 'FIRSTDLL='] Build Subprocess failed with error...
None
CONFIDENTIALITY NOTICE: The information transmitted by this email is intended only for the person or entity to which it was addressed. This email may contain proprietary, business-related confidential and/or privileged material and may be protected by copyright law. If you are not the intended recipient of this message, be aware that any use, review, retransmission, distribution, reproduction or any action taken in reliance upon this message is strictly prohibited. If you received this in error, please contact the sender and delete the materials from all systems.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#117460): https://edk2.groups.io/g/devel/message/117460
Mute This Topic: https://groups.io/mt/105350893/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 12074 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [edk2-devel] bootloader build error
  2024-04-04 12:13 [edk2-devel] bootloader build error Bill Shih 施炫全 via groups.io
@ 2024-04-05 23:21 ` Andrew Fish via groups.io
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fish via groups.io @ 2024-04-05 23:21 UTC (permalink / raw)
  To: edk2-devel-groups-io, bill_shih

[-- Attachment #1: Type: text/plain, Size: 7006 bytes --]

Bill,

The Python tools can tend to throw vs.flagging errors in the config files. Did you happen to edit anything in *.inf,*.dsc, or *.fdf files? This could just be a syntax error in those changes. 

This error looks like trying to make the FV (Firmware Volume) and Ffs would be one of the files in the FV, and the file is built out of sections. 

> OSError: [Errno 2] No such file or directory: '/.../vendor/BOOT.MXF.2.0/boot_images/Build/ClarenceLAA/Core/RELEASE_CLANG120LINUX/FV/Ffs/1C04F529-0612-4319-9315-B2E75C16810AFeatureEnablerDxe/1C04F529-0612-4319-9315-B2E75C16810ASEC2.1.pe32'



Thanks,

Andrew Fish

PS FYI  Python 2.7 is no longer supported as of January 1st, 2020.

> On Apr 4, 2024, at 5:13 AM, Bill Shih 施炫全 via groups.io <bill_shih=usiglobal.com@groups.io> wrote:
> 
> Hi Sir
>  
> I have problem when building android bootloader.
>  
> The log suggested I could mail you for help.
>  
> Can I have your suggestion to solve this error?
>  
> Thank you
>  
> The log:
>  
> build.py...
> : error C0DE: Unknown fatal error when processing [/.../vendor/BOOT.MXF.2.0/boot_images/boot/***/Library/EblCmdLib/EblCmdLib.inf [AARCH64, CLANG120LINUX, RELEASE]]
>            
> (Please send email to devel@edk2.groups.io <mailto:devel@edk2.groups.io> for help, attaching following call stack trace!)
>  
> (Python 2.7.18 on linux2) Traceback (most recent call last):
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2599, in Main
>     MyBuild.Launch()
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2394, in Launch
>     self._MultiThreadBuildPlatform()
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2234, in _MultiThreadBuildPlatform
>     Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain)
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2109, in PerformAutoGen
>     CmdListDict = self._GenFfsCmd(Wa.ArchList)
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py", line 2006, in _GenFfsCmd
>     GenFfsDict = GenFds.GenFfsMakefile('', GlobalData.gFdfParser, self, ArchList, GlobalData)
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py", line 544, in GenFfsMakefile
>     FvObj.AddToBuffer(Buffer=None, Flag=True)
>   File "/.../vendor/BOOT.MXF.2.0/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 "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 518, in GenFfs
>     InputSectList, InputSectAlignments = self.__GenComplexFileSection__(Rule, FvChildAddr, FvParentAddr, IsMakefile=IsMakefile)
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 969, in __GenComplexFileSection__
>     SectList, Align = Sect.GenSection(self.OutputPath, self.ModuleGuid, SecIndex, self.KeyStringList, self, IsMakefile = IsMakefile)
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/EfiSection.py", line 321, in GenSection
>     IsMakefile=IsMakefile
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py", line 502, in GenerateSection
>     if (os.path.getsize(Output) >= GenFdsGlobalVariable.LARGE_FILE_SIZE and
>   File "/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/Common/LongFilePathOsPath.py", line 21, in getsize
>     return os.path.getsize(LongFilePath(filename))
>   File "/usr/lib/python2.7/genericpath.py", line 57, in getsize
>     return os.stat(filename).st_size
> OSError: [Errno 2] No such file or directory: '/.../vendor/BOOT.MXF.2.0/boot_images/Build/ClarenceLAA/Core/RELEASE_CLANG120LINUX/FV/Ffs/1C04F529-0612-4319-9315-B2E75C16810AFeatureEnablerDxe/1C04F529-0612-4319-9315-B2E75C16810ASEC2.1.pe32'
>  
>  
> - Failed -
> Build end time: 17:11:19, Apr.03 2024
> Build total time: 00:00:04
>  
> , u'-b', u'RELEASE', u'-t', u'CLANG120LINUX', '-D', 'TARGETPKG=SocPkg', '-D', u'DTC=/pkg/qct/software/boottools/', '-D', 'EDK2ROOT=/.../vendor/BOOT.MXF.2.0/boot_images/edk2', '-D', u'CLANG120=/opt/LLVM/12.0.3/bin', '-D', 'BOOTTOOLS=/.../vendor/BOOT.MXF.2.0/boot_images/boot_tools', '-D', u'COMPILER=CLANG120LINUX', '-D', u'SECTOOLSROOT=/.../vendor/QCM4490.LA.1.0/common/sectoolsv2/ext/Linux', '-D', '***DIR=', '-D', 'TARGETID=SocClarence', '-D', u'VAR=LAA', '-D', 'TARGETROOT=***/SocPkg/Clarence', '-D', u'BOOTROOT=/.../vendor/BOOT.MXF.2.0/boot_images/boot', '-D', 'BUILDROOT=/.../vendor/BOOT.MXF.2.0/boot_images', '-D', 'PRODMODE=PRODMODE', '-D', 'XBLSEC=', '-D', u'AARCH=AARCH64', '-D', 'SECONDDLL=', '-D', 'COMPLIER=', '-D', 'REL=RELEASE', '-D', 'FIRSTDLL=']
>  
> ERROR: buildex::Run  ['python', u'/.../vendor/BOOT.MXF.2.0/boot_images/edk2/BaseTools/Source/Python/build/build.py', u'-p', u'***/SocPkg/Clarence/LAA/Core.dsc', u'-j', u'***/SocPkg/Clarence/LAA/build_Core.log', u'-w', u'-a', u'AARCH64', u'-b', u'RELEASE', u'-t', u'CLANG120LINUX', '-D', 'TARGETPKG=SocPkg', '-D', u'DTC=/pkg/qct/software/boottools/', '-D', 'EDK2ROOT=/.../vendor/BOOT.MXF.2.0/boot_images/edk2', '-D', u'CLANG120=/opt/LLVM/12.0.3/bin', '-D', 'BOOTTOOLS=/.../vendor/BOOT.MXF.2.0/boot_images/boot_tools', '-D', u'COMPILER=CLANG120LINUX', '-D', u'SECTOOLSROOT=/.../vendor/QCM4490.LA.1.0/common/sectoolsv2/ext/Linux', '-D', '***DIR=', '-D', 'TARGETID=SocClarence', '-D', u'VAR=LAA', '-D', 'TARGETROOT=***/SocPkg/Clarence', '-D', u'BOOTROOT=/.../vendor/BOOT.MXF.2.0/boot_images/boot', '-D', 'BUILDROOT=/.../vendor/BOOT.MXF.2.0/boot_images', '-D', 'PRODMODE=PRODMODE', '-D', 'XBLSEC=', '-D', u'AARCH=AARCH64', '-D', 'SECONDDLL=', '-D', 'COMPLIER=', '-D', 'REL=RELEASE', '-D', 'FIRSTDLL='] Build Subprocess failed with error...
> None
> CONFIDENTIALITY NOTICE: The information transmitted by this email is intended only for the person or entity to which it was addressed. This email may contain proprietary, business-related confidential and/or privileged material and may be protected by copyright law. If you are not the intended recipient of this message, be aware that any use, review, retransmission, distribution, reproduction or any action taken in reliance upon this message is strictly prohibited. If you received this in error, please contact the sender and delete the materials from all systems.
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#117466): https://edk2.groups.io/g/devel/message/117466
Mute This Topic: https://groups.io/mt/105350893/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 15922 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-05 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-04 12:13 [edk2-devel] bootloader build error Bill Shih 施炫全 via groups.io
2024-04-05 23:21 ` Andrew Fish via groups.io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox