From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 7BE2F7803CC for ; Tue, 21 Nov 2023 16:27:39 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=yBn+Dcbx6rbWdazE58H3+Rzu+6iGROGMzHNOk58I6rY=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1700584058; v=1; b=HN3HqJaCy/W5q9YFp9fZ4pmSeuziG2ftH7P6BvBICMEz884FsXOM9cEZAjboBUYs54bY+xIr YEd9dtgVSppOHdAsvMgBwyTA60a+Scr1OaliC/tL5URZQvLuhNRAwDD50AjwNlug8awtcYWATFn Ls4fH/GB03grMayK2MpAlE+8= X-Received: by 127.0.0.2 with SMTP id 55cpYY7687511xeRs5lpQ4b0; Tue, 21 Nov 2023 08:27:38 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.45865.1700584057443043854 for ; Tue, 21 Nov 2023 08:27:37 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-21-WtPQDnz_PZCeQ5oPoB7_JA-1; Tue, 21 Nov 2023 11:27:35 -0500 X-MC-Unique: WtPQDnz_PZCeQ5oPoB7_JA-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B899B85C1A6; Tue, 21 Nov 2023 16:27:34 +0000 (UTC) X-Received: from [10.39.194.228] (unknown [10.39.194.228]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 258092166B26; Tue, 21 Nov 2023 16:27:34 +0000 (UTC) Message-ID: Date: Tue, 21 Nov 2023 17:27:31 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] Fail to build boot with tools code failure To: devel@edk2.groups.io, jacklien@qti.qualcomm.com References: From: "Laszlo Ersek" In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: B5QnqNAq81YdUGrL4jHdgzBzx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=HN3HqJaC; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On 11/16/23 04:46, Jackie Lien (Temp) via groups.io wrote: > Hi team, >=20 > Please help with the build error in BOOT.MXF.1.1.1. The command and log > are listed below. >=20 > =C2=A0 >=20 > Sync & build command: >=20 > 1. python sync_crm.py BOOT.MXF.1.1.1-00175-Olympic-1 > 2. copy manifest to my local sync (copy > \\snowcone\builds906\PROD\BOOT.MXF.1.1.1-00175-Olympic-1\boot_images\= boot_tools\manifest\build\manifest.xml to \\jacklien-linux\workspace\BOOT.MXF.1.1.1-00175-Olympic-1\boot_image= s\boot_tools\manifest\build\manifest.xml ) > 3. python buildex.py -t Olympic -v LE -r DEBUG >=20 > =C2=A0 >=20 > =C2=A0 >=20 > Build log: > build.py... >=20 > : error C0DE: Tools code failure >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Please send email to devel@edk= 2.groups.io > for help, attaching following call stack > trace! >=20 > =C2=A0 >=20 > Traceback (most recent call last): >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/GenFds/GenFds.py", line 371, in GenFdsApi >=20 > =C2=A0=C2=A0=C2=A0 GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchLis= t) >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/GenFds/GenFds.py", line 510, in GenFd >=20 > =C2=A0=C2=A0=C2=A0 FdObj.GenFd() >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/GenFds/Fd.py", line 131, in GenFd >=20 > =C2=A0=C2=A0=C2=A0 RegionObj.AddToBuffer (FdBuffer, self.BaseAddress, > self.BlockSizeList, self.ErasePolarity, > GenFdsGlobalVariable.ImageBinDict, self.DefineVarDict, Flag=3DFlag) >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/GenFds/Region.py", line 134, in AddToBuffer >=20 > =C2=A0=C2=A0=C2=A0 FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, = BlockNum, > ErasePolarity, Flag=3DFlag) >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/GenFds/Fv.py", line 127, in AddToBuffer >=20 > =C2=A0=C2=A0=C2=A0 FileName =3D FfsFile.GenFfs(MacroDict, FvParentAddr=3D= BaseAddress, > IsMakefile=3DFlag, FvName=3Dself.UiFvName) >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^^^^^^^^^^^^^^^^^ >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/GenFds/FfsInfStatement.py", line 518, in GenFfs >=20 > =C2=A0=C2=A0=C2=A0 InputSectList, InputSectAlignments =3D > self.__GenComplexFileSection__(Rule, FvChildAddr, FvParentAddr, > IsMakefile=3DIsMakefile) >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^^^^^^^^^^^^^ >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/GenFds/FfsInfStatement.py", line 969, in __GenComplexF= ileSection__ >=20 > =C2=A0=C2=A0=C2=A0 SectList, Align =3D Sect.GenSection(self.OutputPath, s= elf.ModuleGuid, > SecIndex, self.KeyStringList, self, IsMakefile =3D IsMakefile) >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/GenFds/EfiSection.py", line 263, in GenSection >=20 > =C2=A0=C2=A0=C2=A0 ImageObj =3D PeImageClass (File) >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 ^^^^^^^^^^^^^^^^^^^ >=20 > =C2=A0 File > "/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/Common/Misc.py", line 1638, in __init__ >=20 > =C2=A0=C2=A0=C2=A0 if ByteArray.tostring() !=3D b'PE\0\0': >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^^^^^^^^^^^^^^^^^^ >=20 > AttributeError: 'array.array' object has no attribute 'tostring' >=20 > =C2=A0 >=20 > =C2=A0 >=20 > =C2=A0 >=20 > build.py... >=20 > : error 7000: Failed to execute command >=20 > =C2=A0 >=20 > =C2=A0 >=20 > - Failed - >=20 > Build end time: 11:15:43, Nov.16 2023 >=20 > Build total time: 00:00:23 >=20 > =C2=A0 >=20 > ERROR: buildex::Run=C2=A0 ['python', > '/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2/Bas= eTools/Source/Python/build/build.py', '-p', 'QcomPkg/SocPkg/Olympic/LE/Core= .dsc', '-j', 'QcomPkg/SocPkg/Olympic/LE/build_Core.log', '-w', '-a', 'ARM',= '-b', 'DEBUG', '-t', 'CLANG100LINUX', '-D', 'BUILDROOT=3D/local/mnt/worksp= ace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images', '-D', 'BOOTROOT=3D/local/m= nt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/boot', '-D', 'REL= =3DDEBUG', '-D', 'PRODMODE=3DDEBUGMODE', '-D', 'VAR=3DLE', '-D', 'COMPLIER= =3D', '-D', 'FIRSTDLL=3D', '-D', 'SECONDDLL=3D', '-D', 'XBLSEC=3D', '-D', '= TARGETROOT=3DQcomPkg/SocPkg/Olympic', '-D', 'TARGETID=3DSocOlympic', '-D', = 'TARGETPKG=3DSocPkg', '-D', 'QCOMDIR=3D', '-D', 'BOOTTOOLS=3D/local/mnt/wor= kspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/boot_tools', '-D', 'EDK2R= OOT=3D/local/mnt/workspace/BOOT.MXF.1.1.1-00175-Olympic-1/boot_images/edk2'= , '-D', 'SECTOOLS_DIR=3D/pkg/sectools/glue/latest', '-D', 'SECTOOLSROOT=3D/= pkg/sectools/glue/latest', '-D', 'COMPILER=3DCLANG100LINUX', '-D', 'AARCH= =3DARM'] Build Subprocess failed with error... >=20 > None The platform DSC file seems to be "QcomPkg/SocPkg/Olympic/LE/Core.dsc". Presumably that exists in a vendor tree that is not open source. Without access to the platform, the issue may be hard to reproduce or to analyze for the BaseTools maintainers. Laszlo -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111564): https://edk2.groups.io/g/devel/message/111564 Mute This Topic: https://groups.io/mt/102698983/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-